| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 11 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 50 | View Code Duplication | public function lookup(Node $node) |
|
| 51 | { |
||
| 52 | $id = $node->getId(); |
||
| 53 | |||
| 54 | if(array_key_exists($id, $this->map)) |
||
| 55 | { |
||
| 56 | return $this->map[$id]; |
||
| 57 | } |
||
| 58 | |||
| 59 | return null; |
||
| 60 | } |
||
| 61 | |||
| 103 |
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.