Test Setup Failed
Push — master ( cf92d1...ffbff4 )
by Joël
02:52
created
tests/GettextTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/config/gettext.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
src/libraries/Gettext.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,8 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.