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 = 11-11 lines in 2 locations

src/Crud.php 1 location

@@ 1245-1255 (lines=11) @@
1242
        $this->{$entity} = array_filter(array_map([$this, 'syncField'], $fields));
1243
    }
1244
1245
    public function sync($type, $fields, $attributes)
1246
    {
1247
        if (!empty($this->{$type}))
1248
        {
1249
            $this->{$type} = array_map(function($field) use ($fields, $attributes) {
1250
                if (in_array($field['name'], (array)$fields)) $field = array_merge($field, $attributes);
1251
1252
                return $field;
1253
            }, $this->{$type});
1254
        }
1255
    }
1256
1257
1258

src/ToneCrud.php 1 location

@@ 497-507 (lines=11) @@
494
        $this->{$entity} = array_filter(array_map([$this, 'syncField'], $fields));
495
    }
496
497
    private function sync($type, $fields, $attributes)
498
    {
499
        if (!empty($this->{$type}))
500
        {
501
            $this->{$type} = array_map(function($field) use ($fields, $attributes) {
502
                if (in_array($field['name'], (array)$fields)) $field = array_merge($field, $attributes);
503
504
                return $field;
505
            }, $this->{$type});
506
        }
507
    }
508
509
    private function remove($entity, $fields)
510
    {