Completed
Branch master (d87ed9)
by Tomáš
07:16
created
CodeSniffer/Standards/MySource/Sniffs/Channels/IncludeOwnSystemSniff.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     /**
31 31
      * Returns an array of tokens this test wants to listen for.
32 32
      *
33
-     * @return array
33
+     * @return integer[]
34 34
      */
35 35
     public function register()
36 36
     {
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      * @param int                  $stackPtr  The position in the tokens array of the
94 94
      *                                        potentially included class.
95 95
      *
96
-     * @return string
96
+     * @return boolean
97 97
      */
98 98
     protected function getIncludedClassFromToken(
99 99
         PHP_CodeSniffer_File $phpcsFile,
Please login to merge, or discard this patch.
Switch Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -63,17 +63,17 @@
 block discarded – undo
63 63
         $typeName = $phpcsFile->findNext(T_CONSTANT_ENCAPSED_STRING, ($stackPtr + 2), null, false, true);
64 64
         $typeName = trim($tokens[$typeName]['content'], " '");
65 65
         switch (strtolower($tokens[($stackPtr + 1)]['content'])) {
66
-        case 'includesystem' :
67
-            $included = strtolower($typeName);
68
-            break;
69
-        case 'includeasset' :
70
-            $included = strtolower($typeName).'assettype';
71
-            break;
72
-        case 'includewidget' :
73
-            $included = strtolower($typeName).'widgettype';
74
-            break;
75
-        default:
76
-            return;
66
+            case 'includesystem' :
67
+                $included = strtolower($typeName);
68
+                break;
69
+            case 'includeasset' :
70
+                $included = strtolower($typeName).'assettype';
71
+                break;
72
+            case 'includewidget' :
73
+                $included = strtolower($typeName).'widgettype';
74
+                break;
75
+            default:
76
+                return;
77 77
         }
78 78
 
79 79
         if ($included === strtolower($ownClass)) {
Please login to merge, or discard this patch.
CodeSniffer/Standards/MySource/Sniffs/Objects/AssignThisSniff.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     /**
38 38
      * Returns an array of tokens this test wants to listen for.
39 39
      *
40
-     * @return array
40
+     * @return string[]
41 41
      */
42 42
     public function register()
43 43
     {
Please login to merge, or discard this patch.
Standards/MySource/Sniffs/Objects/CreateWidgetTypeCallbackSniff.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     /**
38 38
      * Returns an array of tokens this test wants to listen for.
39 39
      *
40
-     * @return array
40
+     * @return string[]
41 41
      */
42 42
     public function register()
43 43
     {
Please login to merge, or discard this patch.
CodeSniffer/Standards/MySource/Sniffs/PHP/AjaxNullComparisonSniff.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     /**
34 34
      * Returns an array of tokens this test wants to listen for.
35 35
      *
36
-     * @return array
36
+     * @return integer[]
37 37
      */
38 38
     public function register()
39 39
     {
Please login to merge, or discard this patch.
Standards/MySource/Tests/Channels/DisallowSelfActionsUnitTest.inc 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -35,6 +35,9 @@
 block discarded – undo
35 35
 
36 36
 abstract class AbstractEditingScreenModeWidgetActions extends AbstractEditingModeWidgetActions {
37 37
 
38
+    /**
39
+     * @param string $systemName
40
+     */
38 41
     public static function getScreens($systemName)
39 42
     {
40 43
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/PEAR/Sniffs/Commenting/ClassCommentSniff.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     /**
33 33
      * Returns an array of tokens this test wants to listen for.
34 34
      *
35
-     * @return array
35
+     * @return integer[]
36 36
      */
37 37
     public function register()
38 38
     {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         return array(
40 40
                 T_CLASS,
41 41
                 T_INTERFACE,
42
-               );
42
+                );
43 43
 
44 44
     }//end register()
45 45
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/PEAR/Sniffs/Commenting/FunctionCommentSniff.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     /**
33 33
      * Returns an array of tokens this test wants to listen for.
34 34
      *
35
-     * @return array
35
+     * @return integer[]
36 36
      */
37 37
     public function register()
38 38
     {
Please login to merge, or discard this patch.
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -272,12 +272,12 @@  discard block
 block discarded – undo
272 272
             }//end if
273 273
 
274 274
             $params[] = array(
275
-                         'tag'        => $tag,
276
-                         'type'       => $type,
277
-                         'var'        => $var,
278
-                         'comment'    => $comment,
279
-                         'type_space' => $typeSpace,
280
-                         'var_space'  => $varSpace,
275
+                            'tag'        => $tag,
276
+                            'type'       => $type,
277
+                            'var'        => $var,
278
+                            'comment'    => $comment,
279
+                            'type_space' => $typeSpace,
280
+                            'var_space'  => $varSpace,
281 281
                         );
282 282
         }//end foreach
283 283
 
@@ -304,9 +304,9 @@  discard block
 block discarded – undo
304 304
             if ($param['type_space'] !== $spaces) {
305 305
                 $error = 'Expected %s spaces after parameter type; %s found';
306 306
                 $data  = array(
307
-                          $spaces,
308
-                          $param['type_space'],
309
-                         );
307
+                            $spaces,
308
+                            $param['type_space'],
309
+                            );
310 310
 
311 311
                 $fix = $phpcsFile->addFixableError($error, $param['tag'], 'SpacingAfterParamType', $data);
312 312
                 if ($fix === true) {
@@ -325,8 +325,8 @@  discard block
 block discarded – undo
325 325
                 if ($realName !== $param['var']) {
326 326
                     $code = 'ParamNameNoMatch';
327 327
                     $data = array(
328
-                             $param['var'],
329
-                             $realName,
328
+                                $param['var'],
329
+                                $realName,
330 330
                             );
331 331
 
332 332
                     $error = 'Doc comment for parameter %s does not match ';
@@ -354,9 +354,9 @@  discard block
 block discarded – undo
354 354
             if ($param['var_space'] !== $spaces) {
355 355
                 $error = 'Expected %s spaces after parameter name; %s found';
356 356
                 $data  = array(
357
-                          $spaces,
358
-                          $param['var_space'],
359
-                         );
357
+                            $spaces,
358
+                            $param['var_space'],
359
+                            );
360 360
 
361 361
                 $fix = $phpcsFile->addFixableError($error, $param['tag'], 'SpacingAfterParamName', $data);
362 362
                 if ($fix === true) {
Please login to merge, or discard this patch.
Standards/PEAR/Sniffs/ControlStructures/MultiLineConditionSniff.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
     /**
50 50
      * Returns an array of tokens this test wants to listen for.
51 51
      *
52
-     * @return array
52
+     * @return integer[]
53 53
      */
54 54
     public function register()
55 55
     {
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@  discard block
 block discarded – undo
34 34
      * @var array
35 35
      */
36 36
     public $supportedTokenizers = array(
37
-                                   'PHP',
38
-                                   'JS',
39
-                                  );
37
+                                    'PHP',
38
+                                    'JS',
39
+                                    );
40 40
 
41 41
     /**
42 42
      * The number of spaces code should be indented.
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         return array(
57 57
                 T_IF,
58 58
                 T_ELSEIF,
59
-               );
59
+                );
60 60
 
61 61
     }//end register()
62 62
 
@@ -166,9 +166,9 @@  discard block
 block discarded – undo
166 166
                 if ($expectedIndent !== $foundIndent) {
167 167
                     $error = 'Multi-line IF statement not indented correctly; expected %s spaces but found %s';
168 168
                     $data  = array(
169
-                              $expectedIndent,
170
-                              $foundIndent,
171
-                             );
169
+                                $expectedIndent,
170
+                                $foundIndent,
171
+                                );
172 172
 
173 173
                     $fix = $phpcsFile->addFixableError($error, $i, 'Alignment', $data);
174 174
                     if ($fix === true) {
Please login to merge, or discard this patch.
CodeSniffer/Standards/PEAR/Sniffs/Formatting/MultiLineAssignmentSniff.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 an array of tokens this test wants to listen for.
41 41
      *
42
-     * @return array
42
+     * @return string[]
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
@@ -107,9 +107,9 @@
 block discarded – undo
107 107
         if ($foundIndent !== $expectedIndent) {
108 108
             $error = 'Multi-line assignment not indented correctly; expected %s spaces but found %s';
109 109
             $data  = array(
110
-                      $expectedIndent,
111
-                      $foundIndent,
112
-                     );
110
+                        $expectedIndent,
111
+                        $foundIndent,
112
+                        );
113 113
             $phpcsFile->addError($error, $stackPtr, 'Indent', $data);
114 114
         }
115 115
 
Please login to merge, or discard this patch.