| Conditions | 4 |
| Paths | 4 |
| Total Lines | 21 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 4 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function __call($name, array $arguments = []) |
||
| 30 | 1 | { |
|
| 31 | if ('c' === $name) { |
||
| 32 | 1 | if (!isset($arguments[0])) { |
|
| 33 | 1 | return $this; |
|
| 34 | 1 | } |
|
| 35 | |||
| 36 | return $this->update( |
||
| 37 | 1 | HtmlTag::tag('!--', [], $arguments[0]) |
|
| 38 | 1 | ); |
|
| 39 | } |
||
| 40 | |||
| 41 | if ('_' === $name) { |
||
| 42 | 1 | $this->scope = null; |
|
| 43 | 1 | ||
| 44 | return $this; |
||
| 45 | 1 | } |
|
| 46 | |||
| 47 | $tag = TagFactory::build($name, ...$arguments); |
||
|
|
|||
| 48 | 1 | ||
| 49 | return $this->update($tag, true); |
||
| 50 | 1 | } |
|
| 89 |