We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | // register the enum column type, because Doctrine doesn't support it |
| 36 | 36 | DB::connection()->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string'); |
| 37 | 37 | |
| 38 | - return ! DB::connection()->getDoctrineColumn($instance->getTable(), $column_name)->getNotnull(); |
|
| 38 | + return !DB::connection()->getDoctrineColumn($instance->getTable(), $column_name)->getNotnull(); |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /* |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | foreach ($columns as $key => $column) { |
| 55 | 55 | $column_contents = $this->{$column}; |
| 56 | 56 | |
| 57 | - if (! is_object($this->{$column})) { |
|
| 57 | + if (!is_object($this->{$column})) { |
|
| 58 | 58 | $column_contents = json_decode($this->{$column}); |
| 59 | 59 | } |
| 60 | 60 | |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | { |
| 78 | 78 | $model = '\\'.get_class($this); |
| 79 | 79 | |
| 80 | - if (! count($columns)) { |
|
| 80 | + if (!count($columns)) { |
|
| 81 | 81 | $columns = (property_exists($model, 'fakeColumns')) ? $this->fakeColumns : ['extras']; |
| 82 | 82 | } |
| 83 | 83 | |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | $attribute_value = (array) $this->{$attribute_name}; |
| 168 | 168 | foreach ($files_to_clear as $key => $filename) { |
| 169 | 169 | \Storage::disk($disk)->delete($filename); |
| 170 | - $attribute_value = array_where($attribute_value, function ($value, $key) use ($filename) { |
|
| 170 | + $attribute_value = array_where($attribute_value, function($value, $key) use ($filename) { |
|
| 171 | 171 | return $value != $filename; |
| 172 | 172 | }); |
| 173 | 173 | } |
@@ -211,17 +211,17 @@ discard block |
||
| 211 | 211 | */ |
| 212 | 212 | public function uploadImageToDisk($value, $attribute_name, $disk, $destination_path, $variations = null) |
| 213 | 213 | { |
| 214 | - if (! $variations || ! is_array($variations)) { |
|
| 214 | + if (!$variations || !is_array($variations)) { |
|
| 215 | 215 | $variations = ['original' => null, 'thumb' => [150, 150]]; |
| 216 | 216 | } |
| 217 | 217 | |
| 218 | 218 | //Needed for the original image |
| 219 | - if (! array_key_exists('original', $variations)) { |
|
| 219 | + if (!array_key_exists('original', $variations)) { |
|
| 220 | 220 | $variations['original'] = null; |
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | //Needed for admin thumbnails |
| 224 | - if (! array_key_exists('thumb', $variations)) { |
|
| 224 | + if (!array_key_exists('thumb', $variations)) { |
|
| 225 | 225 | $variations['thumb'] = [150, 150]; |
| 226 | 226 | } |
| 227 | 227 | |
@@ -282,7 +282,7 @@ discard block |
||
| 282 | 282 | $height = $dimensions[1]; |
| 283 | 283 | |
| 284 | 284 | if ($img->width() > $width || $img->height() > $height) { |
| 285 | - $img->resize($width, $height, function ($constraint) { |
|
| 285 | + $img->resize($width, $height, function($constraint) { |
|
| 286 | 286 | $constraint->aspectRatio(); |
| 287 | 287 | }) |
| 288 | 288 | ->save($disk_root.'/'.$variant_file); |
@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | $img = \Intervention\Image\ImageManagerStatic::make($value); |
| 307 | 307 | $new_file_name = md5($value.time()); |
| 308 | 308 | |
| 309 | - if (! \Illuminate\Support\Facades\File::exists($disk_root.'/'.trim($destination_path, '/'))) { |
|
| 309 | + if (!\Illuminate\Support\Facades\File::exists($disk_root.'/'.trim($destination_path, '/'))) { |
|
| 310 | 310 | \Illuminate\Support\Facades\File::makeDirectory($disk_root.'/'.trim($destination_path, '/'), 0775, true); |
| 311 | 311 | } |
| 312 | 312 | |
@@ -340,7 +340,7 @@ discard block |
||
| 340 | 340 | $height = $dimensions[1]; |
| 341 | 341 | |
| 342 | 342 | if ($img->width() > $width || $img->height() > $height) { |
| 343 | - $img->resize($width, $height, function ($constraint) { |
|
| 343 | + $img->resize($width, $height, function($constraint) { |
|
| 344 | 344 | $constraint->aspectRatio(); |
| 345 | 345 | }) |
| 346 | 346 | ->save($disk_root.'/'.$variant_file); |
@@ -370,7 +370,7 @@ discard block |
||
| 370 | 370 | { |
| 371 | 371 | $image = $this->attributes['image']; |
| 372 | 372 | $url = null; |
| 373 | - if (! empty($image)) { |
|
| 373 | + if (!empty($image)) { |
|
| 374 | 374 | $image_variant = str_replace('-original', '-'.$variant, $image); |
| 375 | 375 | |
| 376 | 376 | if ($disk) { |