@@ -17,8 +17,8 @@ discard block |
||
17 | 17 | $this->assertJsonStringEqualsJsonString($expected, $report); |
18 | 18 | } |
19 | 19 | |
20 | - public function testFailedOutput() |
|
21 | - { |
|
20 | + public function testFailedOutput() |
|
21 | + { |
|
22 | 22 | $output = new Phpcs(); |
23 | 23 | ob_start(); |
24 | 24 | $output->output($this->getFailing(), 80, 100); |
@@ -59,6 +59,6 @@ discard block |
||
59 | 59 | }, |
60 | 60 | "totals":{"errors":2,"fixable":0,"warnings":0}}'; |
61 | 61 | $this->assertJsonStringEqualsJsonString($expected, $report); |
62 | - } |
|
62 | + } |
|
63 | 63 | |
64 | 64 | } |
@@ -20,8 +20,7 @@ |
||
20 | 20 | $output = (object) [ |
21 | 21 | 'coverage' => number_format($percent, 2), |
22 | 22 | 'status' => $percent >= $minimumPercent ? |
23 | - 'Passed': |
|
24 | - 'Failed', |
|
23 | + 'Passed' : 'Failed', |
|
25 | 24 | 'violations' => $violations |
26 | 25 | ]; |
27 | 26 | echo json_encode($output) . "\n"; |