This commit is contained in:
Jerry Ma 2023-09-08 22:12:59 +08:00 committed by GitHub
parent 54e98666e7
commit be8eb90b86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 11 additions and 32 deletions

View File

@ -4,6 +4,4 @@ declare(strict_types=1);
namespace SPC\builder\traits; namespace SPC\builder\traits;
trait LibraryTrait trait LibraryTrait {}
{
}

View File

@ -14,6 +14,5 @@ class AsCheckItem
public ?string $limit_os = null, public ?string $limit_os = null,
public int $level = 100, public int $level = 100,
public bool $manual = false, public bool $manual = false,
) { ) {}
}
} }

View File

@ -7,7 +7,5 @@ namespace SPC\doctor;
#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)] #[\Attribute(\Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
class AsFixItem class AsFixItem
{ {
public function __construct(public string $name) public function __construct(public string $name) {}
{
}
} }

View File

@ -6,9 +6,7 @@ namespace SPC\doctor;
class CheckResult class CheckResult
{ {
public function __construct(private readonly bool $ok, private readonly ?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 = []) {}
{
}
public static function fail(string $message, string $fix_item = '', array $fix_params = []): CheckResult public static function fail(string $message, string $fix_item = '', array $fix_params = []): CheckResult
{ {

View File

@ -4,6 +4,4 @@ declare(strict_types=1);
namespace SPC\exception; namespace SPC\exception;
class DownloaderException extends \Exception class DownloaderException extends \Exception {}
{
}

View File

@ -4,6 +4,4 @@ declare(strict_types=1);
namespace SPC\exception; namespace SPC\exception;
class FileSystemException extends \Exception class FileSystemException extends \Exception {}
{
}

View File

@ -4,6 +4,4 @@ declare(strict_types=1);
namespace SPC\exception; namespace SPC\exception;
class InvalidArgumentException extends \Exception class InvalidArgumentException extends \Exception {}
{
}

View File

@ -4,6 +4,4 @@ declare(strict_types=1);
namespace SPC\exception; namespace SPC\exception;
class RuntimeException extends \Exception class RuntimeException extends \Exception {}
{
}

View File

@ -4,6 +4,4 @@ declare(strict_types=1);
namespace SPC\exception; namespace SPC\exception;
class ValidationException extends \Exception class ValidationException extends \Exception {}
{
}

View File

@ -4,6 +4,4 @@ declare(strict_types=1);
namespace SPC\exception; namespace SPC\exception;
class WrongUsageException extends \Exception class WrongUsageException extends \Exception {}
{
}

View File

@ -13,9 +13,7 @@ class CustomExt
{ {
private static array $custom_ext_class = []; private static array $custom_ext_class = [];
public function __construct(protected string $ext_name) public function __construct(protected string $ext_name) {}
{
}
/** /**
* Load all custom extension classes * Load all custom extension classes