Passed
Push — master ( 6bb734...c9a16f )
by Oliver
08:15
created
src/BoxedCode/Eloquent/Meta/MetaItemCollection.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 = [
Please login to merge, or discard this patch.