@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $state = ($successful ? 'Successful' : 'FAILED'); |
17 | 17 | $regex = '/(info|).*(' . $expression . ').*(' . $state . ')/'; |
18 | 18 | |
19 | - return ( $regex ); |
|
19 | + return ($regex); |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | public function testCatalogCodeset() |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | 'gettext_locale' => $CI->config->item('gettext_locale') |
61 | 61 | ); |
62 | 62 | */ |
63 | - require( realpath(dirname(__FILE__) . '/../') . '/src/config/gettext.php' ); |
|
63 | + require(realpath(dirname(__FILE__) . '/../') . '/src/config/gettext.php'); |
|
64 | 64 | |
65 | 65 | Gettext::init($config); |
66 | 66 | } |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if (!defined('PHPUNIT_TESTING')) defined('BASEPATH') OR exit('No direct script access allowed'); |
|
2 | +if ( ! defined('PHPUNIT_TESTING')) defined('BASEPATH') OR exit('No direct script access allowed'); |
|
3 | 3 | |
4 | 4 | // Gettext catalog codeset |
5 | 5 | $config['gettext_catalog_codeset'] = 'UTF-8'; |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | $config['gettext_locale_dir'] = 'language/locales'; |
12 | 12 | |
13 | 13 | // Gettext locale |
14 | -$config['gettext_locale'] = Array( "en_US.UTF-8", "en_US@euro", "en_US", "english", "eng", "en"); |
|
14 | +$config['gettext_locale'] = Array("en_US.UTF-8", "en_US@euro", "en_US", "english", "eng", "en"); |
|
15 | 15 | |
16 | 16 | /* End of file gettext.php */ |
17 | 17 | /* Location: ./application/config/gettext.php */ |
18 | 18 | \ No newline at end of file |
@@ -1,5 +1,7 @@ |
||
1 | 1 | <?php |
2 | -if (!defined('PHPUNIT_TESTING')) defined('BASEPATH') OR exit('No direct script access allowed'); |
|
2 | +if (!defined('PHPUNIT_TESTING')) { |
|
3 | + defined('BASEPATH') OR exit('No direct script access allowed'); |
|
4 | +} |
|
3 | 5 | |
4 | 6 | // Gettext catalog codeset |
5 | 7 | $config['gettext_catalog_codeset'] = 'UTF-8'; |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | // @codeCoverageIgnoreStart |
3 | -if (!defined('PHPUNIT_TESTING')) defined('BASEPATH') OR exit('No direct script access allowed'); |
|
3 | +if ( ! defined('PHPUNIT_TESTING')) defined('BASEPATH') OR exit('No direct script access allowed'); |
|
4 | 4 | // @codeCoverageIgnoreEnd |
5 | 5 | |
6 | 6 | /** |
@@ -1,6 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | // @codeCoverageIgnoreStart |
3 | -if (!defined('PHPUNIT_TESTING')) defined('BASEPATH') OR exit('No direct script access allowed'); |
|
3 | +if (!defined('PHPUNIT_TESTING')) { |
|
4 | + defined('BASEPATH') OR exit('No direct script access allowed'); |
|
5 | +} |
|
4 | 6 | // @codeCoverageIgnoreEnd |
5 | 7 | |
6 | 8 | /** |