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 @@ |
||
| 35 | 35 | 'file_size' => $disk->size($f), |
| 36 | 36 | 'last_modified' => $disk->lastModified($f), |
| 37 | 37 | 'disk' => $disk_name, |
| 38 | - 'download' => ($adapter instanceof \League\Flysystem\Adapter\Local)?true:false |
|
| 38 | + 'download' => ($adapter instanceof \League\Flysystem\Adapter\Local) ? true : false |
|
| 39 | 39 | ]; |
| 40 | 40 | } |
| 41 | 41 | } |
@@ -80,13 +80,11 @@ discard block |
||
| 80 | 80 | |
| 81 | 81 | if ($disk->exists($file_name)) { |
| 82 | 82 | return response()->download($storage_path.$file_name); |
| 83 | - } |
|
| 84 | - else |
|
| 83 | + } else |
|
| 85 | 84 | { |
| 86 | 85 | abort(404, trans('backpack::backup.backup_doesnt_exist')); |
| 87 | 86 | } |
| 88 | - } |
|
| 89 | - else |
|
| 87 | + } else |
|
| 90 | 88 | { |
| 91 | 89 | abort(404, trans('backpack::backup.only_local_downloads_supported')); |
| 92 | 90 | } |
@@ -103,8 +101,7 @@ discard block |
||
| 103 | 101 | $disk->delete($file_name); |
| 104 | 102 | |
| 105 | 103 | return 'success'; |
| 106 | - } |
|
| 107 | - else |
|
| 104 | + } else |
|
| 108 | 105 | { |
| 109 | 106 | abort(404, trans('backpack::backup.backup_doesnt_exist')); |
| 110 | 107 | } |