Completed
Branch master (d87ed9)
by Tomáš
06:31
created
Standards/Generic/Sniffs/CodeAnalysis/ForLoopShouldBeWhileLoopSniff.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -76,10 +76,10 @@
 block discarded – undo
76 76
         $end  = --$token['parenthesis_closer'];
77 77
 
78 78
         $parts = array(
79
-                  0,
80
-                  0,
81
-                  0,
82
-                 );
79
+                    0,
80
+                    0,
81
+                    0,
82
+                    );
83 83
         $index = 0;
84 84
 
85 85
         for (; $next <= $end; ++$next) {
Please login to merge, or discard this patch.
Standards/Generic/Sniffs/CodeAnalysis/UselessOverridingMethodSniff.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
                                 T_VARIABLE,
129 129
                                 T_LNUMBER,
130 130
                                 T_CONSTANT_ENCAPSED_STRING,
131
-                               );
131
+                                );
132 132
 
133 133
         $parameters       = array('');
134 134
         $parenthesisCount = 1;
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     /**
40 40
      * Returns the token types that this sniff is interested in.
41 41
      *
42
-     * @return int[]
42
+     * @return integer[]
43 43
      */
44 44
     public function register()
45 45
     {
Please login to merge, or discard this patch.
Standards/Generic/Sniffs/CodeAnalysis/UnusedFunctionParameterSniff.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -76,11 +76,11 @@
 block discarded – undo
76 76
 
77 77
         $foundContent = false;
78 78
         $validTokens  = array(
79
-                         T_HEREDOC              => T_HEREDOC,
80
-                         T_NOWDOC               => T_NOWDOC,
81
-                         T_END_HEREDOC          => T_END_HEREDOC,
82
-                         T_END_NOWDOC           => T_END_NOWDOC,
83
-                         T_DOUBLE_QUOTED_STRING => T_DOUBLE_QUOTED_STRING,
79
+                            T_HEREDOC              => T_HEREDOC,
80
+                            T_NOWDOC               => T_NOWDOC,
81
+                            T_END_HEREDOC          => T_END_HEREDOC,
82
+                            T_END_NOWDOC           => T_END_NOWDOC,
83
+                            T_DOUBLE_QUOTED_STRING => T_DOUBLE_QUOTED_STRING,
84 84
                         );
85 85
         $validTokens += PHP_CodeSniffer_Tokens::$emptyTokens;
86 86
 
Please login to merge, or discard this patch.
CodeSniffer/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.
CodeSniffer/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.
CodeSniffer/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.
CodeSniffer/Standards/Generic/Sniffs/PHP/ForbiddenFunctionsSniff.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@  discard block
 block discarded – undo
40 40
      * @var array(string => string|null)
41 41
      */
42 42
     public $forbiddenFunctions = array(
43
-                                  'sizeof' => 'count',
44
-                                  'delete' => 'unset',
45
-                                 );
43
+                                    'sizeof' => 'count',
44
+                                    'delete' => 'unset',
45
+                                    );
46 46
 
47 47
     /**
48 48
      * A cache of forbidden function names, for faster lookups.
@@ -121,19 +121,19 @@  discard block
 block discarded – undo
121 121
         $tokens = $phpcsFile->getTokens();
122 122
 
123 123
         $ignore = array(
124
-                   T_DOUBLE_COLON    => true,
125
-                   T_OBJECT_OPERATOR => true,
126
-                   T_FUNCTION        => true,
127
-                   T_CONST           => true,
128
-                   T_PUBLIC          => true,
129
-                   T_PRIVATE         => true,
130
-                   T_PROTECTED       => true,
131
-                   T_AS              => true,
132
-                   T_NEW             => true,
133
-                   T_INSTEADOF       => true,
134
-                   T_NS_SEPARATOR    => true,
135
-                   T_IMPLEMENTS      => true,
136
-                  );
124
+                    T_DOUBLE_COLON    => true,
125
+                    T_OBJECT_OPERATOR => true,
126
+                    T_FUNCTION        => true,
127
+                    T_CONST           => true,
128
+                    T_PUBLIC          => true,
129
+                    T_PRIVATE         => true,
130
+                    T_PROTECTED       => true,
131
+                    T_AS              => true,
132
+                    T_NEW             => true,
133
+                    T_INSTEADOF       => true,
134
+                    T_NS_SEPARATOR    => true,
135
+                    T_IMPLEMENTS      => true,
136
+                    );
137 137
 
138 138
         $prevToken = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
139 139
 
Please login to merge, or discard this 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.
CodeSniffer/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.
CodeSniffer/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.