Completed
Branch master (d87ed9)
by Tomáš
07:16
created
CodeSniffer/Standards/Squiz/Sniffs/Arrays/ArrayBracketSpacingSniff.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     /**
35 35
      * Returns an array of tokens this test wants to listen for.
36 36
      *
37
-     * @return array
37
+     * @return string[]
38 38
      */
39 39
     public function register()
40 40
     {
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 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_SQUARE_BRACKET,
43 43
                 T_CLOSE_SQUARE_BRACKET,
44
-               );
44
+                );
45 45
 
46 46
     }//end register()
47 47
 
@@ -85,8 +85,8 @@  discard block
 block discarded – undo
85 85
             $found    = $phpcsFile->getTokensAsString($nonSpace, ($stackPtr - $nonSpace)).$tokens[$stackPtr]['content'];
86 86
             $error    = 'Space found before square bracket; expected "%s" but found "%s"';
87 87
             $data     = array(
88
-                         $expected,
89
-                         $found,
88
+                            $expected,
89
+                            $found,
90 90
                         );
91 91
             $fix      = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceBeforeBracket', $data);
92 92
             if ($fix === true) {
@@ -103,8 +103,8 @@  discard block
 block discarded – undo
103 103
                 $found    = $phpcsFile->getTokensAsString($stackPtr, ($nonSpace - $stackPtr + 1));
104 104
                 $error    = 'Space found after square bracket; expected "%s" but found "%s"';
105 105
                 $data     = array(
106
-                             $expected,
107
-                             $found,
106
+                                $expected,
107
+                                $found,
108 108
                             );
109 109
                 $fix      = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceAfterBracket', $data);
110 110
                 if ($fix === true) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                          $expected,
89 89
                          $found,
90 90
                         );
91
-            $fix      = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceBeforeBracket', $data);
91
+            $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceBeforeBracket', $data);
92 92
             if ($fix === true) {
93 93
                 $phpcsFile->fixer->replaceToken(($stackPtr - 1), '');
94 94
             }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
                              $expected,
107 107
                              $found,
108 108
                             );
109
-                $fix      = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceAfterBracket', $data);
109
+                $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceAfterBracket', $data);
110 110
                 if ($fix === true) {
111 111
                     $phpcsFile->fixer->replaceToken(($stackPtr + 1), '');
112 112
                 }
Please login to merge, or discard this patch.
CodeSniffer/Standards/Squiz/Sniffs/Classes/ValidClassNameSniff.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     /**
35 35
      * Returns an array of tokens this test wants to listen for.
36 36
      *
37
-     * @return array
37
+     * @return integer[]
38 38
      */
39 39
     public function register()
40 40
     {
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         return array(
42 42
                 T_CLASS,
43 43
                 T_INTERFACE,
44
-               );
44
+                );
45 45
 
46 46
     }//end register()
47 47
 
@@ -84,9 +84,9 @@  discard block
 block discarded – undo
84 84
             $type  = ucfirst($tokens[$stackPtr]['content']);
85 85
             $error = '%s name "%s" is not in camel caps format';
86 86
             $data  = array(
87
-                      $type,
88
-                      $name,
89
-                     );
87
+                        $type,
88
+                        $name,
89
+                        );
90 90
             $phpcsFile->addError($error, $stackPtr, 'NotCamelCaps', $data);
91 91
             $phpcsFile->recordMetric($stackPtr, 'CamelCase class name', 'no');
92 92
         } else {
Please login to merge, or discard this patch.
CodeSniffer/Standards/Squiz/Sniffs/Commenting/ClassCommentSniff.php 1 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 an array of tokens this test wants to listen for.
41 41
      *
42
-     * @return array
42
+     * @return integer[]
43 43
      */
44 44
     public function register()
45 45
     {
Please login to merge, or discard this patch.
Standards/Squiz/Sniffs/Commenting/ClosingDeclarationCommentSniff.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     /**
35 35
      * Returns an array of tokens this test wants to listen for.
36 36
      *
37
-     * @return array
37
+     * @return integer[]
38 38
      */
39 39
     public function register()
40 40
     {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
                 T_FUNCTION,
43 43
                 T_CLASS,
44 44
                 T_INTERFACE,
45
-               );
45
+                );
46 46
 
47 47
     }//end register()
48 48
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/Squiz/Sniffs/Commenting/FileCommentSniff.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
     /**
44 44
      * Returns an array of tokens this test wants to listen for.
45 45
      *
46
-     * @return array
46
+     * @return integer[]
47 47
      */
48 48
     public function register()
49 49
     {
Please login to merge, or discard this patch.
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
      * @var array
36 36
      */
37 37
     public $supportedTokenizers = array(
38
-                                   'PHP',
39
-                                   'JS',
40
-                                  );
38
+                                    'PHP',
39
+                                    'JS',
40
+                                    );
41 41
 
42 42
 
43 43
     /**
@@ -88,24 +88,24 @@  discard block
 block discarded – undo
88 88
         );
89 89
 
90 90
         $ignore = array(
91
-                   T_CLASS,
92
-                   T_INTERFACE,
93
-                   T_TRAIT,
94
-                   T_FUNCTION,
95
-                   T_CLOSURE,
96
-                   T_PUBLIC,
97
-                   T_PRIVATE,
98
-                   T_PROTECTED,
99
-                   T_FINAL,
100
-                   T_STATIC,
101
-                   T_ABSTRACT,
102
-                   T_CONST,
103
-                   T_PROPERTY,
104
-                   T_INCLUDE,
105
-                   T_INCLUDE_ONCE,
106
-                   T_REQUIRE,
107
-                   T_REQUIRE_ONCE,
108
-                  );
91
+                    T_CLASS,
92
+                    T_INTERFACE,
93
+                    T_TRAIT,
94
+                    T_FUNCTION,
95
+                    T_CLOSURE,
96
+                    T_PUBLIC,
97
+                    T_PRIVATE,
98
+                    T_PROTECTED,
99
+                    T_FINAL,
100
+                    T_STATIC,
101
+                    T_ABSTRACT,
102
+                    T_CONST,
103
+                    T_PROPERTY,
104
+                    T_INCLUDE,
105
+                    T_INCLUDE_ONCE,
106
+                    T_REQUIRE,
107
+                    T_REQUIRE_ONCE,
108
+                    );
109 109
 
110 110
         if (in_array($tokens[$nextToken]['code'], $ignore) === true) {
111 111
             $phpcsFile->addError('Missing file doc comment', $stackPtr, 'Missing');
@@ -130,10 +130,10 @@  discard block
 block discarded – undo
130 130
 
131 131
         // Required tags in correct order.
132 132
         $required = array(
133
-                     '@package'    => true,
134
-                     '@subpackage' => true,
135
-                     '@author'     => true,
136
-                     '@copyright'  => true,
133
+                        '@package'    => true,
134
+                        '@subpackage' => true,
135
+                        '@author'     => true,
136
+                        '@copyright'  => true,
137 137
                     );
138 138
 
139 139
         $foundTags = array();
@@ -204,9 +204,9 @@  discard block
 block discarded – undo
204 204
             if ($foundTags[$pos] !== $tag) {
205 205
                 $error = 'The tag in position %s should be the %s tag';
206 206
                 $data  = array(
207
-                          ($pos + 1),
208
-                          $tag,
209
-                         );
207
+                            ($pos + 1),
208
+                            $tag,
209
+                            );
210 210
                 $phpcsFile->addError($error, $tokens[$commentStart]['comment_tags'][$pos], ucfirst(substr($tag, 1)).'TagOrder', $data);
211 211
             }
212 212
 
Please login to merge, or discard this patch.
Standards/Squiz/Sniffs/ControlStructures/InlineIfDeclarationSniff.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     /**
35 35
      * Returns an array of tokens this test wants to listen for.
36 36
      *
37
-     * @return array
37
+     * @return string[]
38 38
      */
39 39
     public function register()
40 40
     {
Please login to merge, or discard this patch.
CodeSniffer/Standards/Squiz/Sniffs/CSS/DuplicateClassDefinitionSniff.php 2 patches
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.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,9 +70,9 @@
 block discarded – undo
70 70
         }
71 71
 
72 72
         $find = array(
73
-                 T_CLOSE_CURLY_BRACKET,
74
-                 T_COMMENT,
75
-                 T_OPEN_TAG,
73
+                    T_CLOSE_CURLY_BRACKET,
74
+                    T_COMMENT,
75
+                    T_OPEN_TAG,
76 76
                 );
77 77
 
78 78
         while ($next !== false) {
Please login to merge, or discard this patch.
CodeSniffer/Standards/Squiz/Sniffs/CSS/MissingColonSniff.php 1 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 string[]
43 43
      */
44 44
     public function register()
45 45
     {
Please login to merge, or discard this patch.
CodeSniffer/Standards/Squiz/Sniffs/CSS/ShorthandSizeSniff.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
     /**
56 56
      * Returns the token types that this sniff is interested in.
57 57
      *
58
-     * @return int[]
58
+     * @return string[]
59 59
      */
60 60
     public function register()
61 61
     {
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -44,11 +44,11 @@  discard block
 block discarded – undo
44 44
      * @var array
45 45
      */
46 46
     public $excludeStyles = array(
47
-                             'background-position'      => 'background-position',
48
-                             'box-shadow'               => 'box-shadow',
49
-                             'transform-origin'         => 'transform-origin',
50
-                             '-webkit-transform-origin' => '-webkit-transform-origin',
51
-                             '-ms-transform-origin'     => '-ms-transform-origin',
47
+                                'background-position'      => 'background-position',
48
+                                'box-shadow'               => 'box-shadow',
49
+                                'transform-origin'         => 'transform-origin',
50
+                                '-webkit-transform-origin' => '-webkit-transform-origin',
51
+                                '-ms-transform-origin'     => '-ms-transform-origin',
52 52
                             );
53 53
 
54 54
 
@@ -165,9 +165,9 @@  discard block
 block discarded – undo
165 165
 
166 166
         $error = 'Size definitions must use shorthand if available; expected "%s" but found "%s"';
167 167
         $data  = array(
168
-                  $expected,
169
-                  $content,
170
-                 );
168
+                    $expected,
169
+                    $content,
170
+                    );
171 171
 
172 172
         $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NotUsed', $data);
173 173
         if ($fix === true) {
Please login to merge, or discard this patch.