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

@@ -5,7 +5,6 @@ declare(strict_types=1);
namespace SPC\store;
use SPC\exception\FileSystemException;
use SPC\exception\RuntimeException;
use SPC\exception\WrongUsageException;
/**
@@ -83,7 +82,6 @@ class Config
/**
* @throws FileSystemException
* @throws RuntimeException
* @throws WrongUsageException
*/
public static function getExt(string $name, ?string $key = null, mixed $default = null)
@@ -126,6 +124,9 @@ class Config
return self::$ext;
}
/**
* @throws FileSystemException
*/
public static function getSources(): array
{
if (self::$source === null) {