Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Code Duplication    Length = 5-5 lines in 2 locations

src/CrudTrait.php 2 locations

@@ 232-236 (lines=5) @@
229
        $disk_root = $disk_config['root'];
230
231
        //if the disk is public, we need to know the public path
232
        if ($disk_config['visibility'] == 'public') {
233
            $public_path = str_replace(public_path(), '', $disk_root);
234
        } else {
235
            $public_path = $disk_root;
236
        }
237
238
        // if a new file is uploaded, delete the file from the disk
239
        if (($request->hasFile($attribute_name) || starts_with($value, 'data:image')) && $this->{$attribute_name}) {
@@ 377-381 (lines=5) @@
374
                $disk_root = $disk_config['root'];
375
376
                //if the disk is public, we need to know the public path
377
                if ($disk_config['visibility'] == 'public') {
378
                    $public_path = str_replace(public_path(), '', $disk_root);
379
                } else {
380
                    $public_path = $disk_root;
381
                }
382
383
                if (\Storage::disk($disk)->exists($image_variant)) {
384
                    $url = asset($public_path.'/'.$image_variant);