@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | |
| 9 | 9 | public function tagged($tag): bool |
| 10 | 10 | { |
| 11 | - $tags = (array) $tag; |
|
| 11 | + $tags = (array)$tag; |
|
| 12 | 12 | |
| 13 | 13 | return count(array_intersect($this->tags, $tags)) > 0; |
| 14 | 14 | } |
@@ -27,8 +27,8 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | public function untag($tag) |
| 29 | 29 | { |
| 30 | - foreach((array) $tag as $_tag) { |
|
| 31 | - if(false !== ($k = array_search($_tag, $this->tags))) { |
|
| 30 | + foreach ((array)$tag as $_tag) { |
|
| 31 | + if (false !== ($k = array_search($_tag, $this->tags))) { |
|
| 32 | 32 | unset($this->tags[$k]); |
| 33 | 33 | } |
| 34 | 34 | } |