@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public function forceFill(array $attributes) |
83 | 83 | { |
84 | - return static::unguarded(function () use ($attributes) { |
|
84 | + return static::unguarded(function() use ($attributes) { |
|
85 | 85 | return $this->fill($attributes); |
86 | 86 | }); |
87 | 87 | } |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | { |
114 | 114 | $instance = new static(); |
115 | 115 | |
116 | - return array_map(static function ($item) use ($instance) { |
|
116 | + return array_map(static function($item) use ($instance) { |
|
117 | 117 | return $instance->newInstance($item); |
118 | 118 | }, $items); |
119 | 119 | } |
@@ -306,16 +306,16 @@ discard block |
||
306 | 306 | switch ($this->getCastType($key)) { |
307 | 307 | case 'int': |
308 | 308 | case 'integer': |
309 | - return (int) $value; |
|
309 | + return (int)$value; |
|
310 | 310 | case 'real': |
311 | 311 | case 'float': |
312 | 312 | case 'double': |
313 | 313 | return $this->fromFloat($value); |
314 | 314 | case 'string': |
315 | - return (string) $value; |
|
315 | + return (string)$value; |
|
316 | 316 | case 'bool': |
317 | 317 | case 'boolean': |
318 | - return (bool) $value; |
|
318 | + return (bool)$value; |
|
319 | 319 | case 'object': |
320 | 320 | return $this->fromJson($value, true); |
321 | 321 | case 'array': |
@@ -425,7 +425,7 @@ discard block |
||
425 | 425 | */ |
426 | 426 | public function fromFloat($value) |
427 | 427 | { |
428 | - switch ((string) $value) { |
|
428 | + switch ((string)$value) { |
|
429 | 429 | case 'Infinity': |
430 | 430 | return INF; |
431 | 431 | case '-Infinity': |
@@ -433,7 +433,7 @@ discard block |
||
433 | 433 | case 'NaN': |
434 | 434 | return NAN; |
435 | 435 | default: |
436 | - return (float) $value; |
|
436 | + return (float)$value; |
|
437 | 437 | } |
438 | 438 | } |
439 | 439 | |
@@ -448,7 +448,7 @@ discard block |
||
448 | 448 | public function hasCast($key, $types = null) |
449 | 449 | { |
450 | 450 | if (array_key_exists($key, $this->getCasts())) { |
451 | - return $types ? in_array($this->getCastType($key), (array) $types, true) : true; |
|
451 | + return $types ? in_array($this->getCastType($key), (array)$types, true) : true; |
|
452 | 452 | } |
453 | 453 | |
454 | 454 | return false; |