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

@@ 71-76 (lines=6) @@
68
     */
69
    public function afterField($target_field)
70
    {
71
        foreach ($this->create_fields as $field => $value) {
72
            if ($value['name'] == $target_field) {
73
                array_splice($this->create_fields, $field + 1, 0, [$field => array_pop($this->create_fields)]);
74
                break;
75
            }
76
        }
77
        foreach ($this->update_fields as $field => $value) {
78
            if ($value['name'] == $target_field) {
79
                array_splice($this->update_fields, $field + 1, 0, [$field => array_pop($this->update_fields)]);
@@ 77-82 (lines=6) @@
74
                break;
75
            }
76
        }
77
        foreach ($this->update_fields as $field => $value) {
78
            if ($value['name'] == $target_field) {
79
                array_splice($this->update_fields, $field + 1, 0, [$field => array_pop($this->update_fields)]);
80
                break;
81
            }
82
        }
83
    }
84
85
    /**
@@ 93-99 (lines=7) @@
90
    public function beforeField($target_field)
91
    {
92
        $key = 0;
93
        foreach ($this->create_fields as $field => $value) {
94
            if ($value['name'] == $target_field) {
95
                array_splice($this->create_fields, $key, 0, [$field => array_pop($this->create_fields)]);
96
                break;
97
            }
98
            $key++;
99
        }
100
        $key = 0;
101
        foreach ($this->update_fields as $field => $value) {
102
            if ($value['name'] == $target_field) {
@@ 101-107 (lines=7) @@
98
            $key++;
99
        }
100
        $key = 0;
101
        foreach ($this->update_fields as $field => $value) {
102
            if ($value['name'] == $target_field) {
103
                array_splice($this->update_fields, $key, 0, [$field => array_pop($this->update_fields)]);
104
                break;
105
            }
106
            $key++;
107
        }
108
    }
109
110
    /**