implementing StyleCI recommendations

This commit is contained in:
El RIDO 2017-11-13 22:05:29 +01:00
parent c2133cfa7e
commit 478cf288b4
No known key found for this signature in database
GPG Key ID: 0F5C940A6BD81F92
3 changed files with 4 additions and 4 deletions

View File

@ -142,7 +142,7 @@ class ConfigurationTest extends PHPUnit_Framework_TestCase
public function testHandleConfigFileRename() public function testHandleConfigFileRename()
{ {
$options = $this->_options; $options = $this->_options;
Helper::createIniFile(PATH . 'cfg' . DIRECTORY_SEPARATOR . 'conf.ini.sample', $options); Helper::createIniFile(PATH . 'cfg' . DIRECTORY_SEPARATOR . 'conf.ini.sample', $options);
$options['main']['opendiscussion'] = true; $options['main']['opendiscussion'] = true;

View File

@ -150,8 +150,8 @@ class I18nTest extends PHPUnit_Framework_TestCase
$dir = dir(PATH . 'i18n'); $dir = dir(PATH . 'i18n');
while (false !== ($file = $dir->read())) { while (false !== ($file = $dir->read())) {
if (strlen($file) === 7) { if (strlen($file) === 7) {
$language = substr($file, 0, 2); $language = substr($file, 0, 2);
$languageMessageIds = array_keys( $languageMessageIds = array_keys(
json_decode( json_decode(
file_get_contents(PATH . 'i18n' . DIRECTORY_SEPARATOR . $file), file_get_contents(PATH . 'i18n' . DIRECTORY_SEPARATOR . $file),
true true

View File

@ -35,7 +35,7 @@ class PrivateBinWithDbTest extends PrivateBinTest
$options['model'] = array( $options['model'] = array(
'class' => 'Database', 'class' => 'Database',
); );
$options['model_options'] = $this->_options; $options['model_options'] = $this->_options;
Helper::createIniFile(CONF, $options); Helper::createIniFile(CONF, $options);
} }
} }