| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public static function filter(DataFilterAbstract $dataFilter) |
||
| 22 | { |
||
| 23 | $handlers = get_class($dataFilter)::handlers($dataFilter); |
||
|
|
|||
| 24 | |||
| 25 | $data = $dataFilter; |
||
| 26 | foreach ($handlers as $class) { |
||
| 27 | /** @var DataHandlerInterface $handler */ |
||
| 28 | $handler = new $class(); |
||
| 29 | $data = $handler->handle($data); |
||
| 30 | } |
||
| 31 | |||
| 32 | return $data->value; |
||
| 33 | } |
||
| 34 | } |
||
| 35 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.