@@ -17,7 +17,7 @@ |
||
17 | 17 | */ |
18 | 18 | public function passes($attribute, $value) |
19 | 19 | { |
20 | - if (! $this->isBase64($value)) { |
|
20 | + if (!$this->isBase64($value)) { |
|
21 | 21 | return false; |
22 | 22 | } |
23 | 23 |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | $values = Arr::wrap($value); |
23 | 23 | |
24 | 24 | foreach ($values as $value) { |
25 | - if (! $this->isBase64($value)) { |
|
25 | + if (!$this->isBase64($value)) { |
|
26 | 26 | return false; |
27 | 27 | } |
28 | 28 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | */ |
41 | 41 | protected function isBase64($value): bool |
42 | 42 | { |
43 | - if (! is_string($value)) { |
|
43 | + if (!is_string($value)) { |
|
44 | 44 | return false; |
45 | 45 | } |
46 | 46 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | */ |
37 | 37 | public function passes($attribute, $value) |
38 | 38 | { |
39 | - if (! $this->isBase64($value)) { |
|
39 | + if (!$this->isBase64($value)) { |
|
40 | 40 | return false; |
41 | 41 | } |
42 | 42 |
@@ -36,11 +36,11 @@ |
||
36 | 36 | |
37 | 37 | // Before we can validate the size we need to make sure that all values |
38 | 38 | // are a base64 string. |
39 | - if (! parent::passes($attribute, $values)) { |
|
39 | + if (!parent::passes($attribute, $values)) { |
|
40 | 40 | return false; |
41 | 41 | } |
42 | 42 | |
43 | - $size = array_reduce($values, function ($carry, $value) { |
|
43 | + $size = array_reduce($values, function($carry, $value) { |
|
44 | 44 | return $carry + $this->getSize($value); |
45 | 45 | }); |
46 | 46 |
@@ -37,7 +37,7 @@ |
||
37 | 37 | */ |
38 | 38 | public function toArray($request): array |
39 | 39 | { |
40 | - if (! $this->forceMediaResource && $this->isImage()) { |
|
40 | + if (!$this->forceMediaResource && $this->isImage()) { |
|
41 | 41 | return (new MediaImageResource($this->resource))->toArray($request); |
42 | 42 | } |
43 | 43 |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | private function addImage(array &$data): void |
14 | 14 | { |
15 | - if (! $this->resource->relationLoaded('media')) { |
|
15 | + if (!$this->resource->relationLoaded('media')) { |
|
16 | 16 | return; |
17 | 17 | } |
18 | 18 |
@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | public function toArray($request): array |
37 | 37 | { |
38 | - return $this->resource->map(function (MediaResource $resource) use ($request) { |
|
38 | + return $this->resource->map(function(MediaResource $resource) use ($request) { |
|
39 | 39 | $resource->forceMediaResource = $this->forceMediaResource; |
40 | 40 | |
41 | 41 | return $resource; |
@@ -104,7 +104,7 @@ |
||
104 | 104 | |
105 | 105 | preg_match('/data\:\w+\/(.*?)\;/s', $string, $extension); |
106 | 106 | |
107 | - if (! is_null($name)) { |
|
107 | + if (!is_null($name)) { |
|
108 | 108 | if (empty($extension)) { |
109 | 109 | $format = '%s.%s'; |
110 | 110 |