mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
cs fix (#166)
This commit is contained in:
parent
54e98666e7
commit
be8eb90b86
@ -4,6 +4,4 @@ declare(strict_types=1);
|
||||
|
||||
namespace SPC\builder\traits;
|
||||
|
||||
trait LibraryTrait
|
||||
{
|
||||
}
|
||||
trait LibraryTrait {}
|
||||
|
||||
@ -14,6 +14,5 @@ class AsCheckItem
|
||||
public ?string $limit_os = null,
|
||||
public int $level = 100,
|
||||
public bool $manual = false,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
}
|
||||
|
||||
@ -7,7 +7,5 @@ namespace SPC\doctor;
|
||||
#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
|
||||
class AsFixItem
|
||||
{
|
||||
public function __construct(public string $name)
|
||||
{
|
||||
}
|
||||
public function __construct(public string $name) {}
|
||||
}
|
||||
|
||||
@ -6,9 +6,7 @@ namespace SPC\doctor;
|
||||
|
||||
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
|
||||
{
|
||||
|
||||
@ -4,6 +4,4 @@ declare(strict_types=1);
|
||||
|
||||
namespace SPC\exception;
|
||||
|
||||
class DownloaderException extends \Exception
|
||||
{
|
||||
}
|
||||
class DownloaderException extends \Exception {}
|
||||
|
||||
@ -4,6 +4,4 @@ declare(strict_types=1);
|
||||
|
||||
namespace SPC\exception;
|
||||
|
||||
class FileSystemException extends \Exception
|
||||
{
|
||||
}
|
||||
class FileSystemException extends \Exception {}
|
||||
|
||||
@ -4,6 +4,4 @@ declare(strict_types=1);
|
||||
|
||||
namespace SPC\exception;
|
||||
|
||||
class InvalidArgumentException extends \Exception
|
||||
{
|
||||
}
|
||||
class InvalidArgumentException extends \Exception {}
|
||||
|
||||
@ -4,6 +4,4 @@ declare(strict_types=1);
|
||||
|
||||
namespace SPC\exception;
|
||||
|
||||
class RuntimeException extends \Exception
|
||||
{
|
||||
}
|
||||
class RuntimeException extends \Exception {}
|
||||
|
||||
@ -4,6 +4,4 @@ declare(strict_types=1);
|
||||
|
||||
namespace SPC\exception;
|
||||
|
||||
class ValidationException extends \Exception
|
||||
{
|
||||
}
|
||||
class ValidationException extends \Exception {}
|
||||
|
||||
@ -4,6 +4,4 @@ declare(strict_types=1);
|
||||
|
||||
namespace SPC\exception;
|
||||
|
||||
class WrongUsageException extends \Exception
|
||||
{
|
||||
}
|
||||
class WrongUsageException extends \Exception {}
|
||||
|
||||
@ -13,9 +13,7 @@ class CustomExt
|
||||
{
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user