We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 236-240 (lines=5) @@ | ||
| 233 | $disk_root = $disk_config['root']; |
|
| 234 | ||
| 235 | //if the disk is public, we need to know the public path |
|
| 236 | if ($disk_config['visibility'] == 'public') { |
|
| 237 | $public_path = str_replace(public_path(), '', $disk_root); |
|
| 238 | } else { |
|
| 239 | $public_path = $disk_root; |
|
| 240 | } |
|
| 241 | ||
| 242 | // if a new file is uploaded, delete the file from the disk |
|
| 243 | if (($request->hasFile($attribute_name) || starts_with($value, 'data:image')) && $this->{$attribute_name}) { |
|
| @@ 381-385 (lines=5) @@ | ||
| 378 | $disk_root = $disk_config['root']; |
|
| 379 | ||
| 380 | //if the disk is public, we need to know the public path |
|
| 381 | if ($disk_config['visibility'] == 'public') { |
|
| 382 | $public_path = str_replace(public_path(), '', $disk_root); |
|
| 383 | } else { |
|
| 384 | $public_path = $disk_root; |
|
| 385 | } |
|
| 386 | ||
| 387 | if (\Storage::disk($disk)->exists($image_variant)) { |
|
| 388 | $url = asset($public_path.'/'.$image_variant); |
|