Conditions | 4 |
Paths | 4 |
Total Lines | 24 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function result(AnalysisResult $result) |
||
13 | { |
||
14 | $writer = Writer::createFromString(''); |
||
15 | $writer->insertOne(['File', 'Line', 'Tool', 'Type', 'Message']); |
||
16 | |||
17 | foreach ($result->toArray() as $fileName => $lines) { |
||
18 | foreach ($lines as $lineNumber => $issues) { |
||
19 | foreach ($issues as $issue) { |
||
20 | $writer->insertOne( |
||
21 | [ |
||
22 | $fileName, |
||
23 | $lineNumber, |
||
24 | $issue['tool'], |
||
25 | $issue['type'], |
||
26 | trim($issue['message']), |
||
27 | ] |
||
28 | ); |
||
29 | } |
||
30 | } |
||
31 | } |
||
32 | |||
33 | $csv = ltrim($writer->__toString()); |
||
|
|||
34 | $this->cli->out($csv); |
||
35 | } |
||
36 | } |
||
37 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.