Completed
Push — master ( 8cd077 )
by Tomáš
09:25
created
src/Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     {
45 45
         return array(
46 46
                 73 => 1,
47
-               );
47
+                );
48 48
 
49 49
     }//end getErrorList()
50 50
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         return array(
63 63
                 27 => 1,
64 64
                 46 => 1,
65
-               );
65
+                );
66 66
 
67 67
     }//end getWarningList()
68 68
 
Please login to merge, or discard this patch.
src/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.
src/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.
src/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.
src/Standards/Generic/Sniffs/WhiteSpace/DisallowTabIndentSniff.php 1 patch
Indentation   +5 added lines, -5 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
     /**
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
                         T_INLINE_HTML            => true,
75 75
                         T_DOC_COMMENT_WHITESPACE => true,
76 76
                         T_DOC_COMMENT_STRING     => true,
77
-                       );
77
+                        );
78 78
 
79 79
         for ($i = ($stackPtr + 1); $i < $phpcsFile->numTokens; $i++) {
80 80
             if (isset($checkTokens[$tokens[$i]['code']]) === false) {
Please login to merge, or discard this patch.
src/Standards/Generic/Sniffs/Commenting/FixmeSniff.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@
 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
     /**
Please login to merge, or discard this patch.
src/Standards/Generic/Sniffs/Commenting/TodoSniff.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@
 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
     /**
Please login to merge, or discard this patch.
src/Standards/Generic/Sniffs/Functions/FunctionCallArgumentSpacingSniff.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -84,10 +84,10 @@
 block discarded – undo
84 84
         $nextSeparator = $openBracket;
85 85
 
86 86
         $find = array(
87
-                 T_COMMA,
88
-                 T_VARIABLE,
89
-                 T_CLOSURE,
90
-                 T_OPEN_SHORT_ARRAY,
87
+                    T_COMMA,
88
+                    T_VARIABLE,
89
+                    T_CLOSURE,
90
+                    T_OPEN_SHORT_ARRAY,
91 91
                 );
92 92
 
93 93
         while (($nextSeparator = $phpcsFile->findNext($find, ($nextSeparator + 1), $closeBracket)) !== false) {
Please login to merge, or discard this patch.
Standards/Generic/Sniffs/Functions/OpeningFunctionBraceBsdAllmanSniff.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         return array(
57 57
                 T_FUNCTION,
58 58
                 T_CLOSURE,
59
-               );
59
+                );
60 60
 
61 61
     }//end register()
62 62
 
@@ -168,9 +168,9 @@  discard block
 block discarded – undo
168 168
 
169 169
             $error = 'Opening brace indented incorrectly; expected %s spaces, found %s';
170 170
             $data  = array(
171
-                      $expected,
172
-                      $found,
173
-                     );
171
+                        $expected,
172
+                        $found,
173
+                        );
174 174
 
175 175
             $fix = $phpcsFile->addFixableError($error, $openingBrace, 'BraceIndent', $data);
176 176
             if ($fix === true) {
Please login to merge, or discard this patch.