@@ -36,9 +36,9 @@ discard block |
||
| 36 | 36 | * @var array |
| 37 | 37 | */ |
| 38 | 38 | public $supportedTokenizers = array( |
| 39 | - 'PHP', |
|
| 40 | - 'CSS', |
|
| 41 | - ); |
|
| 39 | + 'PHP', |
|
| 40 | + 'CSS', |
|
| 41 | + ); |
|
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * If a comment is more than $maxPercentage% code, a warning will be shown. |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | T_ENCAPSED_AND_WHITESPACE => true, |
| 159 | 159 | T_NONE => true, |
| 160 | 160 | T_COMMENT => true, |
| 161 | - ); |
|
| 161 | + ); |
|
| 162 | 162 | |
| 163 | 163 | $numTokens = count($stringTokens); |
| 164 | 164 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | return array( |
| 42 | 42 | T_START_HEREDOC, |
| 43 | 43 | T_START_NOWDOC, |
| 44 | - ); |
|
| 44 | + ); |
|
| 45 | 45 | |
| 46 | 46 | }//end register() |
| 47 | 47 | |
@@ -124,9 +124,9 @@ |
||
| 124 | 124 | if ($content !== strtolower($content)) { |
| 125 | 125 | $error = 'Calls to inbuilt PHP functions must be lowercase; expected "%s" but found "%s"'; |
| 126 | 126 | $data = array( |
| 127 | - strtolower($content), |
|
| 128 | - $content, |
|
| 129 | - ); |
|
| 127 | + strtolower($content), |
|
| 128 | + $content, |
|
| 129 | + ); |
|
| 130 | 130 | |
| 131 | 131 | $fix = $phpcsFile->addFixableError($error, $stackPtr, 'CallUppercase', $data); |
| 132 | 132 | if ($fix === true) { |
@@ -62,13 +62,13 @@ |
||
| 62 | 62 | $prev = $phpcsFile->findPrevious($allowedTokens, ($stackPtr - 1), null, true); |
| 63 | 63 | |
| 64 | 64 | $allowedTokens = array( |
| 65 | - T_EQUAL => true, |
|
| 66 | - T_DOUBLE_ARROW => true, |
|
| 67 | - T_THROW => true, |
|
| 68 | - T_RETURN => true, |
|
| 69 | - T_INLINE_THEN => true, |
|
| 70 | - T_INLINE_ELSE => true, |
|
| 71 | - ); |
|
| 65 | + T_EQUAL => true, |
|
| 66 | + T_DOUBLE_ARROW => true, |
|
| 67 | + T_THROW => true, |
|
| 68 | + T_RETURN => true, |
|
| 69 | + T_INLINE_THEN => true, |
|
| 70 | + T_INLINE_ELSE => true, |
|
| 71 | + ); |
|
| 72 | 72 | |
| 73 | 73 | if (isset($allowedTokens[$tokens[$prev]['code']]) === false) { |
| 74 | 74 | $error = 'New objects must be assigned to a variable'; |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | 32 => 2, |
| 52 | 52 | 100 => 1, |
| 53 | 53 | 111 => 1, |
| 54 | - ); |
|
| 54 | + ); |
|
| 55 | 55 | |
| 56 | 56 | }//end getErrorList() |
| 57 | 57 | |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | 4 => 1, |
| 45 | 45 | 8 => 1, |
| 46 | 46 | 28 => 1, |
| 47 | - ); |
|
| 47 | + ); |
|
| 48 | 48 | |
| 49 | 49 | }//end getErrorList() |
| 50 | 50 | |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | 20 => 1, |
| 51 | 51 | 30 => 1, |
| 52 | 52 | 32 => 1, |
| 53 | - ); |
|
| 53 | + ); |
|
| 54 | 54 | |
| 55 | 55 | }//end getErrorList() |
| 56 | 56 | |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | 105 => 1, |
| 77 | 77 | 107 => 1, |
| 78 | 78 | 110 => 1, |
| 79 | - ); |
|
| 79 | + ); |
|
| 80 | 80 | |
| 81 | 81 | }//end getErrorList() |
| 82 | 82 | |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | |
| 14 | 14 | public function SelfMemberReferenceUnitTestExample() |
| 15 | 15 | { |
| 16 | - $testResults =& $this->testResults; |
|
| 16 | + $testResults = & $this->testResults; |
|
| 17 | 17 | |
| 18 | 18 | |
| 19 | 19 | // Correct call to self. |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | MyClass::test($value); |
| 58 | 58 | }; |
| 59 | 59 | |
| 60 | - $array = array(1,2,3); |
|
| 60 | + $array = array(1, 2, 3); |
|
| 61 | 61 | array_walk($array, $callback); |
| 62 | 62 | } |
| 63 | 63 | } |