Compare commits

...

2 Commits

Author SHA1 Message Date
Jerry Ma
be8eb90b86 cs fix (#166) 2023-09-08 22:12:59 +08:00
Jerry Ma
54e98666e7 Update ConsoleApplication.php 2023-09-08 22:03:40 +08:00
12 changed files with 12 additions and 33 deletions

View File

@@ -14,7 +14,7 @@ use Symfony\Component\Console\Command\ListCommand;
*/ */
class ConsoleApplication extends Application class ConsoleApplication extends Application
{ {
public const VERSION = '2.0.0'; public const VERSION = '2.0-rc6';
/** /**
* @throws \ReflectionException * @throws \ReflectionException

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