Test Failed
Push — master ( 4527f5...6e7815 )
by Ylva
21:41 queued 04:42
created
a/vendor/phpunit/php-code-coverage/src/Report/Crap4j.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
         $project = $document->createElement('project', \is_string($name) ? $name : '');
40 40
         $root->appendChild($project);
41
-        $root->appendChild($document->createElement('timestamp', \date('Y-m-d H:i:s', (int) $_SERVER['REQUEST_TIME'])));
41
+        $root->appendChild($document->createElement('timestamp', \date('Y-m-d H:i:s', (int)$_SERVER['REQUEST_TIME'])));
42 42
 
43 43
         $stats       = $document->createElement('stats');
44 44
         $methodsNode = $document->createElement('methods');
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         $crapMethodPercent = 0;
106 106
 
107 107
         if ($fullMethodCount > 0) {
108
-            $crapMethodPercent = $this->roundValue((100 * $fullCrapMethodCount) / $fullMethodCount);
108
+            $crapMethodPercent = $this->roundValue((100*$fullCrapMethodCount)/$fullMethodCount);
109 109
         }
110 110
 
111 111
         $stats->appendChild($document->createElement('crapMethodPercent', $crapMethodPercent));
@@ -143,8 +143,8 @@  discard block
 block discarded – undo
143 143
         $crapLoad = 0;
144 144
 
145 145
         if ($crapValue >= $this->threshold) {
146
-            $crapLoad += $cyclomaticComplexity * (1.0 - $coveragePercent / 100);
147
-            $crapLoad += $cyclomaticComplexity / $this->threshold;
146
+            $crapLoad += $cyclomaticComplexity*(1.0 - $coveragePercent/100);
147
+            $crapLoad += $cyclomaticComplexity/$this->threshold;
148 148
         }
149 149
 
150 150
         return $crapLoad;
Please login to merge, or discard this patch.
a/vendor/phpunit/php-code-coverage/src/Report/Clover.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@
 block discarded – undo
27 27
         $xmlDocument->formatOutput = true;
28 28
 
29 29
         $xmlCoverage = $xmlDocument->createElement('coverage');
30
-        $xmlCoverage->setAttribute('generated', (int) $_SERVER['REQUEST_TIME']);
30
+        $xmlCoverage->setAttribute('generated', (int)$_SERVER['REQUEST_TIME']);
31 31
         $xmlDocument->appendChild($xmlCoverage);
32 32
 
33 33
         $xmlProject = $xmlDocument->createElement('project');
34
-        $xmlProject->setAttribute('timestamp', (int) $_SERVER['REQUEST_TIME']);
34
+        $xmlProject->setAttribute('timestamp', (int)$_SERVER['REQUEST_TIME']);
35 35
 
36 36
         if (\is_string($name)) {
37 37
             $xmlProject->setAttribute('name', $name);
Please login to merge, or discard this patch.
a/vendor/phpunit/php-code-coverage/src/Report/Xml/Tests.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -14,14 +14,14 @@  discard block
 block discarded – undo
14 14
     private $contextNode;
15 15
 
16 16
     private $codeMap = [
17
-        -1 => 'UNKNOWN',    // PHPUnit_Runner_BaseTestRunner::STATUS_UNKNOWN
18
-        0  => 'PASSED',     // PHPUnit_Runner_BaseTestRunner::STATUS_PASSED
19
-        1  => 'SKIPPED',    // PHPUnit_Runner_BaseTestRunner::STATUS_SKIPPED
17
+        -1 => 'UNKNOWN', // PHPUnit_Runner_BaseTestRunner::STATUS_UNKNOWN
18
+        0  => 'PASSED', // PHPUnit_Runner_BaseTestRunner::STATUS_PASSED
19
+        1  => 'SKIPPED', // PHPUnit_Runner_BaseTestRunner::STATUS_SKIPPED
20 20
         2  => 'INCOMPLETE', // PHPUnit_Runner_BaseTestRunner::STATUS_INCOMPLETE
21
-        3  => 'FAILURE',    // PHPUnit_Runner_BaseTestRunner::STATUS_FAILURE
22
-        4  => 'ERROR',      // PHPUnit_Runner_BaseTestRunner::STATUS_ERROR
23
-        5  => 'RISKY',      // PHPUnit_Runner_BaseTestRunner::STATUS_RISKY
24
-        6  => 'WARNING',     // PHPUnit_Runner_BaseTestRunner::STATUS_WARNING
21
+        3  => 'FAILURE', // PHPUnit_Runner_BaseTestRunner::STATUS_FAILURE
22
+        4  => 'ERROR', // PHPUnit_Runner_BaseTestRunner::STATUS_ERROR
23
+        5  => 'RISKY', // PHPUnit_Runner_BaseTestRunner::STATUS_RISKY
24
+        6  => 'WARNING', // PHPUnit_Runner_BaseTestRunner::STATUS_WARNING
25 25
     ];
26 26
 
27 27
     public function __construct(\DOMElement $context)
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
         $node->setAttribute('name', $test);
42 42
         $node->setAttribute('size', $result['size']);
43
-        $node->setAttribute('result', (int) $result['status']);
44
-        $node->setAttribute('status', $this->codeMap[(int) $result['status']]);
43
+        $node->setAttribute('result', (int)$result['status']);
44
+        $node->setAttribute('status', $this->codeMap[(int)$result['status']]);
45 45
     }
46 46
 }
Please login to merge, or discard this patch.
a/vendor/phpunit/php-text-template/src/Template.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
         else {
70 70
             throw new InvalidArgumentException(
71
-              'Template file could not be loaded.'
71
+                'Template file could not be loaded.'
72 72
             );
73 73
         }
74 74
     }
@@ -120,14 +120,14 @@  discard block
 block discarded – undo
120 120
             $error = error_get_last();
121 121
 
122 122
             throw new RuntimeException(
123
-              sprintf(
123
+                sprintf(
124 124
                 'Could not write to %s: %s',
125 125
                 $target,
126 126
                 substr(
127
-                  $error['message'],
128
-                  strpos($error['message'], ':') + 2
127
+                    $error['message'],
128
+                    strpos($error['message'], ':') + 2
129
+                )
129 130
                 )
130
-              )
131 131
             );
132 132
         }
133 133
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -6 removed lines patch added patch discarded remove patch
@@ -60,13 +60,9 @@
 block discarded – undo
60 60
 
61 61
         if (file_exists($file)) {
62 62
             $this->template = file_get_contents($file);
63
-        }
64
-
65
-        else if (file_exists($distFile)) {
63
+        } else if (file_exists($distFile)) {
66 64
             $this->template = file_get_contents($distFile);
67
-        }
68
-
69
-        else {
65
+        } else {
70 66
             throw new InvalidArgumentException(
71 67
               'Template file could not be loaded.'
72 68
             );
Please login to merge, or discard this patch.
a/vendor/phpunit/phpunit/tests/_files/DataProviderDebugTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
         $obj2      = new \stdClass;
17 17
         $obj2->foo = 'bar';
18 18
 
19
-        $obj3 = (object) [1, 2, "Test\r\n", 4, 5, 6, 7, 8];
19
+        $obj3 = (object)[1, 2, "Test\r\n", 4, 5, 6, 7, 8];
20 20
 
21 21
         $obj = new \stdClass;
22 22
         //@codingStandardsIgnoreStart
Please login to merge, or discard this patch.
a/vendor/phpunit/phpunit/tests/unit/Runner/PhptTestCaseTest.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -101,10 +101,10 @@  discard block
 block discarded – undo
101 101
         $fileSection = '<?php echo "Hello PHPUnit!"; ?>' . \PHP_EOL;
102 102
 
103 103
         $this->phpProcess
104
-             ->expects($this->once())
105
-             ->method('runJob')
106
-             ->with($fileSection)
107
-             ->will($this->returnValue(['stdout' => '', 'stderr' => '']));
104
+                ->expects($this->once())
105
+                ->method('runJob')
106
+                ->with($fileSection)
107
+                ->will($this->returnValue(['stdout' => '', 'stderr' => '']));
108 108
 
109 109
         $this->testCase->run();
110 110
     }
@@ -125,10 +125,10 @@  discard block
 block discarded – undo
125 125
         $renderedCode = "<?php echo '" . $this->dirname . "' . '" . $this->filename . "'; ?>" . \PHP_EOL;
126 126
 
127 127
         $this->phpProcess
128
-             ->expects($this->once())
129
-             ->method('runJob')
130
-             ->with($renderedCode)
131
-             ->will($this->returnValue(['stdout' => '', 'stderr' => '']));
128
+                ->expects($this->once())
129
+                ->method('runJob')
130
+                ->with($renderedCode)
131
+                ->will($this->returnValue(['stdout' => '', 'stderr' => '']));
132 132
 
133 133
         $this->testCase->run();
134 134
     }
@@ -144,10 +144,10 @@  discard block
 block discarded – undo
144 144
         $renderedCode = "<?php echo 'skip: ' . '" . $this->filename . "'; ?>" . \PHP_EOL;
145 145
 
146 146
         $this->phpProcess
147
-             ->expects($this->at(0))
148
-             ->method('runJob')
149
-             ->with($renderedCode)
150
-             ->will($this->returnValue(['stdout' => '', 'stderr' => '']));
147
+                ->expects($this->at(0))
148
+                ->method('runJob')
149
+                ->with($renderedCode)
150
+                ->will($this->returnValue(['stdout' => '', 'stderr' => '']));
151 151
 
152 152
         $this->testCase->run();
153 153
     }
@@ -163,10 +163,10 @@  discard block
 block discarded – undo
163 163
         $this->setPhpContent($phptContent);
164 164
 
165 165
         $this->phpProcess
166
-             ->expects($this->at(0))
167
-             ->method('runJob')
168
-             ->with($skipifSection)
169
-             ->will($this->returnValue(['stdout' => '', 'stderr' => '']));
166
+                ->expects($this->at(0))
167
+                ->method('runJob')
168
+                ->with($skipifSection)
169
+                ->will($this->returnValue(['stdout' => '', 'stderr' => '']));
170 170
 
171 171
         $this->testCase->run();
172 172
     }
@@ -182,10 +182,10 @@  discard block
 block discarded – undo
182 182
         $this->setPhpContent($phptContent);
183 183
 
184 184
         $this->phpProcess
185
-             ->expects($this->once())
186
-             ->method('runJob')
187
-             ->with($skipifSection)
188
-             ->will($this->returnValue(['stdout' => 'skip: Reason', 'stderr' => '']));
185
+                ->expects($this->once())
186
+                ->method('runJob')
187
+                ->with($skipifSection)
188
+                ->will($this->returnValue(['stdout' => 'skip: Reason', 'stderr' => '']));
189 189
 
190 190
         $this->testCase->run();
191 191
     }
@@ -201,9 +201,9 @@  discard block
 block discarded – undo
201 201
         $this->setPhpContent($phptContent);
202 202
 
203 203
         $this->phpProcess
204
-             ->expects($this->at(1))
205
-             ->method('runJob')
206
-             ->with($cleanSection);
204
+                ->expects($this->at(1))
205
+                ->method('runJob')
206
+                ->with($cleanSection);
207 207
 
208 208
         $this->testCase->run();
209 209
     }
@@ -278,10 +278,10 @@  discard block
 block discarded – undo
278 278
         $this->setPhpContent(self::EXPECT_CONTENT);
279 279
 
280 280
         $this->phpProcess
281
-             ->expects($this->once())
282
-             ->method('runJob')
283
-             ->with(self::FILE_SECTION)
284
-             ->will($this->returnValue(['stdout' => 'Hello PHPUnit!', 'stderr' => '']));
281
+                ->expects($this->once())
282
+                ->method('runJob')
283
+                ->with(self::FILE_SECTION)
284
+                ->will($this->returnValue(['stdout' => 'Hello PHPUnit!', 'stderr' => '']));
285 285
 
286 286
         $result = $this->testCase->run();
287 287
 
@@ -293,10 +293,10 @@  discard block
 block discarded – undo
293 293
         $this->setPhpContent(self::EXPECTF_CONTENT);
294 294
 
295 295
         $this->phpProcess
296
-             ->expects($this->once())
297
-             ->method('runJob')
298
-             ->with(self::FILE_SECTION)
299
-             ->will($this->returnValue(['stdout' => 'Hello PHPUnit!', 'stderr' => '']));
296
+                ->expects($this->once())
297
+                ->method('runJob')
298
+                ->with(self::FILE_SECTION)
299
+                ->will($this->returnValue(['stdout' => 'Hello PHPUnit!', 'stderr' => '']));
300 300
 
301 301
         $result = $this->testCase->run();
302 302
 
@@ -308,10 +308,10 @@  discard block
 block discarded – undo
308 308
         $this->setPhpContent(self::EXPECTREGEX_CONTENT);
309 309
 
310 310
         $this->phpProcess
311
-             ->expects($this->once())
312
-             ->method('runJob')
313
-             ->with(self::FILE_SECTION)
314
-             ->will($this->returnValue(['stdout' => 'Hello PHPUnit!', 'stderr' => '']));
311
+                ->expects($this->once())
312
+                ->method('runJob')
313
+                ->with(self::FILE_SECTION)
314
+                ->will($this->returnValue(['stdout' => 'Hello PHPUnit!', 'stderr' => '']));
315 315
 
316 316
         $result = $this->testCase->run();
317 317
 
Please login to merge, or discard this patch.
a/vendor/phpunit/phpunit/tests/unit/Runner/TestSuiteSorterTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -287,7 +287,7 @@
 block discarded – undo
287 287
             $cache->setTime(\MultiDependencyTest::class . '::' . $testName, $data['time']);
288 288
         }
289 289
 
290
-        $sorter  = new TestSuiteSorter($cache);
290
+        $sorter = new TestSuiteSorter($cache);
291 291
         $sorter->reorderTestsInSuite($suite, $order, $resolveDependencies, TestSuiteSorter::ORDER_DEFECTS_FIRST);
292 292
 
293 293
         $this->assertSame($expected, $sorter->getExecutionOrder());
Please login to merge, or discard this patch.
a/vendor/phpunit/phpunit/tests/unit/Runner/ResultCacheExtensionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $listener = new TestListenerAdapter;
43 43
         $listener->add($this->extension);
44 44
 
45
-        $this->result   = new TestResult;
45
+        $this->result = new TestResult;
46 46
         $this->result->addListener($listener);
47 47
     }
48 48
 
Please login to merge, or discard this patch.
a/vendor/phpunit/phpunit/tests/unit/Util/XmlTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
 
103 103
         $actual = Xml::xmlToVariable($dom->documentElement);
104 104
 
105
-        $this->assertSame($expected, (array) $actual);
105
+        $this->assertSame($expected, (array)$actual);
106 106
     }
107 107
 
108 108
     public function testXmlToVariableCanConstructObjectsWithConstructorArgumentsRecursively(): void
Please login to merge, or discard this patch.