| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 3 | public function handle(ConnectionContext $context, string $line): PromiseInterface |
|
| 29 | { |
||
| 30 | 3 | $caps = []; |
|
| 31 | 3 | foreach ($this->getNode()->getPlugins() as $plugin) { |
|
| 32 | 2 | foreach ($plugin->getCapabilities() as $capability) { |
|
| 33 | 2 | if (in_array($capability, $caps)) { |
|
| 34 | 1 | continue; |
|
| 35 | } |
||
| 36 | |||
| 37 | 2 | $caps[] = $capability; |
|
| 38 | } |
||
| 39 | } |
||
| 40 | 3 | return resolve($caps); |
|
| 41 | } |
||
| 42 | } |
||
| 43 |