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

src/Crud.php 1 location

@@ 1180-1201 (lines=22) @@
1177
        return $this->add('update_fields', $field);
1178
    }
1179
1180
    public function fields()
1181
    {
1182
        if (!$this->entry && !empty($this->create_fields))
1183
        {
1184
            $this->syncRelations('create_fields');
1185
1186
            return $this->create_fields;
1187
        }
1188
1189
        if ($this->entry && !empty($this->update_fields))
1190
        {
1191
            $this->syncRelations('update_fields');
1192
            $this->addFieldsValue();
1193
1194
            return $this->update_fields;
1195
        }
1196
1197
        $this->syncRelations('fields');
1198
        $this->addFieldsValue();
1199
1200
        return $this->sort('fields');
1201
    }
1202
1203
    public function orderFields($order)
1204
    {

src/ToneCrud.php 1 location

@@ 206-227 (lines=22) @@
203
        return $this->add('updateFields', $field);
204
    }
205
206
    public function fields()
207
    {
208
        if (!$this->item && !empty($this->createFields))
209
        {
210
            $this->syncRelations('createFields');
211
212
            return $this->createFields;
213
        }
214
215
        if ($this->item && !empty($this->updateFields))
216
        {
217
            $this->syncRelations('updateFields');
218
            $this->addFieldsValue();
219
220
            return $this->updateFields;
221
        }
222
223
        $this->syncRelations('fields');
224
        $this->addFieldsValue();
225
226
        return $this->sort('fields');
227
    }
228
229
    public function orderFields($order)
230
    {