Completed
Branch master (d87ed9)
by Tomáš
07:16
created
CodeSniffer/Standards/Squiz/Sniffs/PHP/CommentedOutCodeSniff.php 1 patch
Indentation   +4 added lines, -4 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
-                                   'CSS',
41
-                                  );
39
+                                    'PHP',
40
+                                    'CSS',
41
+                                    );
42 42
 
43 43
     /**
44 44
      * If a comment is more than $maxPercentage% code, a warning will be shown.
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
                         T_ENCAPSED_AND_WHITESPACE => true,
159 159
                         T_NONE                    => true,
160 160
                         T_COMMENT                 => true,
161
-                       );
161
+                        );
162 162
 
163 163
         $numTokens = count($stringTokens);
164 164
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/Squiz/Sniffs/PHP/HeredocSniff.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         return array(
42 42
                 T_START_HEREDOC,
43 43
                 T_START_NOWDOC,
44
-               );
44
+                );
45 45
 
46 46
     }//end register()
47 47
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/Squiz/Sniffs/PHP/LowercasePHPFunctionsSniff.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -124,9 +124,9 @@
 block discarded – undo
124 124
         if ($content !== strtolower($content)) {
125 125
             $error = 'Calls to inbuilt PHP functions must be lowercase; expected "%s" but found "%s"';
126 126
             $data  = array(
127
-                      strtolower($content),
128
-                      $content,
129
-                     );
127
+                        strtolower($content),
128
+                        $content,
129
+                        );
130 130
 
131 131
             $fix = $phpcsFile->addFixableError($error, $stackPtr, 'CallUppercase', $data);
132 132
             if ($fix === true) {
Please login to merge, or discard this patch.
CodeSniffer/Standards/Squiz/Sniffs/Objects/ObjectInstantiationSniff.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -62,13 +62,13 @@
 block discarded – undo
62 62
         $prev = $phpcsFile->findPrevious($allowedTokens, ($stackPtr - 1), null, true);
63 63
 
64 64
         $allowedTokens = array(
65
-                          T_EQUAL        => true,
66
-                          T_DOUBLE_ARROW => true,
67
-                          T_THROW        => true,
68
-                          T_RETURN       => true,
69
-                          T_INLINE_THEN  => true,
70
-                          T_INLINE_ELSE  => true,
71
-                         );
65
+                            T_EQUAL        => true,
66
+                            T_DOUBLE_ARROW => true,
67
+                            T_THROW        => true,
68
+                            T_RETURN       => true,
69
+                            T_INLINE_THEN  => true,
70
+                            T_INLINE_ELSE  => true,
71
+                            );
72 72
 
73 73
         if (isset($allowedTokens[$tokens[$prev]['code']]) === false) {
74 74
             $error = 'New objects must be assigned to a variable';
Please login to merge, or discard this patch.
CodeSniffer/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
                 32  => 2,
52 52
                 100 => 1,
53 53
                 111 => 1,
54
-               );
54
+                );
55 55
 
56 56
     }//end getErrorList()
57 57
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/Squiz/Tests/Classes/DuplicatePropertyUnitTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
                 4  => 1,
45 45
                 8  => 1,
46 46
                 28 => 1,
47
-               );
47
+                );
48 48
 
49 49
     }//end getErrorList()
50 50
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/Squiz/Tests/Classes/ValidClassNameUnitTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
                 20 => 1,
51 51
                 30 => 1,
52 52
                 32 => 1,
53
-               );
53
+                );
54 54
 
55 55
     }//end getErrorList()
56 56
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
                 105 => 1,
77 77
                 107 => 1,
78 78
                 110 => 1,
79
-               );
79
+                );
80 80
 
81 81
     }//end getErrorList()
82 82
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.inc 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 
14 14
     public function SelfMemberReferenceUnitTestExample()
15 15
     {
16
-        $testResults =& $this->testResults;
16
+        $testResults = & $this->testResults;
17 17
 
18 18
 
19 19
         // Correct call to self.
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
                         MyClass::test($value);
58 58
                     };
59 59
 
60
-        $array = array(1,2,3);
60
+        $array = array(1, 2, 3);
61 61
         array_walk($array, $callback);
62 62
     }
63 63
 }
Please login to merge, or discard this patch.