for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Stratadox\CardGame\Infrastructure\Test;
final class TestClient
{
private $clock;
private $uri;
$uri
private $resource;
$resource
public function __construct(TestClock $clock)
$this->clock = $clock;
}
public function to(string $page, ?int $element = null): void
$page
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
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.
$element
public function to(string $page, /** @scrutinizer ignore-unused */ ?int $element = null): void
public function do(string $action, array $parameters = []): void
$parameters
public function do(string $action, /** @scrutinizer ignore-unused */ array $parameters = []): void
$action
public function do(/** @scrutinizer ignore-unused */ string $action, array $parameters = []): void
/**
* @param string $property
* @return int|float|bool|string|array
*/
public function see(string $property)
$property
public function see(/** @scrutinizer ignore-unused */ string $property)
return 0;
/** @return string[] */
public function flashMessages(): array
return [];