From e283a5dc54c9d9cbbfaf199e0f760a468097495e Mon Sep 17 00:00:00 2001 From: ewilan-riviere Date: Thu, 11 Jul 2024 10:28:57 +0000 Subject: [PATCH] Fix styling --- src/Creator/EbookCreator.php | 3 +-- src/Ebook.php | 3 +-- src/EbookCover.php | 3 +-- src/Formats/Cba/Parser/CbamTemplate.php | 3 +-- src/Formats/Djvu/Parser/DjvuParser.php | 3 +-- src/Formats/EbookModule.php | 3 +-- src/Formats/EbookParser.php | 3 +-- src/Formats/Epub/Parser/EpubChapter.php | 3 +-- src/Formats/Epub/Parser/EpubContainer.php | 3 +-- src/Formats/Epub/Parser/NcxItem.php | 9 +++----- src/Formats/Epub/Parser/OpfItem.php | 3 +-- src/Formats/Fb2/Parser/Fb2Parser.php | 27 ++++++++--------------- src/Formats/Mobi/Parser/MobiImages.php | 3 +-- src/Formats/Mobi/Parser/MobiParser.php | 18 +++++---------- src/Models/BookAuthor.php | 3 +-- src/Models/BookDescription.php | 3 +-- src/Models/BookMeta.php | 3 +-- src/Models/ComicMeta.php | 3 +-- src/Models/MetaTitle.php | 3 +-- src/Utils/Stream.php | 3 +-- 20 files changed, 35 insertions(+), 70 deletions(-) diff --git a/src/Creator/EbookCreator.php b/src/Creator/EbookCreator.php index ac10f31..a3fb399 100644 --- a/src/Creator/EbookCreator.php +++ b/src/Creator/EbookCreator.php @@ -10,8 +10,7 @@ class EbookCreator public function __construct( protected string $path, protected ArchiveZipCreate $archive, - ) { - } + ) {} public static function create(string $path): ArchiveZipCreate { diff --git a/src/Ebook.php b/src/Ebook.php index ba5bd22..3799487 100755 --- a/src/Ebook.php +++ b/src/Ebook.php @@ -84,8 +84,7 @@ protected function __construct( protected bool $isBadFile = false, protected ?EbookParser $parser = null, protected bool $hasParser = false, - ) { - } + ) {} /** * Read an ebook file. diff --git a/src/EbookCover.php b/src/EbookCover.php index 64753df..ab241e0 100755 --- a/src/EbookCover.php +++ b/src/EbookCover.php @@ -7,8 +7,7 @@ class EbookCover protected function __construct( protected ?string $path = null, protected ?string $contents = null, - ) { - } + ) {} public static function make(?string $path = null, ?string $contents = null): ?self { diff --git a/src/Formats/Cba/Parser/CbamTemplate.php b/src/Formats/Cba/Parser/CbamTemplate.php index 1cb8603..3c3f185 100644 --- a/src/Formats/Cba/Parser/CbamTemplate.php +++ b/src/Formats/Cba/Parser/CbamTemplate.php @@ -113,8 +113,7 @@ class CbamTemplate extends CbaTemplate protected function __construct( protected XmlReader $xml, - ) { - } + ) {} public static function make(XmlReader $xml): self { diff --git a/src/Formats/Djvu/Parser/DjvuParser.php b/src/Formats/Djvu/Parser/DjvuParser.php index 1e9c44e..adefc36 100644 --- a/src/Formats/Djvu/Parser/DjvuParser.php +++ b/src/Formats/Djvu/Parser/DjvuParser.php @@ -6,8 +6,7 @@ class DjvuParser { protected function __construct( protected string $path, - ) { - } + ) {} public static function make(string $path): DjvuParser { diff --git a/src/Formats/EbookModule.php b/src/Formats/EbookModule.php index 713afc6..91c633c 100644 --- a/src/Formats/EbookModule.php +++ b/src/Formats/EbookModule.php @@ -9,8 +9,7 @@ abstract class EbookModule { protected function __construct( protected Ebook $ebook, - ) { - } + ) {} abstract public static function make(Ebook $ebook): self; diff --git a/src/Formats/EbookParser.php b/src/Formats/EbookParser.php index 9306361..433c91b 100644 --- a/src/Formats/EbookParser.php +++ b/src/Formats/EbookParser.php @@ -22,8 +22,7 @@ protected function __construct( protected ?Fb2Module $fb2 = null, protected ?PdfModule $pdf = null, protected ?string $type = null, - ) { - } + ) {} public static function make(EbookModule $module): self { diff --git a/src/Formats/Epub/Parser/EpubChapter.php b/src/Formats/Epub/Parser/EpubChapter.php index 9c742bc..7377b60 100644 --- a/src/Formats/Epub/Parser/EpubChapter.php +++ b/src/Formats/Epub/Parser/EpubChapter.php @@ -11,8 +11,7 @@ protected function __construct( protected ?string $label = null, protected ?string $source = null, protected ?string $content = null, - ) { - } + ) {} /** * @param EpubHtml[] $html diff --git a/src/Formats/Epub/Parser/EpubContainer.php b/src/Formats/Epub/Parser/EpubContainer.php index eb863fe..76e6d50 100644 --- a/src/Formats/Epub/Parser/EpubContainer.php +++ b/src/Formats/Epub/Parser/EpubContainer.php @@ -15,8 +15,7 @@ class EpubContainer protected function __construct( protected XmlReader $xml, - ) { - } + ) {} public static function make(string $content): self { diff --git a/src/Formats/Epub/Parser/NcxItem.php b/src/Formats/Epub/Parser/NcxItem.php index 66d93d5..4664084 100644 --- a/src/Formats/Epub/Parser/NcxItem.php +++ b/src/Formats/Epub/Parser/NcxItem.php @@ -23,8 +23,7 @@ class NcxItem protected function __construct( protected XmlReader $xml, - ) { - } + ) {} public static function make(string $content): self { @@ -162,8 +161,7 @@ class NcxItemHead protected function __construct( protected ?string $name = null, protected ?string $content = null, - ) { - } + ) {} public static function make(array $xml): self { @@ -201,8 +199,7 @@ protected function __construct( protected ?string $label = null, protected ?string $src = null, protected ?string $class = null, - ) { - } + ) {} public static function make(array $xml): self { diff --git a/src/Formats/Epub/Parser/OpfItem.php b/src/Formats/Epub/Parser/OpfItem.php index 12cfb77..a06a1b1 100644 --- a/src/Formats/Epub/Parser/OpfItem.php +++ b/src/Formats/Epub/Parser/OpfItem.php @@ -62,8 +62,7 @@ class OpfItem protected function __construct( protected XmlReader $xml, - ) { - } + ) {} public static function make(string $content, ?string $filename = null): self { diff --git a/src/Formats/Fb2/Parser/Fb2Parser.php b/src/Formats/Fb2/Parser/Fb2Parser.php index e12a3ed..0549eda 100644 --- a/src/Formats/Fb2/Parser/Fb2Parser.php +++ b/src/Formats/Fb2/Parser/Fb2Parser.php @@ -18,8 +18,7 @@ protected function __construct( protected ?array $body = null, protected ?array $binary = null, protected ?string $cover = null, - ) { - } + ) {} public static function make(string $path): self { @@ -279,8 +278,7 @@ public function __construct( public ?Fb2MetaDescriptionTitle $title = null, public ?Fb2MetaDescriptionDocument $document = null, public ?Fb2MetaDescriptionPublish $publish = null, - ) { - } + ) {} } class Fb2MetaDescriptionTitle @@ -297,8 +295,7 @@ public function __construct( public ?string $keywords = null, public ?Fb2MetaSequence $sequence = null, public ?array $annotation = null, - ) { - } + ) {} } class Fb2MetaDescriptionDocument @@ -312,8 +309,7 @@ public function __construct( public ?string $date = null, public ?string $id = null, public ?string $version = null, - ) { - } + ) {} } class Fb2MetaDescriptionPublish @@ -322,8 +318,7 @@ public function __construct( public ?string $publisher = null, public ?string $year = null, public ?string $isbn = null, - ) { - } + ) {} } class Fb2MetaBinaryItem @@ -331,8 +326,7 @@ class Fb2MetaBinaryItem public function __construct( public ?array $attributes = null, public ?string $content = null, - ) { - } + ) {} } class Fb2MetaAuthor @@ -340,8 +334,7 @@ class Fb2MetaAuthor public function __construct( public ?string $firstName = null, public ?string $lastName = null, - ) { - } + ) {} } class Fb2MetaSequence @@ -349,14 +342,12 @@ class Fb2MetaSequence public function __construct( public ?string $name = null, public ?string $number = null, - ) { - } + ) {} } class Fb2MetaCoverpage { public function __construct( public ?string $href = null, - ) { - } + ) {} } diff --git a/src/Formats/Mobi/Parser/MobiImages.php b/src/Formats/Mobi/Parser/MobiImages.php index 25d02f5..f83fe5d 100644 --- a/src/Formats/Mobi/Parser/MobiImages.php +++ b/src/Formats/Mobi/Parser/MobiImages.php @@ -9,8 +9,7 @@ class MobiImages protected function __construct( protected Stream $stream, protected array $items = [], - ) { - } + ) {} public static function make(string $path): ?self { diff --git a/src/Formats/Mobi/Parser/MobiParser.php b/src/Formats/Mobi/Parser/MobiParser.php index 417a3d1..fe337fc 100644 --- a/src/Formats/Mobi/Parser/MobiParser.php +++ b/src/Formats/Mobi/Parser/MobiParser.php @@ -24,8 +24,7 @@ protected function __construct( protected ?ExthHeader $exthHeader = null, protected ?MobiImages $images = null, protected bool $isValid = false, - ) { - } + ) {} public static function make(string $path): ?self { @@ -240,8 +239,7 @@ public function __construct( public int $textLength = 0, public int $records = 0, public int $recordSize = 0, - ) { - } + ) {} } class PalmRecord @@ -250,8 +248,7 @@ public function __construct( public int $offset = 0, public int $attributes = 0, public int $id = 0 - ) { - } + ) {} } class MobiHeader @@ -262,8 +259,7 @@ public function __construct( public int $encoding = 0, public int $id = 0, public int $fileVersion = 0, - ) { - } + ) {} } class ExthHeader @@ -274,8 +270,7 @@ class ExthHeader public function __construct( public int $length = 0, public array $records = [], - ) { - } + ) {} } class ExthRecord @@ -284,6 +279,5 @@ public function __construct( public int $type = 0, public int $length = 0, public ?string $data = null, - ) { - } + ) {} } diff --git a/src/Models/BookAuthor.php b/src/Models/BookAuthor.php index d330ff4..6f15b25 100644 --- a/src/Models/BookAuthor.php +++ b/src/Models/BookAuthor.php @@ -7,8 +7,7 @@ class BookAuthor public function __construct( protected ?string $name = null, protected ?string $role = null, - ) { - } + ) {} public function getName(): ?string { diff --git a/src/Models/BookDescription.php b/src/Models/BookDescription.php index f47bf47..6a3b293 100644 --- a/src/Models/BookDescription.php +++ b/src/Models/BookDescription.php @@ -11,8 +11,7 @@ class BookDescription { protected function __construct( protected ?string $rawDescription = null, - ) { - } + ) {} public static function make(?string $description): self { diff --git a/src/Models/BookMeta.php b/src/Models/BookMeta.php index 4364bfd..5c48992 100644 --- a/src/Models/BookMeta.php +++ b/src/Models/BookMeta.php @@ -7,8 +7,7 @@ class BookMeta public function __construct( protected ?string $name = null, protected ?string $contents = null, - ) { - } + ) {} /** * Get the meta name. diff --git a/src/Models/ComicMeta.php b/src/Models/ComicMeta.php index 57050a5..7df061b 100644 --- a/src/Models/ComicMeta.php +++ b/src/Models/ComicMeta.php @@ -40,8 +40,7 @@ public function __construct( protected ?MangaEnum $manga = null, protected ?string $mainCharacterOrTeam = null, protected ?string $format = null, - ) { - } + ) {} /** * @return string[] diff --git a/src/Models/MetaTitle.php b/src/Models/MetaTitle.php index 39c3730..a953648 100644 --- a/src/Models/MetaTitle.php +++ b/src/Models/MetaTitle.php @@ -293,8 +293,7 @@ protected function __construct( protected ?string $seriesDeterminer = null, protected bool $useIntl = true, - ) { - } + ) {} /** * Create a new MetaTitle instance from an Ebook. diff --git a/src/Utils/Stream.php b/src/Utils/Stream.php index 50fab32..eae9a16 100644 --- a/src/Utils/Stream.php +++ b/src/Utils/Stream.php @@ -7,8 +7,7 @@ class Stream protected function __construct( protected $path, protected $resource, - ) { - } + ) {} /** * Creates a new instance of Stream.