| Conditions | 3 | 
| Paths | 4 | 
| Total Lines | 14 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 7 | 
| CRAP Score | 3 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 80 | 1 | private function update(TagInterface $tag, $updateScope = false)  | 
            |
| 81 |     { | 
            ||
| 82 | 1 |         if (null !== $this->scope) { | 
            |
| 83 | 1 | $this->scope->content($this->scope->getContentAsArray(), $tag);  | 
            |
| 84 |         } else { | 
            ||
| 85 | 1 | $this->storage[] = $tag;  | 
            |
| 86 | }  | 
            ||
| 87 | |||
| 88 | 1 |         if (true === $updateScope) { | 
            |
| 89 | 1 | $this->scope = $tag;  | 
            |
| 90 | }  | 
            ||
| 91 | |||
| 92 | 1 | return $this;  | 
            |
| 93 | }  | 
            ||
| 94 | }  | 
            ||
| 95 |