Completed
Branch master (d87ed9)
by Tomáš
06:31
created
CodeSniffer/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.inc 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      * @return
15 15
      * @throws
16 16
      */
17
-    private function _functionCall($stackPtr, $depth=1, $index)
17
+    private function _functionCall($stackPtr, $depth = 1, $index)
18 18
     {
19 19
         return $stackPtr;
20 20
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/Generic/Sniffs/Classes/DuplicateClassNameSniff.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -61,11 +61,11 @@  discard block
 block discarded – undo
61 61
 
62 62
         $namespace  = '';
63 63
         $findTokens = array(
64
-                       T_CLASS,
65
-                       T_INTERFACE,
66
-                       T_NAMESPACE,
67
-                       T_CLOSE_TAG,
68
-                      );
64
+                        T_CLASS,
65
+                        T_INTERFACE,
66
+                        T_NAMESPACE,
67
+                        T_CLOSE_TAG,
68
+                        );
69 69
 
70 70
         $stackPtr = $phpcsFile->findNext($findTokens, ($stackPtr + 1));
71 71
         while ($stackPtr !== false) {
@@ -79,9 +79,9 @@  discard block
 block discarded – undo
79 79
             if ($tokens[$stackPtr]['code'] === T_NAMESPACE) {
80 80
                 $nsEnd = $phpcsFile->findNext(
81 81
                     array(
82
-                     T_NS_SEPARATOR,
83
-                     T_STRING,
84
-                     T_WHITESPACE,
82
+                        T_NS_SEPARATOR,
83
+                        T_STRING,
84
+                        T_WHITESPACE,
85 85
                     ),
86 86
                     ($stackPtr + 1),
87 87
                     null,
@@ -104,16 +104,16 @@  discard block
 block discarded – undo
104 104
                     $line  = $this->foundClasses[$compareName]['line'];
105 105
                     $error = 'Duplicate %s name "%s" found; first defined in %s on line %s';
106 106
                     $data  = array(
107
-                              $type,
108
-                              $name,
109
-                              $file,
110
-                              $line,
111
-                             );
107
+                                $type,
108
+                                $name,
109
+                                $file,
110
+                                $line,
111
+                                );
112 112
                     $phpcsFile->addWarning($error, $stackPtr, 'Found', $data);
113 113
                 } else {
114 114
                     $this->foundClasses[$compareName] = array(
115
-                                                         'file' => $phpcsFile->getFilename(),
116
-                                                         'line' => $tokens[$stackPtr]['line'],
115
+                                                            'file' => $phpcsFile->getFilename(),
116
+                                                            'line' => $tokens[$stackPtr]['line'],
117 117
                                                         );
118 118
                 }
119 119
             }//end if
Please login to merge, or discard this patch.
Standards/Generic/Sniffs/Strings/UnnecessaryStringConcatSniff.php 1 patch
Indentation   +4 added lines, -4 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
      * If true, an error will be thrown; otherwise a warning.
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         return array(
68 68
                 T_STRING_CONCAT,
69 69
                 T_PLUS,
70
-               );
70
+                );
71 71
 
72 72
     }//end register()
73 73
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/Generic/Sniffs/Files/LowercasedFilenameSniff.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,9 +59,9 @@
 block discarded – undo
59 59
         $lowercaseFilename = strtolower($filename);
60 60
         if ($filename !== $lowercaseFilename) {
61 61
             $data  = array(
62
-                      $filename,
63
-                      $lowercaseFilename,
64
-                     );
62
+                        $filename,
63
+                        $lowercaseFilename,
64
+                        );
65 65
             $error = 'Filename "%s" doesn\'t match the expected filename "%s"';
66 66
             $phpcsFile->addError($error, $stackPtr, 'NotFound', $data);
67 67
             $phpcsFile->recordMetric($stackPtr, 'Lowercase filename', 'no');
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         $filename          = basename($filename);
59 59
         $lowercaseFilename = strtolower($filename);
60 60
         if ($filename !== $lowercaseFilename) {
61
-            $data  = array(
61
+            $data = array(
62 62
                       $filename,
63 63
                       $lowercaseFilename,
64 64
                      );
Please login to merge, or discard this patch.
CodeSniffer/Standards/Generic/Sniffs/Files/LineEndingsSniff.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,10 +36,10 @@  discard block
 block discarded – undo
36 36
      * @var array
37 37
      */
38 38
     public $supportedTokenizers = array(
39
-                                   'PHP',
40
-                                   'JS',
41
-                                   'CSS',
42
-                                  );
39
+                                    'PHP',
40
+                                    'JS',
41
+                                    'CSS',
42
+                                    );
43 43
 
44 44
     /**
45 45
      * The valid EOL character.
@@ -100,8 +100,8 @@  discard block
 block discarded – undo
100 100
         $expected = str_replace("\n", '\n', $expected);
101 101
         $expected = str_replace("\r", '\r', $expected);
102 102
         $data     = array(
103
-                     $expected,
104
-                     $found,
103
+                        $expected,
104
+                        $found,
105 105
                     );
106 106
 
107 107
         // Errors are always reported on line 1, no matter where the first PHP tag is.
Please login to merge, or discard this patch.
Switch Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -110,18 +110,18 @@
 block discarded – undo
110 110
         if ($fix === true) {
111 111
             $tokens = $phpcsFile->getTokens();
112 112
             switch ($this->eolChar) {
113
-            case '\n':
114
-                $eolChar = "\n";
115
-                break;
116
-            case '\r':
117
-                $eolChar = "\r";
118
-                break;
119
-            case '\r\n':
120
-                $eolChar = "\r\n";
121
-                break;
122
-            default:
123
-                $eolChar = $this->eolChar;
124
-                break;
113
+                case '\n':
114
+                    $eolChar = "\n";
115
+                    break;
116
+                case '\r':
117
+                    $eolChar = "\r";
118
+                    break;
119
+                case '\r\n':
120
+                    $eolChar = "\r\n";
121
+                    break;
122
+                default:
123
+                    $eolChar = $this->eolChar;
124
+                    break;
125 125
             }
126 126
 
127 127
             for ($i = 0; $i < $phpcsFile->numTokens; $i++) {
Please login to merge, or discard this patch.
CodeSniffer/Standards/Generic/Sniffs/Files/ByteOrderMarkSniff.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,10 +38,10 @@
 block discarded – undo
38 38
      * @var array
39 39
      */
40 40
     public $bomDefinitions = array(
41
-                              'UTF-8'       => 'efbbbf',
42
-                              'UTF-16 (BE)' => 'feff',
43
-                              'UTF-16 (LE)' => 'fffe',
44
-                             );
41
+                                'UTF-8'       => 'efbbbf',
42
+                                'UTF-16 (BE)' => 'feff',
43
+                                'UTF-16 (LE)' => 'fffe',
44
+                                );
45 45
 
46 46
 
47 47
     /**
Please login to merge, or discard this patch.
CodeSniffer/Standards/Generic/Sniffs/Files/EndFileNewlineSniff.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,10 +34,10 @@
 block discarded – undo
34 34
      * @var array
35 35
      */
36 36
     public $supportedTokenizers = array(
37
-                                   'PHP',
38
-                                   'JS',
39
-                                   'CSS',
40
-                                  );
37
+                                    'PHP',
38
+                                    'JS',
39
+                                    'CSS',
40
+                                    );
41 41
 
42 42
 
43 43
     /**
Please login to merge, or discard this patch.
CodeSniffer/Standards/Generic/Sniffs/Files/LineLengthSniff.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -131,16 +131,16 @@
 block discarded – undo
131 131
             && $lineLength > $this->absoluteLineLimit
132 132
         ) {
133 133
             $data = array(
134
-                     $this->absoluteLineLimit,
135
-                     $lineLength,
134
+                        $this->absoluteLineLimit,
135
+                        $lineLength,
136 136
                     );
137 137
 
138 138
             $error = 'Line exceeds maximum limit of %s characters; contains %s characters';
139 139
             $phpcsFile->addError($error, $stackPtr, 'MaxExceeded', $data);
140 140
         } else if ($lineLength > $this->lineLimit) {
141 141
             $data = array(
142
-                     $this->lineLimit,
143
-                     $lineLength,
142
+                        $this->lineLimit,
143
+                        $lineLength,
144 144
                     );
145 145
 
146 146
             $warning = 'Line exceeds %s characters; contains %s characters';
Please login to merge, or discard this patch.
Standards/Generic/Sniffs/Formatting/MultipleStatementAlignmentSniff.php 1 patch
Indentation   +11 added lines, -11 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
      * If true, an error will be thrown; otherwise a warning.
@@ -242,11 +242,11 @@  discard block
 block discarded – undo
242 242
             }
243 243
 
244 244
             $assignments[$assign] = array(
245
-                                     'var_end'    => $varEnd,
246
-                                     'assign_len' => $assignLen,
247
-                                     'assign_col' => $assignColumn,
248
-                                     'expected'   => $padding,
249
-                                     'found'      => $found,
245
+                                        'var_end'    => $varEnd,
246
+                                        'assign_len' => $assignLen,
247
+                                        'assign_col' => $assignColumn,
248
+                                        'expected'   => $padding,
249
+                                        'found'      => $found,
250 250
                                     );
251 251
 
252 252
             $lastLine   = $tokens[$assign]['line'];
@@ -288,9 +288,9 @@  discard block
 block discarded – undo
288 288
             }
289 289
 
290 290
             $errorData = array(
291
-                          $expectedText,
292
-                          $foundText,
293
-                         );
291
+                            $expectedText,
292
+                            $foundText,
293
+                            );
294 294
 
295 295
             if ($this->error === true) {
296 296
                 $fix = $phpcsFile->addFixableError($error, $assignment, $type, $errorData);
Please login to merge, or discard this patch.