| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function render(array $defects) |
||
| 20 | { |
||
| 21 | $prettyPrint = new Standard(); |
||
| 22 | |||
| 23 | $this->content = $this->twig->render( |
||
| 24 | 'report.html.twig', |
||
| 25 | array( |
||
| 26 | 'project' => 'Solidifier', |
||
| 27 | 'defects' => $this->sortDefectsByNamespace($defects), |
||
| 28 | 'printer' => $prettyPrint, |
||
| 29 | )); |
||
| 30 | |||
| 31 | return $this; |
||
| 32 | } |
||
| 33 | |||
| 58 | } |
Only declaring a single property per statement allows you to later on add doc comments more easily.
It is also recommended by PSR2, so it is a common style that many people expect.