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

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