| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 11 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | View Code Duplication | public function lookup(Node $node) |
|
| 28 | { |
||
| 29 | $id = $node->getId(); |
||
| 30 | |||
| 31 | if(array_key_exists($id, $this->queue)) |
||
| 32 | { |
||
| 33 | return $this->queue[$id]; |
||
| 34 | } |
||
| 35 | |||
| 36 | return null; |
||
| 37 | } |
||
| 38 | |||
| 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.