| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function getDescription() |
||
| 36 | { |
||
| 37 | $violation = $this->metric->getDistance() > 0 |
||
| 38 | ? 'instable and abstract' |
||
| 39 | : 'stable and concrete'; |
||
| 40 | |||
| 41 | return <<<EOT |
||
| 42 | Packages should be either abstract and stable or concrete and instable. |
||
| 43 | |||
| 44 | This package is {$violation}. |
||
| 45 | EOT; |
||
| 46 | } |
||
| 47 | } |
||
| 48 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.