@@ -53,7 +53,7 @@ |
||
53 | 53 | 'exception' => true, |
54 | 54 | 'abstractwidgetwidgettype' => true, |
55 | 55 | 'domdocument' => true, |
56 | - ); |
|
56 | + ); |
|
57 | 57 | |
58 | 58 | |
59 | 59 | /** |
@@ -111,33 +111,33 @@ |
||
111 | 111 | } |
112 | 112 | |
113 | 113 | switch ($tokens[$i]['code']) { |
114 | - case T_DOUBLE_COLON: |
|
115 | - $usedName = strtolower($tokens[($i - 1)]['content']); |
|
116 | - if ($usedName === $systemName) { |
|
117 | - // The included system was used, so it is fine. |
|
118 | - return; |
|
119 | - } |
|
120 | - break; |
|
121 | - case T_EXTENDS: |
|
122 | - $classNameToken = $phpcsFile->findNext(T_STRING, ($i + 1)); |
|
123 | - $className = strtolower($tokens[$classNameToken]['content']); |
|
124 | - if ($className === $systemName) { |
|
125 | - // The included system was used, so it is fine. |
|
126 | - return; |
|
127 | - } |
|
128 | - break; |
|
129 | - case T_IMPLEMENTS: |
|
130 | - $endImplements = $phpcsFile->findNext(array(T_EXTENDS, T_OPEN_CURLY_BRACKET), ($i + 1)); |
|
131 | - for ($x = ($i + 1); $x < $endImplements; $x++) { |
|
132 | - if ($tokens[$x]['code'] === T_STRING) { |
|
133 | - $className = strtolower($tokens[$x]['content']); |
|
134 | - if ($className === $systemName) { |
|
135 | - // The included system was used, so it is fine. |
|
136 | - return; |
|
114 | + case T_DOUBLE_COLON: |
|
115 | + $usedName = strtolower($tokens[($i - 1)]['content']); |
|
116 | + if ($usedName === $systemName) { |
|
117 | + // The included system was used, so it is fine. |
|
118 | + return; |
|
119 | + } |
|
120 | + break; |
|
121 | + case T_EXTENDS: |
|
122 | + $classNameToken = $phpcsFile->findNext(T_STRING, ($i + 1)); |
|
123 | + $className = strtolower($tokens[$classNameToken]['content']); |
|
124 | + if ($className === $systemName) { |
|
125 | + // The included system was used, so it is fine. |
|
126 | + return; |
|
127 | + } |
|
128 | + break; |
|
129 | + case T_IMPLEMENTS: |
|
130 | + $endImplements = $phpcsFile->findNext(array(T_EXTENDS, T_OPEN_CURLY_BRACKET), ($i + 1)); |
|
131 | + for ($x = ($i + 1); $x < $endImplements; $x++) { |
|
132 | + if ($tokens[$x]['code'] === T_STRING) { |
|
133 | + $className = strtolower($tokens[$x]['content']); |
|
134 | + if ($className === $systemName) { |
|
135 | + // The included system was used, so it is fine. |
|
136 | + return; |
|
137 | + } |
|
137 | 138 | } |
138 | 139 | } |
139 | - } |
|
140 | - break; |
|
140 | + break; |
|
141 | 141 | }//end switch |
142 | 142 | }//end for |
143 | 143 |
@@ -46,7 +46,7 @@ |
||
46 | 46 | T_PROPERTY, |
47 | 47 | T_LABEL, |
48 | 48 | T_OBJECT, |
49 | - ); |
|
49 | + ); |
|
50 | 50 | |
51 | 51 | }//end register() |
52 | 52 |
@@ -45,12 +45,12 @@ |
||
45 | 45 | * @var array |
46 | 46 | */ |
47 | 47 | protected $specificStylesheets = array( |
48 | - 'moz' => true, |
|
49 | - 'ie' => true, |
|
50 | - 'ie7' => true, |
|
51 | - 'ie8' => true, |
|
52 | - 'webkit' => true, |
|
53 | - ); |
|
48 | + 'moz' => true, |
|
49 | + 'ie' => true, |
|
50 | + 'ie7' => true, |
|
51 | + 'ie8' => true, |
|
52 | + 'webkit' => true, |
|
53 | + ); |
|
54 | 54 | |
55 | 55 | |
56 | 56 | /** |
@@ -54,7 +54,7 @@ |
||
54 | 54 | 10 => 2, |
55 | 55 | 12 => 2, |
56 | 56 | 15 => 1, |
57 | - ); |
|
57 | + ); |
|
58 | 58 | |
59 | 59 | }//end getErrorList() |
60 | 60 |
@@ -40,7 +40,7 @@ |
||
40 | 40 | * |
41 | 41 | * @return array<int, int> |
42 | 42 | */ |
43 | - public function getErrorList($testFile='JoinStringsUnitTest.js') |
|
43 | + public function getErrorList($testFile = 'JoinStringsUnitTest.js') |
|
44 | 44 | { |
45 | 45 | if ($testFile !== 'JoinStringsUnitTest.js') { |
46 | 46 | return array(); |
@@ -57,9 +57,9 @@ |
||
57 | 57 | function myFunction() |
58 | 58 | { |
59 | 59 | if (Channels::systemExists('Log5') === TRUE) { |
60 | - Channels::includeSystem('Log5'); |
|
60 | + Channels::includeSystem('Log5'); |
|
61 | 61 | } else { |
62 | - return; |
|
62 | + return; |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | Log5::addProjectLog('metadata.field.update', $msg); |
@@ -52,7 +52,7 @@ |
||
52 | 52 | 61 => 1, |
53 | 53 | 70 => 1, |
54 | 54 | 89 => 1, |
55 | - ); |
|
55 | + ); |
|
56 | 56 | |
57 | 57 | }//end getErrorList() |
58 | 58 |
@@ -92,9 +92,9 @@ |
||
92 | 92 | } |
93 | 93 | |
94 | 94 | if (Channels::systemExists('Log') === TRUE) { |
95 | - Channels::includeSystem('Log'); |
|
95 | + Channels::includeSystem('Log'); |
|
96 | 96 | } else { |
97 | - return; |
|
97 | + return; |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | Log::addProjectLog('metadata.field.update', $msg); |
@@ -47,7 +47,7 @@ |
||
47 | 47 | 24 => 1, |
48 | 48 | 34 => 1, |
49 | 49 | 54 => 1, |
50 | - ); |
|
50 | + ); |
|
51 | 51 | |
52 | 52 | }//end getErrorList() |
53 | 53 |