mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 10:31:59 -04:00
Continue improving type hints
This commit is contained in:
parent
eb376c87bd
commit
703e1a7a03
73 changed files with 98 additions and 114 deletions
|
@ -1,14 +1,5 @@
|
|||
<?
|
||||
|
||||
use Exceptions\AppException;
|
||||
use Exceptions\ArtistNotFoundException;
|
||||
use Safe\DateTimeImmutable;
|
||||
use Safe\Exceptions\ExecException;
|
||||
use Safe\Exceptions\PcreException;
|
||||
use Safe\Exceptions\FilesystemException;
|
||||
use Safe\Exceptions\DatetimeException;
|
||||
use Safe\Exceptions\ArrayException;
|
||||
use Safe\Exceptions\MiscException;
|
||||
|
||||
use function Safe\apcu_fetch;
|
||||
use function Safe\exec;
|
||||
|
@ -24,13 +15,11 @@ use function Safe\usort;
|
|||
|
||||
class Library{
|
||||
/**
|
||||
* @param string $query
|
||||
* @param array<string> $tags
|
||||
* @param EbookSort $sort
|
||||
* @return array<Ebook>
|
||||
* @throws Exceptions\AppException
|
||||
*/
|
||||
public static function FilterEbooks(string $query = null, array $tags = [], EbookSort $sort = null){
|
||||
public static function FilterEbooks(string $query = null, array $tags = [], EbookSort $sort = null): array{
|
||||
$ebooks = Library::GetEbooks();
|
||||
$matches = $ebooks;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue