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 = 6-7 lines in 4 locations

src/PanelTraits/Fields.php 4 locations

@@ 78-83 (lines=6) @@
75
     */
76
    public function afterField($target_field)
77
    {
78
        foreach ($this->create_fields as $field => $value) {
79
            if ($value['name'] == $target_field) {
80
                array_splice($this->create_fields, $field + 1, 0, [$field => array_pop($this->create_fields)]);
81
                break;
82
            }
83
        }
84
        foreach ($this->update_fields as $field => $value) {
85
            if ($value['name'] == $target_field) {
86
                array_splice($this->update_fields, $field + 1, 0, [$field => array_pop($this->update_fields)]);
@@ 84-89 (lines=6) @@
81
                break;
82
            }
83
        }
84
        foreach ($this->update_fields as $field => $value) {
85
            if ($value['name'] == $target_field) {
86
                array_splice($this->update_fields, $field + 1, 0, [$field => array_pop($this->update_fields)]);
87
                break;
88
            }
89
        }
90
    }
91
92
    /**
@@ 100-106 (lines=7) @@
97
    public function beforeField($target_field)
98
    {
99
        $key = 0;
100
        foreach ($this->create_fields as $field => $value) {
101
            if ($value['name'] == $target_field) {
102
                array_splice($this->create_fields, $key, 0, [$field => array_pop($this->create_fields)]);
103
                break;
104
            }
105
            $key++;
106
        }
107
        $key = 0;
108
        foreach ($this->update_fields as $field => $value) {
109
            if ($value['name'] == $target_field) {
@@ 108-114 (lines=7) @@
105
            $key++;
106
        }
107
        $key = 0;
108
        foreach ($this->update_fields as $field => $value) {
109
            if ($value['name'] == $target_field) {
110
                array_splice($this->update_fields, $key, 0, [$field => array_pop($this->update_fields)]);
111
                break;
112
            }
113
            $key++;
114
        }
115
    }
116
117
    /**