@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | */ |
106 | 106 | public static function observeSaveAndCascade() |
107 | 107 | { |
108 | - $onSave = function ($model) { |
|
108 | + $onSave = function($model) { |
|
109 | 109 | |
110 | 110 | /* |
111 | 111 | * Remove any keys not present in the collection |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | */ |
144 | 144 | public static function observeDeleteAndCascade() |
145 | 145 | { |
146 | - $onDelete = function ($model) { |
|
146 | + $onDelete = function($model) { |
|
147 | 147 | foreach ($model->meta as $meta) { |
148 | 148 | $meta->delete(); |
149 | 149 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | /** |
46 | 46 | * Determine if the model or given attribute(s) have been modified. |
47 | 47 | * |
48 | - * @param array|string|null $attributes |
|
48 | + * @param string $attributes |
|
49 | 49 | * @return bool |
50 | 50 | */ |
51 | 51 | public function isDirty($attributes = null) |
@@ -47,7 +47,7 @@ |
||
47 | 47 | */ |
48 | 48 | public function registerTypeRegistry() |
49 | 49 | { |
50 | - $this->app->singleton(TypeRegistry::class, function () { |
|
50 | + $this->app->singleton(TypeRegistry::class, function() { |
|
51 | 51 | $registry = new TypeRegistry; |
52 | 52 | |
53 | 53 | $this->registerDefaultTypes($registry); |
@@ -91,7 +91,7 @@ |
||
91 | 91 | */ |
92 | 92 | public function setValueAttribute($value, $type = null) |
93 | 93 | { |
94 | - if (is_null($type) && ! isset($this->attributes['type'])) { |
|
94 | + if (is_null($type) && !isset($this->attributes['type'])) { |
|
95 | 95 | $registry = $this->getTypeRegistry(); |
96 | 96 | $this->attributes['type'] = $registry->findTypeFor($value)->getClass(); |
97 | 97 | } |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | { |
93 | 93 | if ($item instanceof MetaItemContract) { |
94 | 94 | |
95 | - if (! is_null($this->findItem($item->key, $item->tag))) { |
|
95 | + if (!is_null($this->findItem($item->key, $item->tag))) { |
|
96 | 96 | $tag = $item->tag ?: $this->default_tag; |
97 | 97 | |
98 | 98 | $key = $item->key; |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | { |
120 | 120 | $collection = $this->whereKey($key); |
121 | 121 | |
122 | - if (! is_null($tag)) { |
|
122 | + if (!is_null($tag)) { |
|
123 | 123 | $collection = $collection->whereTag($tag); |
124 | 124 | } |
125 | 125 | |
@@ -149,10 +149,10 @@ discard block |
||
149 | 149 | */ |
150 | 150 | protected function observeDeletion(MetaItemContract $item) |
151 | 151 | { |
152 | - $item::deleted(function ($model) { |
|
152 | + $item::deleted(function($model) { |
|
153 | 153 | $key = $this->findItem($model->key, $model->tag); |
154 | 154 | |
155 | - if (! is_null($key)) { |
|
155 | + if (!is_null($key)) { |
|
156 | 156 | $this->forget($key); |
157 | 157 | } |
158 | 158 | }); |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | */ |
233 | 233 | public function __isset($name) |
234 | 234 | { |
235 | - return ! is_null($this->findItem($name, $this->default_tag)); |
|
235 | + return !is_null($this->findItem($name, $this->default_tag)); |
|
236 | 236 | } |
237 | 237 | |
238 | 238 | /** |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | { |
245 | 245 | $key = $this->findItem($name, $this->default_tag); |
246 | 246 | |
247 | - if (! is_null($key)) { |
|
247 | + if (!is_null($key)) { |
|
248 | 248 | $this->forget($key); |
249 | 249 | } |
250 | 250 | } |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | { |
261 | 261 | $key = $this->findItem($name, $this->default_tag); |
262 | 262 | |
263 | - if (! is_null($key)) { |
|
263 | + if (!is_null($key)) { |
|
264 | 264 | return $this->get($key)->value; |
265 | 265 | } |
266 | 266 | |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | { |
283 | 283 | $key = $this->findItem($name, $this->default_tag); |
284 | 284 | |
285 | - if (! is_null($key)) { |
|
285 | + if (!is_null($key)) { |
|
286 | 286 | $this->get($key)->value = $value; |
287 | 287 | } |
288 | 288 | else { |
@@ -40,7 +40,7 @@ |
||
40 | 40 | |
41 | 41 | protected function registerClass($class, $instance) |
42 | 42 | { |
43 | - if (! isset($this->registered[$class])) { |
|
43 | + if (!isset($this->registered[$class])) { |
|
44 | 44 | $this->registered[$class] = $instance; |
45 | 45 | |
46 | 46 | return true; |
@@ -23,7 +23,7 @@ |
||
23 | 23 | 'prefix' => '', |
24 | 24 | ]); |
25 | 25 | |
26 | - if (! class_exists('MetaMigration')) { |
|
26 | + if (!class_exists('MetaMigration')) { |
|
27 | 27 | static::makeMigration(); |
28 | 28 | } else { |
29 | 29 | static::migrate(); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | */ |
22 | 22 | public function up() |
23 | 23 | { |
24 | - Schema::create('models', function (Blueprint $table) { |
|
24 | + Schema::create('models', function(Blueprint $table) { |
|
25 | 25 | $table->bigIncrements('id'); |
26 | 26 | $table->timestamps(); |
27 | 27 | }); |