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} ) {
@@ 384-388 (lines=5) @@
381
                $disk_root = $disk_config['root'];
382
383
                //if the disk is public, we need to know the public path
384
                if ($disk_config['visibility'] == 'public') {
385
                    $public_path = str_replace(public_path(), '', $disk_root);
386
                } else {
387
                    $public_path = $disk_root;
388
                }
389
390
                if( \Storage::disk($disk)->exists($image_variant) ){
391
                    $url = asset($public_path.'/'.$image_variant);