@@ -4,14 +4,14 @@ discard block |
||
4 | 4 | namespace foo\bar; |
5 | 5 | namespace bar\foo\baz; |
6 | 6 | |
7 | -define('VALID_NAME', true); |
|
8 | -define('invalidName', true); |
|
9 | -define("VALID_NAME", true); |
|
10 | -define("invalidName", true); |
|
11 | -define('bar\foo\baz\VALID_NAME_WITH_NAMESPACE', true); |
|
12 | -define('bar\foo\baz\invalidNameWithNamespace', true); |
|
13 | -define("bar\foo\baz\VALID_NAME_WITH_NAMESPACE", true); |
|
14 | -define("bar\foo\baz\invalidNameWithNamespace", true); |
|
7 | +define( 'VALID_NAME', true ); |
|
8 | +define( 'invalidName', true ); |
|
9 | +define( "VALID_NAME", true ); |
|
10 | +define( "invalidName", true ); |
|
11 | +define( 'bar\foo\baz\VALID_NAME_WITH_NAMESPACE', true ); |
|
12 | +define( 'bar\foo\baz\invalidNameWithNamespace', true ); |
|
13 | +define( "bar\foo\baz\VALID_NAME_WITH_NAMESPACE", true ); |
|
14 | +define( "bar\foo\baz\invalidNameWithNamespace", true ); |
|
15 | 15 | |
16 | 16 | class TestClass extends MyClass implements MyInterface, YourInterface |
17 | 17 | { |
@@ -20,9 +20,9 @@ discard block |
||
20 | 20 | const CONST2 = 'hello'; |
21 | 21 | } |
22 | 22 | |
23 | -$foo->define('bar'); |
|
24 | -$foo->getBar()->define('foo'); |
|
25 | -Foo::define('bar'); |
|
23 | +$foo->define( 'bar' ); |
|
24 | +$foo->getBar()->define( 'foo' ); |
|
25 | +Foo::define( 'bar' ); |
|
26 | 26 | |
27 | 27 | class ClassConstBowOutTest { |
28 | 28 | const /* comment */ abc = 1; |
@@ -50,7 +50,7 @@ |
||
50 | 50 | } |
51 | 51 | } |
52 | 52 | |
53 | -foo(new class extends MyClass |
|
53 | +foo( new class extends MyClass |
|
54 | 54 | { |
55 | 55 | |
56 | 56 | function TestClass() { |
@@ -36,12 +36,12 @@ discard block |
||
36 | 36 | class Magic_Test { |
37 | 37 | function __construct() {} |
38 | 38 | function __destruct() {} |
39 | - function __call($name, $args) {} |
|
40 | - static function __callStatic($name, $args) {} |
|
41 | - function __get($name) {} |
|
42 | - function __set($name, $value) {} |
|
43 | - function __isset($name) {} |
|
44 | - function __unset($name) {} |
|
39 | + function __call( $name, $args ) {} |
|
40 | + static function __callStatic( $name, $args ) {} |
|
41 | + function __get( $name ) {} |
|
42 | + function __set( $name, $value ) {} |
|
43 | + function __isset( $name ) {} |
|
44 | + function __unset( $name ) {} |
|
45 | 45 | function __sleep() {} |
46 | 46 | function __wakeup() {} |
47 | 47 | function __toString() {} |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | function __toString() {} |
68 | 68 | function __set_state() {} |
69 | 69 | function __clone() {} |
70 | -function __autoload($class) {} |
|
70 | +function __autoload( $class ) {} |
|
71 | 71 | function __invoke() {} |
72 | 72 | function __myFunction() {} |
73 | 73 | function __my_function() {} |
@@ -92,15 +92,15 @@ discard block |
||
92 | 92 | |
93 | 93 | trait Foo |
94 | 94 | { |
95 | - function __call($name, $args) {} |
|
95 | + function __call( $name, $args ) {} |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | class Magic_Case_Test { |
99 | 99 | function __Construct() {} |
100 | - function __isSet($name) {} |
|
100 | + function __isSet( $name ) {} |
|
101 | 101 | function __tostring() {} |
102 | 102 | } |
103 | -function __autoLoad($class) {} |
|
103 | +function __autoLoad( $class ) {} |
|
104 | 104 | |
105 | 105 | class Foo extends \SoapClient |
106 | 106 | { |
@@ -130,12 +130,12 @@ discard block |
||
130 | 130 | $a = new class { |
131 | 131 | function __construct() {} |
132 | 132 | function __destruct() {} |
133 | - function __call($name, $args) {} |
|
134 | - static function __callStatic($name, $args) {} |
|
135 | - function __get($name) {} |
|
136 | - function __set($name, $value) {} |
|
137 | - function __isset($name) {} |
|
138 | - function __unset($name) {} |
|
133 | + function __call( $name, $args ) {} |
|
134 | + static function __callStatic( $name, $args ) {} |
|
135 | + function __get( $name ) {} |
|
136 | + function __set( $name, $value ) {} |
|
137 | + function __isset( $name ) {} |
|
138 | + function __unset( $name ) {} |
|
139 | 139 | function __sleep() {} |
140 | 140 | function __wakeup() {} |
141 | 141 | function __toString() {} |
@@ -23,8 +23,8 @@ discard block |
||
23 | 23 | */ |
24 | 24 | protected function shouldSkipTest() |
25 | 25 | { |
26 | - $csslintPath = Config::getExecutablePath('csslint'); |
|
27 | - if ($csslintPath === null) { |
|
26 | + $csslintPath = Config::getExecutablePath( 'csslint' ); |
|
27 | + if ( $csslintPath === null ) { |
|
28 | 28 | return true; |
29 | 29 | } |
30 | 30 | |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public function getErrorList() |
45 | 45 | { |
46 | - return []; |
|
46 | + return [ ]; |
|
47 | 47 | |
48 | 48 | }//end getErrorList() |
49 | 49 |
@@ -23,9 +23,9 @@ discard block |
||
23 | 23 | */ |
24 | 24 | protected function shouldSkipTest() |
25 | 25 | { |
26 | - $rhinoPath = Config::getExecutablePath('rhino'); |
|
27 | - $jshintPath = Config::getExecutablePath('jshint'); |
|
28 | - if ($rhinoPath === null && $jshintPath === null) { |
|
26 | + $rhinoPath = Config::getExecutablePath( 'rhino' ); |
|
27 | + $jshintPath = Config::getExecutablePath( 'jshint' ); |
|
28 | + if ( $rhinoPath === null && $jshintPath === null ) { |
|
29 | 29 | return true; |
30 | 30 | } |
31 | 31 | |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | public function getErrorList() |
46 | 46 | { |
47 | - return []; |
|
47 | + return [ ]; |
|
48 | 48 | |
49 | 49 | }//end getErrorList() |
50 | 50 | |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | */ |
60 | 60 | public function getWarningList() |
61 | 61 | { |
62 | - return [3 => 2]; |
|
62 | + return [ 3 => 2 ]; |
|
63 | 63 | |
64 | 64 | }//end getWarningList() |
65 | 65 |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | parent::setUp(); |
44 | 44 | |
45 | 45 | $cwd = getcwd(); |
46 | - file_put_contents($cwd.'/.eslintrc.json', self::ESLINT_CONFIG); |
|
46 | + file_put_contents( $cwd . '/.eslintrc.json', self::ESLINT_CONFIG ); |
|
47 | 47 | |
48 | 48 | }//end setUp() |
49 | 49 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | parent::tearDown(); |
59 | 59 | |
60 | 60 | $cwd = getcwd(); |
61 | - unlink($cwd.'/.eslintrc.json'); |
|
61 | + unlink( $cwd . '/.eslintrc.json' ); |
|
62 | 62 | |
63 | 63 | }//end tearDown() |
64 | 64 | |
@@ -70,8 +70,8 @@ discard block |
||
70 | 70 | */ |
71 | 71 | protected function shouldSkipTest() |
72 | 72 | { |
73 | - $eslintPath = Config::getExecutablePath('eslint'); |
|
74 | - if ($eslintPath === null) { |
|
73 | + $eslintPath = Config::getExecutablePath( 'eslint' ); |
|
74 | + if ( $eslintPath === null ) { |
|
75 | 75 | return true; |
76 | 76 | } |
77 | 77 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | */ |
91 | 91 | public function getErrorList() |
92 | 92 | { |
93 | - return [1 => 2]; |
|
93 | + return [ 1 => 2 ]; |
|
94 | 94 | |
95 | 95 | }//end getErrorList() |
96 | 96 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | */ |
106 | 106 | public function getWarningList() |
107 | 107 | { |
108 | - return []; |
|
108 | + return [ ]; |
|
109 | 109 | |
110 | 110 | }//end getWarningList() |
111 | 111 |
@@ -23,8 +23,8 @@ discard block |
||
23 | 23 | */ |
24 | 24 | protected function shouldSkipTest() |
25 | 25 | { |
26 | - $lintPath = Config::getExecutablePath('gjslint'); |
|
27 | - if ($lintPath === null) { |
|
26 | + $lintPath = Config::getExecutablePath( 'gjslint' ); |
|
27 | + if ( $lintPath === null ) { |
|
28 | 28 | return true; |
29 | 29 | } |
30 | 30 | |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public function getErrorList() |
45 | 45 | { |
46 | - return []; |
|
46 | + return [ ]; |
|
47 | 47 | |
48 | 48 | }//end getErrorList() |
49 | 49 |
@@ -1,27 +1,27 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | echo $blah; |
3 | 3 | echo $blah; |
4 | -echo($blah); |
|
4 | +echo( $blah ); |
|
5 | 5 | |
6 | 6 | print $blah; |
7 | 7 | print $blah; |
8 | -print($blah); |
|
8 | +print( $blah ); |
|
9 | 9 | |
10 | 10 | include $blah; |
11 | 11 | include $blah; |
12 | -include($blah); |
|
12 | +include( $blah ); |
|
13 | 13 | |
14 | 14 | include_once $blah; |
15 | 15 | include_once $blah; |
16 | -include_once($blah); |
|
16 | +include_once( $blah ); |
|
17 | 17 | |
18 | 18 | require $blah; |
19 | 19 | require $blah; |
20 | -require($blah); |
|
20 | +require( $blah ); |
|
21 | 21 | |
22 | 22 | require_once $blah; |
23 | 23 | require_once $blah; |
24 | -require_once($blah); |
|
24 | +require_once( $blah ); |
|
25 | 25 | |
26 | 26 | $obj = new MyClass(); |
27 | 27 | $obj = new MyClass(); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | return; |
66 | 66 | return $blah; |
67 | 67 | return $blah; |
68 | -return($blah); |
|
68 | +return( $blah ); |
|
69 | 69 | |
70 | 70 | return $tab; |
71 | 71 | return |
@@ -23,9 +23,9 @@ discard block |
||
23 | 23 | * |
24 | 24 | * @return void |
25 | 25 | */ |
26 | - public function setCliValues($testFile, $config) |
|
26 | + public function setCliValues( $testFile, $config ) |
|
27 | 27 | { |
28 | - if ($testFile === 'DisallowSpaceIndentUnitTest.2.inc') { |
|
28 | + if ( $testFile === 'DisallowSpaceIndentUnitTest.2.inc' ) { |
|
29 | 29 | return; |
30 | 30 | } |
31 | 31 | |
@@ -44,9 +44,9 @@ discard block |
||
44 | 44 | * |
45 | 45 | * @return array<int, int> |
46 | 46 | */ |
47 | - public function getErrorList($testFile='DisallowSpaceIndentUnitTest.1.inc') |
|
47 | + public function getErrorList( $testFile = 'DisallowSpaceIndentUnitTest.1.inc' ) |
|
48 | 48 | { |
49 | - switch ($testFile) { |
|
49 | + switch ( $testFile ) { |
|
50 | 50 | case 'DisallowSpaceIndentUnitTest.1.inc': |
51 | 51 | case 'DisallowSpaceIndentUnitTest.2.inc': |
52 | 52 | return [ |
@@ -87,13 +87,13 @@ discard block |
||
87 | 87 | ]; |
88 | 88 | break; |
89 | 89 | case 'DisallowSpaceIndentUnitTest.js': |
90 | - return [3 => 1]; |
|
90 | + return [ 3 => 1 ]; |
|
91 | 91 | break; |
92 | 92 | case 'DisallowSpaceIndentUnitTest.css': |
93 | - return [2 => 1]; |
|
93 | + return [ 2 => 1 ]; |
|
94 | 94 | break; |
95 | 95 | default: |
96 | - return []; |
|
96 | + return [ ]; |
|
97 | 97 | break; |
98 | 98 | }//end switch |
99 | 99 | |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | */ |
111 | 111 | public function getWarningList() |
112 | 112 | { |
113 | - return []; |
|
113 | + return [ ]; |
|
114 | 114 | |
115 | 115 | }//end getWarningList() |
116 | 116 |