| Total Complexity | 4 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | abstract class SocketHandler implements SocketHandlerInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @param string $data |
||
| 13 | * @param int $fd |
||
| 14 | */ |
||
| 15 | public function __invoke(string $data, $fd = null) |
||
| 16 | { |
||
| 17 | /** @var ActionInterface */ |
||
| 18 | $action = $this->parseData($data); |
||
| 19 | |||
| 20 | $this->maybeSetFd($fd); |
||
| 21 | |||
| 22 | return $action->execute(); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function maybeSetFd($fd) { |
||
| 31 | } |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * This method identifies the action to be executed |
||
| 36 | * |
||
| 37 | * @param string $data |
||
| 38 | * |
||
| 39 | * @return ActionInterface |
||
| 40 | * |
||
| 41 | * @throws InvalidArgumentException |
||
| 42 | */ |
||
| 43 | abstract public function parseData(string $data) : ActionInterface; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param array $data |
||
| 47 | * |
||
| 48 | * @return void |
||
| 49 | * |
||
| 50 | * @throws InvalidArgumentException |
||
| 51 | */ |
||
| 52 | abstract public function validateData(array $data) : void; |
||
| 53 | } |
||
| 54 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths