Issues (15)

src/Concerns/Eventable.php (1 issue)

Severity
1
<?php
2
3
namespace Isswp101\Persimmon\Concerns;
4
5
use Isswp101\Persimmon\DTO\SearchResponse;
6
7
trait Eventable
8
{
9
    protected function saving(): bool
10
    {
11
        return true;
12
    }
13
14
    protected function saved(): void
15
    {
16
    }
17
18
    protected function deleting(): bool
19
    {
20
        return true;
21
    }
22
23
    protected function deleted(): void
24
    {
25
    }
26
27
    protected function searching(): bool
28
    {
29
        return true;
30
    }
31
32
    protected function searched(SearchResponse $response): void
0 ignored issues
show
The parameter $response 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

32
    protected function searched(/** @scrutinizer ignore-unused */ SearchResponse $response): void

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...
33
    {
34
    }
35
}
36