| Total Complexity | 5 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | trait Porting |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @param SWServer $master |
||
| 21 | * @param SWPorted $ported |
||
| 22 | * @param Events $events |
||
| 23 | * @param Options $options |
||
| 24 | * @return TServer |
||
| 25 | */ |
||
| 26 | public function porting(SWServer $master, SWPorted $ported, Events $events, Options $options = null) : TServer |
||
| 27 | { |
||
| 28 | $this->server = $master; |
||
| 29 | $this->events = $events; |
||
| 30 | |||
| 31 | $this->registerEvs($ported, ['bufferFull', 'bufferEmpty']); |
||
| 32 | |||
| 33 | $this->registerEvs($ported, $this->k2evs($events->keys(), [ |
||
| 34 | Events\Socket::CONNECTED => 'connect', |
||
| 35 | Events\Socket::RECEIVED => 'receive', |
||
| 36 | Events\Socket::CLOSED => 'close', |
||
| 37 | ])); |
||
| 38 | |||
| 39 | $options && $this->serverConfig($ported, $options->config()); |
||
| 40 | |||
| 41 | return $this; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param array $keys |
||
| 46 | * @param array $map |
||
| 47 | * @return array |
||
| 48 | */ |
||
| 49 | private function k2evs(array $keys, array $map) |
||
| 58 | } |
||
| 59 | } |
||
| 60 |
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