Completed
Branch master (d87ed9)
by Tomáš
07:16
created
CodeSniffer/Standards/AbstractVariableSniff.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -67,17 +67,17 @@
 block discarded – undo
67 67
     public function __construct()
68 68
     {
69 69
         $scopes = array(
70
-                   T_CLASS,
71
-                   T_TRAIT,
72
-                   T_INTERFACE,
73
-                  );
70
+                    T_CLASS,
71
+                    T_TRAIT,
72
+                    T_INTERFACE,
73
+                    );
74 74
 
75 75
         $listen = array(
76
-                   T_FUNCTION,
77
-                   T_VARIABLE,
78
-                   T_DOUBLE_QUOTED_STRING,
79
-                   T_HEREDOC,
80
-                  );
76
+                    T_FUNCTION,
77
+                    T_VARIABLE,
78
+                    T_DOUBLE_QUOTED_STRING,
79
+                    T_HEREDOC,
80
+                    );
81 81
 
82 82
         parent::__construct($scopes, $listen, true);
83 83
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/AbstractPatternSniff.php 3 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -114,9 +114,9 @@  discard block
 block discarded – undo
114 114
             $listenTypes[] = $tokenType;
115 115
 
116 116
             $patternArray = array(
117
-                             'listen_pos'   => $pos,
118
-                             'pattern'      => $parsedPattern,
119
-                             'pattern_code' => $pattern,
117
+                                'listen_pos'   => $pos,
118
+                                'pattern'      => $parsedPattern,
119
+                                'pattern_code' => $pattern,
120 120
                             );
121 121
 
122 122
             if (isset($this->_parsedPatterns[$tokenType]) === false) {
@@ -763,17 +763,17 @@  discard block
 block discarded – undo
763 763
     }//end registerSupplementary()
764 764
 
765 765
 
766
-     /**
767
-      * Processes any tokens registered with registerSupplementary().
768
-      *
769
-      * @param PHP_CodeSniffer_File $phpcsFile The PHP_CodeSniffer file where to
770
-      *                                        process the skip.
771
-      * @param int                  $stackPtr  The position in the tokens stack to
772
-      *                                        process.
773
-      *
774
-      * @return void
775
-      * @see    registerSupplementary()
776
-      */
766
+        /**
767
+         * Processes any tokens registered with registerSupplementary().
768
+         *
769
+         * @param PHP_CodeSniffer_File $phpcsFile The PHP_CodeSniffer file where to
770
+         *                                        process the skip.
771
+         * @param int                  $stackPtr  The position in the tokens stack to
772
+         *                                        process.
773
+         *
774
+         * @return void
775
+         * @see    registerSupplementary()
776
+         */
777 777
     protected function processSupplementary(
778 778
         PHP_CodeSniffer_File $phpcsFile,
779 779
         $stackPtr
@@ -948,10 +948,10 @@  discard block
 block discarded – undo
948 948
         $patterns = array();
949 949
         foreach ($tokens as $patternInfo) {
950 950
             $patterns[] = array(
951
-                           'type'  => 'token',
952
-                           'token' => $patternInfo['code'],
953
-                           'value' => $patternInfo['content'],
954
-                          );
951
+                            'type'  => 'token',
952
+                            'token' => $patternInfo['code'],
953
+                            'value' => $patternInfo['content'],
954
+                            );
955 955
         }
956 956
 
957 957
         return $patterns;
Please login to merge, or discard this patch.
Switch Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -890,26 +890,26 @@
 block discarded – undo
890 890
         $nestedBraces      = 0;
891 891
         for ($start = $from; $start >= 0; $start--) {
892 892
             switch ($pattern[$start]) {
893
-            case '(':
894
-                if ($nestedParenthesis === 0) {
895
-                    $skip['to'] = 'parenthesis_closer';
896
-                }
893
+                case '(':
894
+                    if ($nestedParenthesis === 0) {
895
+                        $skip['to'] = 'parenthesis_closer';
896
+                    }
897 897
 
898
-                $nestedParenthesis--;
899
-                break;
900
-            case '{':
901
-                if ($nestedBraces === 0) {
902
-                    $skip['to'] = 'scope_closer';
903
-                }
898
+                    $nestedParenthesis--;
899
+                    break;
900
+                case '{':
901
+                    if ($nestedBraces === 0) {
902
+                        $skip['to'] = 'scope_closer';
903
+                    }
904 904
 
905
-                $nestedBraces--;
906
-                break;
907
-            case '}':
908
-                $nestedBraces++;
909
-                break;
910
-            case ')':
911
-                $nestedParenthesis++;
912
-                break;
905
+                    $nestedBraces--;
906
+                    break;
907
+                case '}':
908
+                    $nestedBraces++;
909
+                    break;
910
+                case ')':
911
+                    $nestedParenthesis++;
912
+                    break;
913 913
             }//end switch
914 914
 
915 915
             if (isset($skip['to']) === true) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
      *
79 79
      * @param boolean $ignoreComments If true, comments will be ignored.
80 80
      */
81
-    public function __construct($ignoreComments=null)
81
+    public function __construct($ignoreComments = null)
82 82
     {
83 83
         // This is here for backwards compatibility.
84 84
         if ($ignoreComments !== null) {
Please login to merge, or discard this patch.
Standards/Zend/Sniffs/NamingConventions/ValidVariableNameSniff.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     private $_ignore = array(
43 43
                         T_WHITESPACE,
44 44
                         T_COMMENT,
45
-                       );
45
+                        );
46 46
 
47 47
 
48 48
     /**
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                             'http_response_header',
73 73
                             'HTTP_RAW_POST_DATA',
74 74
                             'php_errormsg',
75
-                           );
75
+                            );
76 76
 
77 77
         // If it's a php reserved var, then its ok.
78 78
         if (in_array($varName, $phpReservedVars) === true) {
@@ -171,9 +171,9 @@  discard block
 block discarded – undo
171 171
                 $scope = ucfirst($memberProps['scope']);
172 172
                 $error = '%s member variable "%s" must contain a leading underscore';
173 173
                 $data  = array(
174
-                          $scope,
175
-                          $varName,
176
-                         );
174
+                            $scope,
175
+                            $varName,
176
+                            );
177 177
                 $phpcsFile->addError($error, $stackPtr, 'PrivateNoUnderscore', $data);
178 178
                 return;
179 179
             }
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
                             'http_response_header',
219 219
                             'HTTP_RAW_POST_DATA',
220 220
                             'php_errormsg',
221
-                           );
221
+                            );
222 222
 
223 223
         if (preg_match_all('|[^\\\]\$([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)|', $tokens[$stackPtr]['content'], $matches) !== 0) {
224 224
             foreach ($matches[1] as $varName) {
Please login to merge, or discard this patch.
CodeSniffer/Standards/Zend/Tests/Files/ClosingTagUnitTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 
51 51
         return array(
52 52
                 11 => 1,
53
-               );
53
+                );
54 54
 
55 55
     }//end getErrorList()
56 56
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      *
43 43
      * @return array<int, int>
44 44
      */
45
-    public function getErrorList($testFile='')
45
+    public function getErrorList($testFile = '')
46 46
     {
47 47
         if ($testFile !== 'ClosingTagUnitTest.1.inc') {
48 48
             return array();
Please login to merge, or discard this patch.
Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
                 79 => 1,
69 69
                 96 => 1,
70 70
                 99 => 1,
71
-               );
71
+                );
72 72
 
73 73
     }//end getErrorList()
74 74
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
                 79 => 1,
100 100
                 82 => 1,
101 101
                 94 => 1,
102
-               );
102
+                );
103 103
 
104 104
     }//end getWarningList()
105 105
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/AbstractScopeSniff.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
     public function __construct(
87 87
         array $scopeTokens,
88 88
         array $tokens,
89
-        $listenOutside=false
89
+        $listenOutside = false
90 90
     ) {
91 91
         if (empty($scopeTokens) === true) {
92 92
             $error = 'The scope tokens list cannot be empty';
Please login to merge, or discard this patch.
CodeSniffer/Standards/PEAR/Sniffs/Classes/ClassDeclarationSniff.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
                 T_CLASS,
50 50
                 T_INTERFACE,
51 51
                 T_TRAIT,
52
-               );
52
+                );
53 53
 
54 54
     }//end register()
55 55
 
@@ -99,10 +99,10 @@  discard block
 block discarded – undo
99 99
             if ($braceLine > ($classLine + 1)) {
100 100
                 $error = 'Opening brace of a %s must be on the line following the %s declaration; found %s line(s)';
101 101
                 $data  = array(
102
-                          $tokens[$stackPtr]['content'],
103
-                          $tokens[$stackPtr]['content'],
104
-                          ($braceLine - $classLine - 1),
105
-                         );
102
+                            $tokens[$stackPtr]['content'],
103
+                            $tokens[$stackPtr]['content'],
104
+                            ($braceLine - $classLine - 1),
105
+                            );
106 106
                 $fix   = $phpcsFile->addFixableError($error, $curlyBrace, 'OpenBraceWrongLine', $data);
107 107
                 if ($fix === true) {
108 108
                     $phpcsFile->fixer->beginChangeset();
@@ -142,9 +142,9 @@  discard block
 block discarded – undo
142 142
             if ($spaces !== $expected) {
143 143
                 $error = 'Expected %s spaces before opening brace; %s found';
144 144
                 $data  = array(
145
-                          $expected,
146
-                          $spaces,
147
-                         );
145
+                            $expected,
146
+                            $spaces,
147
+                            );
148 148
 
149 149
                 $fix = $phpcsFile->addFixableError($error, $curlyBrace, 'SpaceBeforeBrace', $data);
150 150
                 if ($fix === true) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
                           $tokens[$stackPtr]['content'],
104 104
                           ($braceLine - $classLine - 1),
105 105
                          );
106
-                $fix   = $phpcsFile->addFixableError($error, $curlyBrace, 'OpenBraceWrongLine', $data);
106
+                $fix = $phpcsFile->addFixableError($error, $curlyBrace, 'OpenBraceWrongLine', $data);
107 107
                 if ($fix === true) {
108 108
                     $phpcsFile->fixer->beginChangeset();
109 109
                     for ($i = ($curlyBrace - 1); $i > $lastContent; $i--) {
Please login to merge, or discard this patch.
Standards/PEAR/Sniffs/ControlStructures/ControlSignatureSniff.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
                 '} elseif (...) {EOL',
58 58
                 '} else {EOL',
59 59
                 'do {EOL',
60
-               );
60
+                );
61 61
 
62 62
     }//end getPatterns()
63 63
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/PEAR/Sniffs/Files/IncludingFileSniff.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
                 T_REQUIRE_ONCE,
46 46
                 T_REQUIRE,
47 47
                 T_INCLUDE,
48
-               );
48
+                );
49 49
 
50 50
     }//end register()
51 51
 
Please login to merge, or discard this patch.