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.

Issues (4568)

src/Observers/DataRoleObserverClearCache.php (7 issues)

1
<?php
2
0 ignored issues
show
Missing file doc comment
Loading history...
3
namespace BristolSU\ControlDB\Observers;
4
5
use BristolSU\ControlDB\Cache\DataRole as DataRoleCache;
6
use BristolSU\ControlDB\Contracts\Models\DataRole;
7
use Illuminate\Contracts\Cache\Repository;
8
9
class DataRoleObserverClearCache
0 ignored issues
show
Missing doc comment for class DataRoleObserverClearCache
Loading history...
10
{
11
12
    /**
0 ignored issues
show
Missing short description in doc comment
Loading history...
13
     * @var Repository
14
     */
15
    private $cache;
0 ignored issues
show
Private member variable "cache" must be prefixed with an underscore
Loading history...
16
17 6
    public function __construct(Repository $cache)
0 ignored issues
show
Missing doc comment for function __construct()
Loading history...
18
    {
19 6
        $this->cache = $cache;
20 6
    }
21
22 4
    public function update(DataRole $oldDataRole, DataRole $newDataRole)
0 ignored issues
show
The parameter $oldDataRole is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

22
    public function update(/** @scrutinizer ignore-unused */ DataRole $oldDataRole, DataRole $newDataRole)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Missing doc comment for function update()
Loading history...
23
    {
24 4
        $this->cache->forget(DataRoleCache::class . '@getById:' . $newDataRole->id());
25 4
    }
26
27
}