Completed
Push — master ( fd88a6...8479c6 )
by Naveen
15:14 queued 06:42
created
vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node/File.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -673,7 +673,7 @@
 block discarded – undo
673 673
 
674 674
         return sprintf(
675 675
             '%01.2F',
676
-            pow($ccn, 2) * pow(1 - $coverage/100, 3) + $ccn
676
+            pow($ccn, 2) * pow(1 - $coverage / 100, 3) + $ccn
677 677
         );
678 678
     }
679 679
 }
Please login to merge, or discard this patch.
vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Text.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
                 $report->getNumTestedMethods(),
69 69
                 $report->getNumMethods()
70 70
             );
71
-            $colors['lines']   = $this->getCoverageColor(
71
+            $colors['lines'] = $this->getCoverageColor(
72 72
                 $report->getNumExecutedLines(),
73 73
                 $report->getNumExecutableLines()
74 74
             );
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                 continue;
143 143
             }
144 144
 
145
-            $classes  = $item->getClassesAndTraits();
145
+            $classes = $item->getClassesAndTraits();
146 146
 
147 147
             foreach ($classes as $className => $class) {
148 148
                 $classStatements        = 0;
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 
200 200
                 $output .= PHP_EOL . $fullQualifiedPath . PHP_EOL
201 201
                     . '  ' . $methodColor . 'Methods: ' . $this->printCoverageCounts($classInfo['methodsCovered'], $classInfo['methodCount'], 2) . $resetColor . ' '
202
-                    . '  ' . $linesColor  . 'Lines: ' . $this->printCoverageCounts($classInfo['statementsCovered'], $classInfo['statementCount'], 3) . $resetColor
202
+                    . '  ' . $linesColor . 'Lines: ' . $this->printCoverageCounts($classInfo['statementsCovered'], $classInfo['statementCount'], 3) . $resetColor
203 203
                 ;
204 204
             }
205 205
         }
Please login to merge, or discard this patch.
vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Tests.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@
 block discarded – undo
16 16
     private $contextNode;
17 17
 
18 18
     private $codeMap = array(
19
-        0 => 'PASSED',     // PHPUnit_Runner_BaseTestRunner::STATUS_PASSED
20
-        1 => 'SKIPPED',    // PHPUnit_Runner_BaseTestRunner::STATUS_SKIPPED
19
+        0 => 'PASSED', // PHPUnit_Runner_BaseTestRunner::STATUS_PASSED
20
+        1 => 'SKIPPED', // PHPUnit_Runner_BaseTestRunner::STATUS_SKIPPED
21 21
         2 => 'INCOMPLETE', // PHPUnit_Runner_BaseTestRunner::STATUS_INCOMPLETE
22
-        3 => 'FAILURE',    // PHPUnit_Runner_BaseTestRunner::STATUS_FAILURE
23
-        4 => 'ERROR',      // PHPUnit_Runner_BaseTestRunner::STATUS_ERROR
22
+        3 => 'FAILURE', // PHPUnit_Runner_BaseTestRunner::STATUS_FAILURE
23
+        4 => 'ERROR', // PHPUnit_Runner_BaseTestRunner::STATUS_ERROR
24 24
         5 => 'RISKY'       // PHPUnit_Runner_BaseTestRunner::STATUS_RISKY
25 25
     );
26 26
 
Please login to merge, or discard this patch.
php-code-coverage/tests/_files/source_with_class_and_anonymous_function.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
         array_walk(
10 10
             $filter,
11
-            function (&$val, $key) {
11
+            function(&$val, $key) {
12 12
                 $val = preg_replace('|[^0-9]|', '', $val);
13 13
             }
14 14
         );
Please login to merge, or discard this patch.
vendor/phpunit/php-code-coverage/tests/_files/source_without_namespace.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
  */
12 12
 function &foo($bar)
13 13
 {
14
-    $baz = function () {};
14
+    $baz = function() {};
15 15
     $a   = true ? true : false;
16 16
     $b   = "{$a}";
17 17
     $c   = "${b}";
Please login to merge, or discard this patch.
vendor/phpunit/php-file-iterator/src/Facade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
 
102 102
         while (!$done) {
103 103
             for ($i = 0; $i < $count; $i++) {
104
-                if ($_files[$i][$j] != $_files[$i+1][$j]) {
104
+                if ($_files[$i][$j] != $_files[$i + 1][$j]) {
105 105
                     $done = TRUE;
106 106
                     break;
107 107
                 }
Please login to merge, or discard this patch.
vendor/phpunit/php-token-stream/src/Token.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
                 break;
121 121
             }
122 122
 
123
-            return (string)$tokens[$i];
123
+            return (string) $tokens[$i];
124 124
         }
125 125
     }
126 126
 
@@ -268,8 +268,8 @@  discard block
 block discarded – undo
268 268
     {
269 269
         $tokens = $this->tokenStream->tokens();
270 270
 
271
-        if ($tokens[$this->id+2] instanceof PHP_Token_CONSTANT_ENCAPSED_STRING) {
272
-            $this->name = trim($tokens[$this->id+2], "'\"");
271
+        if ($tokens[$this->id + 2] instanceof PHP_Token_CONSTANT_ENCAPSED_STRING) {
272
+            $this->name = trim($tokens[$this->id + 2], "'\"");
273 273
             $this->type = strtolower(
274 274
                 str_replace('PHP_Token_', '', get_class($tokens[$this->id]))
275 275
             );
@@ -316,15 +316,15 @@  discard block
 block discarded – undo
316 316
         // Search for first token inside brackets
317 317
         $i = $this->id + 2;
318 318
 
319
-        while (!$tokens[$i-1] instanceof PHP_Token_OPEN_BRACKET) {
319
+        while (!$tokens[$i - 1] instanceof PHP_Token_OPEN_BRACKET) {
320 320
             $i++;
321 321
         }
322 322
 
323 323
         while (!$tokens[$i] instanceof PHP_Token_CLOSE_BRACKET) {
324 324
             if ($tokens[$i] instanceof PHP_Token_STRING) {
325
-                $typeDeclaration = (string)$tokens[$i];
325
+                $typeDeclaration = (string) $tokens[$i];
326 326
             } elseif ($tokens[$i] instanceof PHP_Token_VARIABLE) {
327
-                $this->arguments[(string)$tokens[$i]] = $typeDeclaration;
327
+                $this->arguments[(string) $tokens[$i]] = $typeDeclaration;
328 328
                 $typeDeclaration                      = null;
329 329
             }
330 330
 
@@ -347,11 +347,11 @@  discard block
 block discarded – undo
347 347
 
348 348
         for ($i = $this->id + 1; $i < count($tokens); $i++) {
349 349
             if ($tokens[$i] instanceof PHP_Token_STRING) {
350
-                $this->name = (string)$tokens[$i];
350
+                $this->name = (string) $tokens[$i];
351 351
                 break;
352 352
             } elseif ($tokens[$i] instanceof PHP_Token_AMPERSAND &&
353
-                     $tokens[$i+1] instanceof PHP_Token_STRING) {
354
-                $this->name = (string)$tokens[$i+1];
353
+                     $tokens[$i + 1] instanceof PHP_Token_STRING) {
354
+                $this->name = (string) $tokens[$i + 1];
355 355
                 break;
356 356
             } elseif ($tokens[$i] instanceof PHP_Token_OPEN_BRACKET) {
357 357
                 $this->name = 'anonymous function';
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
      */
454 454
     public function getName()
455 455
     {
456
-        return (string)$this->tokenStream[$this->id + 2];
456
+        return (string) $this->tokenStream[$this->id + 2];
457 457
     }
458 458
 
459 459
     /**
@@ -540,11 +540,11 @@  discard block
 block discarded – undo
540 540
 
541 541
         $i         = $this->id + 6;
542 542
         $tokens    = $this->tokenStream->tokens();
543
-        $className = (string)$tokens[$i];
543
+        $className = (string) $tokens[$i];
544 544
 
545
-        while (isset($tokens[$i+1]) &&
546
-               !$tokens[$i+1] instanceof PHP_Token_WHITESPACE) {
547
-            $className .= (string)$tokens[++$i];
545
+        while (isset($tokens[$i + 1]) &&
546
+               !$tokens[$i + 1] instanceof PHP_Token_WHITESPACE) {
547
+            $className .= (string) $tokens[++$i];
548 548
         }
549 549
 
550 550
         return $className;
@@ -582,11 +582,11 @@  discard block
 block discarded – undo
582 582
 
583 583
         $tokens = $this->tokenStream->tokens();
584 584
 
585
-        while (!$tokens[$i+1] instanceof PHP_Token_OPEN_CURLY) {
585
+        while (!$tokens[$i + 1] instanceof PHP_Token_OPEN_CURLY) {
586 586
             $i++;
587 587
 
588 588
             if ($tokens[$i] instanceof PHP_Token_STRING) {
589
-                $this->interfaces[] = (string)$tokens[$i];
589
+                $this->interfaces[] = (string) $tokens[$i];
590 590
             }
591 591
         }
592 592
 
@@ -780,12 +780,12 @@  discard block
 block discarded – undo
780 780
     public function getName()
781 781
     {
782 782
         $tokens    = $this->tokenStream->tokens();
783
-        $namespace = (string)$tokens[$this->id+2];
783
+        $namespace = (string) $tokens[$this->id + 2];
784 784
 
785
-        for ($i = $this->id + 3;; $i += 2) {
785
+        for ($i = $this->id + 3; ; $i += 2) {
786 786
             if (isset($tokens[$i]) &&
787 787
                 $tokens[$i] instanceof PHP_Token_NS_SEPARATOR) {
788
-                $namespace .= '\\' . $tokens[$i+1];
788
+                $namespace .= '\\' . $tokens[$i + 1];
789 789
             } else {
790 790
                 break;
791 791
             }
Please login to merge, or discard this patch.
vendor/phpunit/php-token-stream/src/Token/Stream.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -398,8 +398,8 @@  discard block
 block discarded – undo
398 398
                         $class[]        = $token->getName();
399 399
                         $classEndLine[] = $token->getEndLine();
400 400
 
401
-                        if ($class[count($class)-1] != 'anonymous class') {
402
-                            $this->classes[$class[count($class)-1]] = $tmp;
401
+                        if ($class[count($class) - 1] != 'anonymous class') {
402
+                            $this->classes[$class[count($class) - 1]] = $tmp;
403 403
                         }
404 404
                     } else {
405 405
                         $trait                = $token->getName();
@@ -431,11 +431,11 @@  discard block
 block discarded – undo
431 431
                             $tmp['startLine'],
432 432
                             $tmp['endLine']
433 433
                         );
434
-                    } elseif (!empty($class) && $class[count($class)-1] != 'anonymous class') {
435
-                        $this->classes[$class[count($class)-1]]['methods'][$name] = $tmp;
434
+                    } elseif (!empty($class) && $class[count($class) - 1] != 'anonymous class') {
435
+                        $this->classes[$class[count($class) - 1]]['methods'][$name] = $tmp;
436 436
 
437 437
                         $this->addFunctionToMap(
438
-                            $class[count($class)-1] . '::' . $name,
438
+                            $class[count($class) - 1] . '::' . $name,
439 439
                             $tmp['startLine'],
440 440
                             $tmp['endLine']
441 441
                         );
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
 
455 455
                 case 'PHP_Token_CLOSE_CURLY':
456 456
                     if (!empty($classEndLine) &&
457
-                        $classEndLine[count($classEndLine)-1] == $token->getLine()) {
457
+                        $classEndLine[count($classEndLine) - 1] == $token->getLine()) {
458 458
                         array_pop($classEndLine);
459 459
                         array_pop($class);
460 460
                     } elseif ($traitEndLine !== false &&
Please login to merge, or discard this patch.
vendor/phpunit/php-token-stream/tests/Token/InterfaceTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -116,8 +116,8 @@  discard block
 block discarded – undo
116 116
      */
117 117
     public function testGetPackageNamespace() {
118 118
         $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classInNamespace.php');
119
-        foreach($tokenStream as $token) {
120
-            if($token instanceOf PHP_Token_INTERFACE) {
119
+        foreach ($tokenStream as $token) {
120
+            if ($token instanceOf PHP_Token_INTERFACE) {
121 121
                 $package = $token->getPackage();
122 122
                 $this->assertSame('Foo\\Bar', $package['namespace']);
123 123
             }
@@ -139,8 +139,8 @@  discard block
 block discarded – undo
139 139
     public function testGetPackageNamespaceForFileWithMultipleNamespaces($filepath) {
140 140
         $tokenStream = new PHP_Token_Stream($filepath);
141 141
         $firstClassFound = false;
142
-        foreach($tokenStream as $token) {
143
-            if($firstClassFound === false && $token instanceOf PHP_Token_INTERFACE) {
142
+        foreach ($tokenStream as $token) {
143
+            if ($firstClassFound === false && $token instanceOf PHP_Token_INTERFACE) {
144 144
                 $package = $token->getPackage();
145 145
                 $this->assertSame('TestClassInBar', $token->getName());
146 146
                 $this->assertSame('Foo\\Bar', $package['namespace']);
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
                 continue;
149 149
             }
150 150
             // Secound class
151
-            if($token instanceOf PHP_Token_INTERFACE) {
151
+            if ($token instanceOf PHP_Token_INTERFACE) {
152 152
                 $package = $token->getPackage();
153 153
                 $this->assertSame('TestClassInBaz', $token->getName());
154 154
                 $this->assertSame('Foo\\Baz', $package['namespace']);
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     }
160 160
 
161 161
     public function testGetPackageNamespaceIsEmptyForInterfacesThatAreNotWithinNamespaces() {
162
-        foreach($this->interfaces as $token) {
162
+        foreach ($this->interfaces as $token) {
163 163
             $package = $token->getPackage();
164 164
             $this->assertSame("", $package['namespace']);
165 165
         }
@@ -171,15 +171,15 @@  discard block
 block discarded – undo
171 171
     public function testGetPackageNamespaceWhenExtentingFromNamespaceClass() {
172 172
         $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classExtendsNamespacedClass.php');
173 173
         $firstClassFound = false;
174
-        foreach($tokenStream as $token) {
175
-            if($firstClassFound === false && $token instanceOf PHP_Token_INTERFACE) {
174
+        foreach ($tokenStream as $token) {
175
+            if ($firstClassFound === false && $token instanceOf PHP_Token_INTERFACE) {
176 176
                 $package = $token->getPackage();
177 177
                 $this->assertSame('Baz', $token->getName());
178 178
                 $this->assertSame('Foo\\Bar', $package['namespace']);
179 179
                 $firstClassFound = true;
180 180
                 continue;
181 181
             }
182
-            if($token instanceOf PHP_Token_INTERFACE) {
182
+            if ($token instanceOf PHP_Token_INTERFACE) {
183 183
                 $package = $token->getPackage();
184 184
                 $this->assertSame('Extender', $token->getName());
185 185
                 $this->assertSame('Other\\Space', $package['namespace']);
Please login to merge, or discard this patch.