GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Setup Failed
Push — master ( ab8466...84e839 )
by Pierre-Luc
02:43
created

SoftDeletes::bootSoftDeletes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace fuitad\LaravelCassandra\Eloquent;
4
5
use Exception;
6
7
trait SoftDeletes
8
{
9
    use \Illuminate\Database\Eloquent\SoftDeletes;
10
11
    /**
12
     * Boot the soft deleting trait for a model.
13
     *
14
     * @return void
15
     */
16
    public static function bootSoftDeletes()
17
    {
18
        throw new Exception('Not implemented');
19
        static::addGlobalScope(new SoftDeletingScope);
0 ignored issues
show
Unused Code introduced by
static::addGlobalScope(n...t\SoftDeletingScope()); does not seem to be reachable.

This check looks for unreachable code. It uses sophisticated control flow analysis techniques to find statements which will never be executed.

Unreachable code is most often the result of return, die or exit statements that have been added for debug purposes.

function fx() {
    try {
        doSomething();
        return true;
    }
    catch (\Exception $e) {
        return false;
    }

    return false;
}

In the above example, the last return false will never be executed, because a return statement has already been met in every possible execution path.

Loading history...
20
    }
21
22
    /**
23
     * @inheritdoc
24
     */
25
    public function getQualifiedDeletedAtColumn()
26
    {
27
        return $this->getDeletedAtColumn();
28
    }
29
30
    /**
31
     * Determine if the model instance has been soft-deleted.
32
     *
33
     * @return bool
34
     */
35
    public function trashed()
36
    {
37
        return $this->{$this->getDeletedAtColumn()} != '';
38
    }
39
40
}
41