| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3.0261 |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 30 | public function __construct(array $elements, Structure $structure) |
||
| 31 | { |
||
| 32 | 1 | foreach ($elements as $element) { |
|
| 33 | 1 | if (!($element instanceof \Matks\Vivian\Output\TextElement)) { |
|
| 34 | throw new \InvalidArgumentException('Provided array should contain only TextElement, ' . get_class($element) . ' provided instead'); |
||
| 35 | } |
||
| 36 | 1 | } |
|
| 37 | |||
| 38 | 1 | $this->elements = $elements; |
|
| 39 | 1 | $this->structure = $structure; |
|
| 40 | 1 | } |
|
| 41 | |||
| 75 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.