Issues (11)

src/TheInfrastructure/Test/TestClient.php (7 issues)

1
<?php declare(strict_types=1);
2
3
namespace Stratadox\CardGame\Infrastructure\Test;
4
5
final class TestClient
6
{
7
    private $clock;
8
    private $uri;
0 ignored issues
show
The private property $uri is not used, and could be removed.
Loading history...
9
    private $resource;
0 ignored issues
show
The private property $resource is not used, and could be removed.
Loading history...
10
11
    public function __construct(TestClock $clock)
12
    {
13
        $this->clock = $clock;
14
    }
15
16
    public function to(string $page, ?int $element = null): void
0 ignored issues
show
The parameter $page 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

16
    public function to(/** @scrutinizer ignore-unused */ string $page, ?int $element = null): 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...
The parameter $element 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

16
    public function to(string $page, /** @scrutinizer ignore-unused */ ?int $element = null): 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...
17
    {
18
19
    }
20
21
    public function do(string $action, array $parameters = []): void
0 ignored issues
show
The parameter $parameters 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

21
    public function do(string $action, /** @scrutinizer ignore-unused */ array $parameters = []): 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...
The parameter $action 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

21
    public function do(/** @scrutinizer ignore-unused */ string $action, array $parameters = []): 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...
22
    {
23
24
    }
25
26
    /**
27
     * @param string $property
28
     * @return int|float|bool|string|array
29
     */
30
    public function see(string $property)
0 ignored issues
show
The parameter $property 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

30
    public function see(/** @scrutinizer ignore-unused */ string $property)

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...
31
    {
32
        return 0;
33
    }
34
35
    /** @return string[] */
36
    public function flashMessages(): array
37
    {
38
        return [];
39
    }
40
}
41