| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 83 | public function isUrlSupported(ExecutionContextInterface $context) |
||
| 84 | { |
||
| 85 | foreach ($this->chain->getPlugins() as $plugin) { |
||
| 86 | /* @var $plugin FillerInterface */ |
||
| 87 | if ($plugin->isSupportedUrl($this->url)) { |
||
| 88 | $this->filler = $plugin; |
||
| 89 | |||
| 90 | return; |
||
| 91 | } |
||
| 92 | } |
||
| 93 | |||
| 94 | $context |
||
| 95 | ->buildViolation('No fillers that would support this URL') |
||
| 96 | ->atPath('url') |
||
| 97 | ->addViolation(); |
||
| 98 | } |
||
| 99 | } |
||
| 100 |