Completed
Push — master ( 8cd077 )
by Tomáš
09:25
created
Standards/Generic/Sniffs/NamingConventions/UpperCaseConstantNameSniff.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -89,11 +89,11 @@  discard block
 block discarded – undo
89 89
         if ($tokens[$openBracket]['code'] !== T_OPEN_PARENTHESIS) {
90 90
             $functionKeyword = $phpcsFile->findPrevious(
91 91
                 array(
92
-                 T_WHITESPACE,
93
-                 T_COMMA,
94
-                 T_COMMENT,
95
-                 T_STRING,
96
-                 T_NS_SEPARATOR,
92
+                    T_WHITESPACE,
93
+                    T_COMMA,
94
+                    T_COMMENT,
95
+                    T_STRING,
96
+                    T_NS_SEPARATOR,
97 97
                 ),
98 98
                 ($stackPtr - 1),
99 99
                 null,
@@ -114,9 +114,9 @@  discard block
 block discarded – undo
114 114
 
115 115
                 $error = 'Class constants must be uppercase; expected %s but found %s';
116 116
                 $data  = array(
117
-                          strtoupper($constName),
118
-                          $constName,
119
-                         );
117
+                            strtoupper($constName),
118
+                            $constName,
119
+                            );
120 120
                 $phpcsFile->addError($error, $stackPtr, 'ClassConstantNotUpperCase', $data);
121 121
             } else {
122 122
                 $phpcsFile->recordMetric($stackPtr, 'Constant name case', 'upper');
@@ -166,9 +166,9 @@  discard block
 block discarded – undo
166 166
 
167 167
             $error = 'Constants must be uppercase; expected %s but found %s';
168 168
             $data  = array(
169
-                      $prefix.strtoupper($constName),
170
-                      $prefix.$constName,
171
-                     );
169
+                        $prefix.strtoupper($constName),
170
+                        $prefix.$constName,
171
+                        );
172 172
             $phpcsFile->addError($error, $stackPtr, 'ConstantNotUpperCase', $data);
173 173
         } else {
174 174
             $phpcsFile->recordMetric($stackPtr, 'Constant name case', 'upper');
Please login to merge, or discard this patch.
src/Standards/Generic/Sniffs/PHP/LowerCaseConstantSniff.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
      * @var array
37 37
      */
38 38
     public $supportedTokenizers = array(
39
-                                   'PHP',
40
-                                   'JS',
41
-                                  );
39
+                                    'PHP',
40
+                                    'JS',
41
+                                    );
42 42
 
43 43
 
44 44
     /**
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
                 T_TRUE,
53 53
                 T_FALSE,
54 54
                 T_NULL,
55
-               );
55
+                );
56 56
 
57 57
     }//end register()
58 58
 
@@ -80,9 +80,9 @@  discard block
 block discarded – undo
80 80
 
81 81
             $error = 'TRUE, FALSE and NULL must be lowercase; expected "%s" but found "%s"';
82 82
             $data  = array(
83
-                      $expected,
84
-                      $keyword,
85
-                     );
83
+                        $expected,
84
+                        $keyword,
85
+                        );
86 86
 
87 87
             $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Found', $data);
88 88
             if ($fix === true) {
Please login to merge, or discard this patch.
src/Standards/Generic/Sniffs/PHP/UpperCaseConstantSniff.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
                 T_TRUE,
43 43
                 T_FALSE,
44 44
                 T_NULL,
45
-               );
45
+                );
46 46
 
47 47
     }//end register()
48 48
 
@@ -70,9 +70,9 @@  discard block
 block discarded – undo
70 70
 
71 71
             $error = 'TRUE, FALSE and NULL must be uppercase; expected "%s" but found "%s"';
72 72
             $data  = array(
73
-                      $expected,
74
-                      $keyword,
75
-                     );
73
+                        $expected,
74
+                        $keyword,
75
+                        );
76 76
 
77 77
             $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Found', $data);
78 78
             if ($fix === true) {
Please login to merge, or discard this patch.
src/Standards/Generic/Sniffs/PHP/LowerCaseKeywordSniff.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                 T_USE,
104 104
                 T_VAR,
105 105
                 T_WHILE,
106
-               );
106
+                );
107 107
 
108 108
     }//end register()
109 109
 
@@ -130,9 +130,9 @@  discard block
 block discarded – undo
130 130
 
131 131
             $error = 'PHP keywords must be lowercase; expected "%s" but found "%s"';
132 132
             $data  = array(
133
-                      strtolower($keyword),
134
-                      $keyword,
135
-                     );
133
+                        strtolower($keyword),
134
+                        $keyword,
135
+                        );
136 136
 
137 137
             $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Found', $data);
138 138
             if ($fix === true) {
Please login to merge, or discard this patch.
src/Standards/Generic/Sniffs/PHP/SAPIUsageSniff.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -55,11 +55,11 @@
 block discarded – undo
55 55
         $tokens = $phpcsFile->getTokens();
56 56
 
57 57
         $ignore = array(
58
-                   T_DOUBLE_COLON    => true,
59
-                   T_OBJECT_OPERATOR => true,
60
-                   T_FUNCTION        => true,
61
-                   T_CONST           => true,
62
-                  );
58
+                    T_DOUBLE_COLON    => true,
59
+                    T_OBJECT_OPERATOR => true,
60
+                    T_FUNCTION        => true,
61
+                    T_CONST           => true,
62
+                    );
63 63
 
64 64
         $prevToken = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
65 65
         if (isset($ignore[$tokens[$prevToken]['code']]) === true) {
Please login to merge, or discard this patch.
src/Standards/Generic/Sniffs/PHP/DisallowShortOpenTagSniff.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         return array(
42 42
                 T_OPEN_TAG,
43 43
                 T_OPEN_TAG_WITH_ECHO,
44
-               );
44
+                );
45 45
 
46 46
     }//end register()
47 47
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
                         $nextVar['content'],
77 77
                         $openTag['content'],
78 78
                         $nextVar['content'],
79
-                       );
79
+                        );
80 80
             $phpcsFile->addError($error, $stackPtr, 'EchoFound', $data);
81 81
         }
82 82
 
Please login to merge, or discard this patch.
src/Standards/Generic/Sniffs/PHP/DeprecatedFunctionsSniff.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@
 block discarded – undo
204 204
      *
205 205
      * @return void
206 206
      */
207
-    protected function addError($phpcsFile, $stackPtr, $function, $pattern=null)
207
+    protected function addError($phpcsFile, $stackPtr, $function, $pattern = null)
208 208
     {
209 209
         $data  = array($function);
210 210
         $error = 'The use of function %s() is ';
Please login to merge, or discard this patch.
src/Standards/Generic/Sniffs/Metrics/NestingLevelSniff.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -93,16 +93,16 @@
 block discarded – undo
93 93
         if ($nestingLevel > $this->absoluteNestingLevel) {
94 94
             $error = 'Function\'s nesting level (%s) exceeds allowed maximum of %s';
95 95
             $data  = array(
96
-                      $nestingLevel,
97
-                      $this->absoluteNestingLevel,
98
-                     );
96
+                        $nestingLevel,
97
+                        $this->absoluteNestingLevel,
98
+                        );
99 99
             $phpcsFile->addError($error, $stackPtr, 'MaxExceeded', $data);
100 100
         } else if ($nestingLevel > $this->nestingLevel) {
101 101
             $warning = 'Function\'s nesting level (%s) exceeds %s; consider refactoring the function';
102 102
             $data    = array(
103 103
                         $nestingLevel,
104 104
                         $this->nestingLevel,
105
-                       );
105
+                        );
106 106
             $phpcsFile->addWarning($warning, $stackPtr, 'TooHigh', $data);
107 107
         }
108 108
 
Please login to merge, or discard this patch.
src/Standards/Generic/Sniffs/CodeAnalysis/EmptyStatementSniff.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
                 48 => 1,
58 58
                 70 => 1,
59 59
                 71 => 1,
60
-               );
60
+                );
61 61
 
62 62
     }//end getErrorList()
63 63
 
Please login to merge, or discard this patch.