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

Test Failed
Pull Request — master (#3395)
by
unknown
12:24
created

Delete::addBulkDeleteButton()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Backpack\CRUD\app\Library\CrudPanel\Traits;
4
5
trait Delete
6
{
7
    /*
8
    |--------------------------------------------------------------------------
9
    |                                   DELETE
10
    |--------------------------------------------------------------------------
11
    */
12
13
    /**
14
     * Delete a row from the database.
15
     *
16
     * @param int $id The id of the item to be deleted.
17
     *
18
     * @throws \Illuminate\Database\Eloquent\ModelNotFoundException if the model was not found.
19
     *
20
     * TODO: should this delete items with relations to it too?
21
     *
22
     * @return bool True if the item was deleted.
23
     */
24
    public function delete($id)
25
    {
26
        return (string) $this->model->findOrFail($id)->delete();
0 ignored issues
show
Bug Best Practice introduced by
The expression return (string)$this->mo...ndOrFail($id)->delete() returns the type string which is incompatible with the documented return type boolean.
Loading history...
27
    }
28
}
29