Completed
Pull Request — master (#1)
by Tomáš
06:29
created
CodeSniffer/Standards/MySource/Sniffs/Channels/UnusedSystemSniff.php 1 patch
Switch Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -111,33 +111,33 @@
 block discarded – undo
111 111
             }
112 112
 
113 113
             switch ($tokens[$i]['code']) {
114
-            case T_DOUBLE_COLON:
115
-                $usedName = strtolower($tokens[($i - 1)]['content']);
116
-                if ($usedName === $systemName) {
117
-                    // The included system was used, so it is fine.
118
-                    return;
119
-                }
120
-                break;
121
-            case T_EXTENDS:
122
-                $classNameToken = $phpcsFile->findNext(T_STRING, ($i + 1));
123
-                $className      = strtolower($tokens[$classNameToken]['content']);
124
-                if ($className === $systemName) {
125
-                    // The included system was used, so it is fine.
126
-                    return;
127
-                }
128
-                break;
129
-            case T_IMPLEMENTS:
130
-                $endImplements = $phpcsFile->findNext(array(T_EXTENDS, T_OPEN_CURLY_BRACKET), ($i + 1));
131
-                for ($x = ($i + 1); $x < $endImplements; $x++) {
132
-                    if ($tokens[$x]['code'] === T_STRING) {
133
-                        $className = strtolower($tokens[$x]['content']);
134
-                        if ($className === $systemName) {
135
-                            // The included system was used, so it is fine.
136
-                            return;
114
+                case T_DOUBLE_COLON:
115
+                    $usedName = strtolower($tokens[($i - 1)]['content']);
116
+                    if ($usedName === $systemName) {
117
+                        // The included system was used, so it is fine.
118
+                        return;
119
+                    }
120
+                    break;
121
+                case T_EXTENDS:
122
+                    $classNameToken = $phpcsFile->findNext(T_STRING, ($i + 1));
123
+                    $className      = strtolower($tokens[$classNameToken]['content']);
124
+                    if ($className === $systemName) {
125
+                        // The included system was used, so it is fine.
126
+                        return;
127
+                    }
128
+                    break;
129
+                case T_IMPLEMENTS:
130
+                    $endImplements = $phpcsFile->findNext(array(T_EXTENDS, T_OPEN_CURLY_BRACKET), ($i + 1));
131
+                    for ($x = ($i + 1); $x < $endImplements; $x++) {
132
+                        if ($tokens[$x]['code'] === T_STRING) {
133
+                            $className = strtolower($tokens[$x]['content']);
134
+                            if ($className === $systemName) {
135
+                                // The included system was used, so it is fine.
136
+                                return;
137
+                            }
137 138
                         }
138 139
                     }
139
-                }
140
-                break;
140
+                    break;
141 141
             }//end switch
142 142
         }//end for
143 143
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/MySource/Sniffs/CSS/BrowserSpecificStylesSniff.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -45,12 +45,12 @@
 block discarded – undo
45 45
      * @var array
46 46
      */
47 47
     protected $specificStylesheets = array(
48
-                                      'moz'    => true,
49
-                                      'ie'     => true,
50
-                                      'ie7'    => true,
51
-                                      'ie8'    => true,
52
-                                      'webkit' => true,
53
-                                     );
48
+                                        'moz'    => true,
49
+                                        'ie'     => true,
50
+                                        'ie7'    => true,
51
+                                        'ie8'    => true,
52
+                                        'webkit' => true,
53
+                                        );
54 54
 
55 55
 
56 56
     /**
Please login to merge, or discard this patch.
CodeSniffer/Standards/MySource/Tests/Strings/JoinStringsUnitTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      *
41 41
      * @return array<int, int>
42 42
      */
43
-    public function getErrorList($testFile='JoinStringsUnitTest.js')
43
+    public function getErrorList($testFile = 'JoinStringsUnitTest.js')
44 44
     {
45 45
         if ($testFile !== 'JoinStringsUnitTest.js') {
46 46
             return array();
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
                 48 => 1,
58 58
                 70 => 1,
59 59
                 71 => 1,
60
-               );
60
+                );
61 61
 
62 62
     }//end getErrorList()
63 63
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/MySource/Tests/Channels/UnusedSystemUnitTest.inc 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,9 +57,9 @@
 block discarded – undo
57 57
 function myFunction()
58 58
 {
59 59
     if (Channels::systemExists('Log5') === TRUE) {
60
-       Channels::includeSystem('Log5');
60
+        Channels::includeSystem('Log5');
61 61
     } else {
62
-       return;
62
+        return;
63 63
     }
64 64
 
65 65
     Log5::addProjectLog('metadata.field.update', $msg);
Please login to merge, or discard this patch.
CodeSniffer/Standards/MySource/Tests/Channels/IncludeSystemUnitTest.inc 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,9 +92,9 @@
 block discarded – undo
92 92
 }
93 93
 
94 94
 if (Channels::systemExists('Log') === TRUE) {
95
-   Channels::includeSystem('Log');
95
+    Channels::includeSystem('Log');
96 96
 } else {
97
-   return;
97
+    return;
98 98
 }
99 99
 
100 100
 Log::addProjectLog('metadata.field.update', $msg);
Please login to merge, or discard this patch.
CodeSniffer/Standards/MySource/Tests/Debug/FirebugConsoleUnitTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      *
41 41
      * @return array<int, int>
42 42
      */
43
-    public function getErrorList($testFile='FirebugConsoleUnitTest.js')
43
+    public function getErrorList($testFile = 'FirebugConsoleUnitTest.js')
44 44
     {
45 45
         if ($testFile !== 'FirebugConsoleUnitTest.js') {
46 46
             return array();
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
                 48 => 1,
58 58
                 70 => 1,
59 59
                 71 => 1,
60
-               );
60
+                );
61 61
 
62 62
     }//end getErrorList()
63 63
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/MySource/Tests/PHP/AjaxNullComparisonUnitTest.inc 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -25,13 +25,13 @@  discard block
 block discarded – undo
25 25
 public static function addIssue(
26 26
     $title,
27 27
     $description,
28
-    $reporter=NULL,
29
-    $projectid=NULL,
30
-    array $tags=array(),
31
-    $status=NULL,
32
-    $assignedTo=NULL,
33
-    $reportedDate=NULL,
34
-    $reportedMilestone=NULL
28
+    $reporter = NULL,
29
+    $projectid = NULL,
30
+    array $tags = array(),
31
+    $status = NULL,
32
+    $assignedTo = NULL,
33
+    $reportedDate = NULL,
34
+    $reportedMilestone = NULL
35 35
 ) {
36 36
     // Get current projectid if not specified.
37 37
     if ($projectid === NULL) {
@@ -160,13 +160,13 @@  discard block
 block discarded – undo
160 160
 public static function addIssue(
161 161
     $title,
162 162
     $description,
163
-    $reporter=NULL,
164
-    $projectid=NULL,
165
-    array $tags=array(),
166
-    $status=NULL,
167
-    $assignedTo=NULL,
168
-    $reportedDate=NULL,
169
-    $reportedMilestone=NULL
163
+    $reporter = NULL,
164
+    $projectid = NULL,
165
+    array $tags = array(),
166
+    $status = NULL,
167
+    $assignedTo = NULL,
168
+    $reportedDate = NULL,
169
+    $reportedMilestone = NULL
170 170
 ) {
171 171
     // Get current projectid if not specified.
172 172
     if ($projectid === NULL) {
Please login to merge, or discard this patch.
CodeSniffer/Standards/MySource/Tests/Objects/AssignThisUnitTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      *
41 41
      * @return array<int, int>
42 42
      */
43
-    public function getErrorList($testFile='AssignThisUnitTest.js')
43
+    public function getErrorList($testFile = 'AssignThisUnitTest.js')
44 44
     {
45 45
         if ($testFile !== 'AssignThisUnitTest.js') {
46 46
             return array();
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
                 48 => 1,
58 58
                 70 => 1,
59 59
                 71 => 1,
60
-               );
60
+                );
61 61
 
62 62
     }//end getErrorList()
63 63
 
Please login to merge, or discard this patch.
Standards/MySource/Tests/Objects/CreateWidgetTypeCallbackUnitTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      *
41 41
      * @return array<int, int>
42 42
      */
43
-    public function getErrorList($testFile='CreateWidgetTypeCallbackUnitTest.js')
43
+    public function getErrorList($testFile = 'CreateWidgetTypeCallbackUnitTest.js')
44 44
     {
45 45
         return array(
46 46
                 18  => 1,
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
                 48 => 1,
58 58
                 70 => 1,
59 59
                 71 => 1,
60
-               );
60
+                );
61 61
 
62 62
     }//end getErrorList()
63 63
 
Please login to merge, or discard this patch.