@@ -52,16 +52,16 @@ |
||
| 52 | 52 | $result3 = $this->analysisResults->getAnalysisResults()[2]; |
| 53 | 53 | |
| 54 | 54 | $this->assertMatch($result1, |
| 55 | - 'src/Domain/ResultsParser/AnalysisResults.php', |
|
| 56 | - 67, |
|
| 57 | - 'MismatchingDocblockParamType' |
|
| 55 | + 'src/Domain/ResultsParser/AnalysisResults.php', |
|
| 56 | + 67, |
|
| 57 | + 'MismatchingDocblockParamType' |
|
| 58 | 58 | ); |
| 59 | 59 | $this->assertSame('', $result1->getMessage()); |
| 60 | 60 | |
| 61 | 61 | $this->assertMatch($result2, |
| 62 | 62 | 'src/Domain/Utils/JsonUtils.php', |
| 63 | 63 | 29, |
| 64 | - 'MixedAssignment' |
|
| 64 | + 'MixedAssignment' |
|
| 65 | 65 | ); |
| 66 | 66 | |
| 67 | 67 | $this->assertMatch($result3, |
@@ -1,10 +1,14 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | $inputData = stream_get_contents(STDIN); |
| 4 | -if ($inputData === false) die("Could not read input"); |
|
| 4 | +if ($inputData === false) { |
|
| 5 | + die("Could not read input"); |
|
| 6 | +} |
|
| 5 | 7 | |
| 6 | 8 | $asJson = json_decode($inputData, true); |
| 7 | -if (!is_array($asJson)) die ("Could not parse JSON"); |
|
| 9 | +if (!is_array($asJson)) { |
|
| 10 | + die ("Could not parse JSON"); |
|
| 11 | +} |
|
| 8 | 12 | |
| 9 | 13 | $issues = []; |
| 10 | 14 | |