Do some code quality check and fix #126

This commit is contained in:
crazywhalecc
2023-08-20 19:51:45 +08:00
committed by Jerry Ma
parent 9c57ed6439
commit c8fa767576
104 changed files with 1040 additions and 785 deletions

View File

@@ -6,7 +6,7 @@ namespace SPC\doctor;
class CheckResult
{
public function __construct(private bool $ok, private ?string $message = null, private string $fix_item = '', private array $fix_params = [])
public function __construct(private readonly bool $ok, private readonly ?string $message = null, private string $fix_item = '', private array $fix_params = [])
{
}
@@ -40,7 +40,7 @@ class CheckResult
return $this->ok;
}
public function setFixItem(string $fix_item = '', array $fix_params = [])
public function setFixItem(string $fix_item = '', array $fix_params = []): void
{
$this->fix_item = $fix_item;
$this->fix_params = $fix_params;