@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | */ |
63 | 63 | protected function setTags(array $items) |
64 | 64 | { |
65 | - array_map(function ($item) { |
|
65 | + array_map(function($item) { |
|
66 | 66 | if ($item instanceof MetaItemContract) { |
67 | 67 | $item->tag = $item->tag ?: $this->default_tag; |
68 | 68 | } |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | public function add($item) |
110 | 110 | { |
111 | 111 | if ($item instanceof MetaItemContract) { |
112 | - if (! is_null($this->findItem($item->key, $item->tag))) { |
|
112 | + if (!is_null($this->findItem($item->key, $item->tag))) { |
|
113 | 113 | $tag = $item->tag ?: $this->default_tag; |
114 | 114 | |
115 | 115 | $key = $item->key; |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | { |
137 | 137 | $collection = $this->whereKey($key); |
138 | 138 | |
139 | - if (! is_null($tag)) { |
|
139 | + if (!is_null($tag)) { |
|
140 | 140 | $collection = $collection->whereTag($tag); |
141 | 141 | } |
142 | 142 | |
@@ -166,10 +166,10 @@ discard block |
||
166 | 166 | */ |
167 | 167 | protected function observeDeletion(MetaItemContract $item) |
168 | 168 | { |
169 | - $item::deleted(function ($model) { |
|
169 | + $item::deleted(function($model) { |
|
170 | 170 | $key = $this->findItem($model->key, $model->tag); |
171 | 171 | |
172 | - if (! is_null($key)) { |
|
172 | + if (!is_null($key)) { |
|
173 | 173 | $this->forget($key); |
174 | 174 | } |
175 | 175 | }); |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | */ |
251 | 251 | public function __isset($name) |
252 | 252 | { |
253 | - return ! is_null($this->findItem($name, $this->default_tag)); |
|
253 | + return !is_null($this->findItem($name, $this->default_tag)); |
|
254 | 254 | } |
255 | 255 | |
256 | 256 | /** |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | { |
263 | 263 | $key = $this->findItem($name, $this->default_tag); |
264 | 264 | |
265 | - if (! is_null($key)) { |
|
265 | + if (!is_null($key)) { |
|
266 | 266 | $this->forget($key); |
267 | 267 | } |
268 | 268 | } |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | { |
279 | 279 | $key = $this->findItem($name, $this->default_tag); |
280 | 280 | |
281 | - if (! is_null($key)) { |
|
281 | + if (!is_null($key)) { |
|
282 | 282 | return $this->get($key)->value; |
283 | 283 | } |
284 | 284 | |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | { |
301 | 301 | $key = $this->findItem($name, $this->default_tag); |
302 | 302 | |
303 | - if (! is_null($key)) { |
|
303 | + if (!is_null($key)) { |
|
304 | 304 | $this->get($key)->value = $value; |
305 | 305 | } else { |
306 | 306 | $attr = [ |