mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 19:06:49 -04:00
Bump PHPStan check level to max and add final round of type hints
This commit is contained in:
parent
110c091a7b
commit
70ae877dd8
15 changed files with 86 additions and 52 deletions
|
@ -16,16 +16,13 @@ try{
|
|||
|
||||
// Do we have the ebook cached?
|
||||
try{
|
||||
/** @var Ebook $ebook */
|
||||
$ebook = apcu_fetch('ebook-' . $wwwFilesystemPath);
|
||||
}
|
||||
catch(Safe\Exceptions\ApcuException){
|
||||
$ebook = new Ebook($wwwFilesystemPath);
|
||||
}
|
||||
|
||||
if($ebook === null){
|
||||
throw new Exceptions\InvalidFileException();
|
||||
}
|
||||
|
||||
switch($format){
|
||||
case EbookFormat::Kepub:
|
||||
$downloadUrl = $ebook->KepubUrl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue