| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 74 | private function update(TagInterface $tag, $updateScope = false) |
||
| 75 | { |
||
| 76 | if (null !== $this->scope) { |
||
| 77 | $this->scope->content($this->scope->getContentAsArray(), $tag); |
||
| 78 | 1 | } else { |
|
| 79 | $this->storage[] = $tag; |
||
| 80 | 1 | } |
|
| 81 | 1 | ||
| 82 | if (true === $updateScope) { |
||
| 83 | 1 | $this->scope = $tag; |
|
| 84 | } |
||
| 85 | |||
| 86 | 1 | return $this; |
|
| 87 | 1 | } |
|
| 89 |