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/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
    {

src/Crud.php 1 location

@@ 1291-1301 (lines=11) @@
1288
        $this->{$entity} = array_filter(array_map([$this, 'syncField'], $fields));
1289
    }
1290
1291
    public function sync($type, $fields, $attributes)
1292
    {
1293
        if (!empty($this->{$type}))
1294
        {
1295
            $this->{$type} = array_map(function($field) use ($fields, $attributes) {
1296
                if (in_array($field['name'], (array)$fields)) $field = array_merge($field, $attributes);
1297
1298
                return $field;
1299
            }, $this->{$type});
1300
        }
1301
    }
1302
1303
1304