We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | foreach ($columns as $key => $column) { |
51 | 51 | $column_contents = $this->{$column}; |
52 | 52 | |
53 | - if (! is_object($this->{$column})) { |
|
53 | + if (!is_object($this->{$column})) { |
|
54 | 54 | $column_contents = json_decode($this->{$column}); |
55 | 55 | } |
56 | 56 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | { |
74 | 74 | $model = '\\'.get_class($this); |
75 | 75 | |
76 | - if (! count($columns)) { |
|
76 | + if (!count($columns)) { |
|
77 | 77 | $columns = (property_exists($model, 'fakeColumns')) ? $this->fakeColumns : ['extras']; |
78 | 78 | } |
79 | 79 | |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | $attribute_value = (array) $this->{$attribute_name}; |
164 | 164 | foreach ($files_to_clear as $key => $filename) { |
165 | 165 | \Storage::disk($disk)->delete($filename); |
166 | - $attribute_value = array_where($attribute_value, function ($value, $key) use ($filename) { |
|
166 | + $attribute_value = array_where($attribute_value, function($value, $key) use ($filename) { |
|
167 | 167 | return $value != $filename; |
168 | 168 | }); |
169 | 169 | } |
@@ -207,17 +207,17 @@ discard block |
||
207 | 207 | */ |
208 | 208 | public function uploadImageToDisk($value, $attribute_name, $disk, $destination_path, $variations = null) |
209 | 209 | { |
210 | - if (! $variations || ! is_array($variations)) { |
|
210 | + if (!$variations || !is_array($variations)) { |
|
211 | 211 | $variations = ['original' => null, 'thumb' => [150, 150]]; |
212 | 212 | } |
213 | 213 | |
214 | 214 | //Needed for the original image |
215 | - if (! array_key_exists('original', $variations)) { |
|
215 | + if (!array_key_exists('original', $variations)) { |
|
216 | 216 | $variations['original'] = null; |
217 | 217 | } |
218 | 218 | |
219 | 219 | //Needed for admin thumbnails |
220 | - if (! array_key_exists('thumb', $variations)) { |
|
220 | + if (!array_key_exists('thumb', $variations)) { |
|
221 | 221 | $variations['thumb'] = [150, 150]; |
222 | 222 | } |
223 | 223 | |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | $height = $dimensions[1]; |
279 | 279 | |
280 | 280 | if ($img->width() > $width || $img->height() > $height) { |
281 | - $img->resize($width, $height, function ($constraint) { |
|
281 | + $img->resize($width, $height, function($constraint) { |
|
282 | 282 | $constraint->aspectRatio(); |
283 | 283 | }) |
284 | 284 | ->save($disk_root.'/'.$variant_file); |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | $img = \Image::make($value); |
303 | 303 | $new_file_name = md5($value.time()); |
304 | 304 | |
305 | - if (! \Illuminate\Support\Facades\File::exists($destination_path)) { |
|
305 | + if (!\Illuminate\Support\Facades\File::exists($destination_path)) { |
|
306 | 306 | \Illuminate\Support\Facades\File::makeDirectory($destination_path, 0775, true); |
307 | 307 | } |
308 | 308 | |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | $height = $dimensions[1]; |
337 | 337 | |
338 | 338 | if ($img->width() > $width || $img->height() > $height) { |
339 | - $img->resize($width, $height, function ($constraint) { |
|
339 | + $img->resize($width, $height, function($constraint) { |
|
340 | 340 | $constraint->aspectRatio(); |
341 | 341 | }) |
342 | 342 | ->save($disk_root.'/'.$variant_file); |
@@ -366,7 +366,7 @@ discard block |
||
366 | 366 | { |
367 | 367 | $image = $this->attributes['image']; |
368 | 368 | $url = null; |
369 | - if (! empty($image)) { |
|
369 | + if (!empty($image)) { |
|
370 | 370 | $image_variant = str_replace('-original', '-'.$variant, $image); |
371 | 371 | |
372 | 372 | if ($disk) { |