Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ewilan-riviere authored and github-actions[bot] committed Jul 11, 2024
1 parent 5e794e7 commit e283a5d
Show file tree
Hide file tree
Showing 20 changed files with 35 additions and 70 deletions.
3 changes: 1 addition & 2 deletions src/Creator/EbookCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ class EbookCreator
public function __construct(
protected string $path,
protected ArchiveZipCreate $archive,
) {
}
) {}

public static function create(string $path): ArchiveZipCreate
{
Expand Down
3 changes: 1 addition & 2 deletions src/Ebook.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ protected function __construct(
protected bool $isBadFile = false,
protected ?EbookParser $parser = null,
protected bool $hasParser = false,
) {
}
) {}

/**
* Read an ebook file.
Expand Down
3 changes: 1 addition & 2 deletions src/EbookCover.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
3 changes: 1 addition & 2 deletions src/Formats/Cba/Parser/CbamTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ class CbamTemplate extends CbaTemplate

protected function __construct(
protected XmlReader $xml,
) {
}
) {}

public static function make(XmlReader $xml): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Formats/Djvu/Parser/DjvuParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ class DjvuParser
{
protected function __construct(
protected string $path,
) {
}
) {}

public static function make(string $path): DjvuParser
{
Expand Down
3 changes: 1 addition & 2 deletions src/Formats/EbookModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ abstract class EbookModule
{
protected function __construct(
protected Ebook $ebook,
) {
}
) {}

abstract public static function make(Ebook $ebook): self;

Expand Down
3 changes: 1 addition & 2 deletions src/Formats/EbookParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
3 changes: 1 addition & 2 deletions src/Formats/Epub/Parser/EpubChapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ protected function __construct(
protected ?string $label = null,
protected ?string $source = null,
protected ?string $content = null,
) {
}
) {}

/**
* @param EpubHtml[] $html
Expand Down
3 changes: 1 addition & 2 deletions src/Formats/Epub/Parser/EpubContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ class EpubContainer

protected function __construct(
protected XmlReader $xml,
) {
}
) {}

public static function make(string $content): self
{
Expand Down
9 changes: 3 additions & 6 deletions src/Formats/Epub/Parser/NcxItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ class NcxItem

protected function __construct(
protected XmlReader $xml,
) {
}
) {}

public static function make(string $content): self
{
Expand Down Expand Up @@ -162,8 +161,7 @@ class NcxItemHead
protected function __construct(
protected ?string $name = null,
protected ?string $content = null,
) {
}
) {}

public static function make(array $xml): self
{
Expand Down Expand Up @@ -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
{
Expand Down
3 changes: 1 addition & 2 deletions src/Formats/Epub/Parser/OpfItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ class OpfItem

protected function __construct(
protected XmlReader $xml,
) {
}
) {}

public static function make(string $content, ?string $filename = null): self
{
Expand Down
27 changes: 9 additions & 18 deletions src/Formats/Fb2/Parser/Fb2Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -279,8 +278,7 @@ public function __construct(
public ?Fb2MetaDescriptionTitle $title = null,
public ?Fb2MetaDescriptionDocument $document = null,
public ?Fb2MetaDescriptionPublish $publish = null,
) {
}
) {}
}

class Fb2MetaDescriptionTitle
Expand All @@ -297,8 +295,7 @@ public function __construct(
public ?string $keywords = null,
public ?Fb2MetaSequence $sequence = null,
public ?array $annotation = null,
) {
}
) {}
}

class Fb2MetaDescriptionDocument
Expand All @@ -312,8 +309,7 @@ public function __construct(
public ?string $date = null,
public ?string $id = null,
public ?string $version = null,
) {
}
) {}
}

class Fb2MetaDescriptionPublish
Expand All @@ -322,41 +318,36 @@ public function __construct(
public ?string $publisher = null,
public ?string $year = null,
public ?string $isbn = null,
) {
}
) {}
}

class Fb2MetaBinaryItem
{
public function __construct(
public ?array $attributes = null,
public ?string $content = null,
) {
}
) {}
}

class Fb2MetaAuthor
{
public function __construct(
public ?string $firstName = null,
public ?string $lastName = null,
) {
}
) {}
}

class Fb2MetaSequence
{
public function __construct(
public ?string $name = null,
public ?string $number = null,
) {
}
) {}
}

class Fb2MetaCoverpage
{
public function __construct(
public ?string $href = null,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Formats/Mobi/Parser/MobiImages.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ class MobiImages
protected function __construct(
protected Stream $stream,
protected array $items = [],
) {
}
) {}

public static function make(string $path): ?self
{
Expand Down
18 changes: 6 additions & 12 deletions src/Formats/Mobi/Parser/MobiParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -240,8 +239,7 @@ public function __construct(
public int $textLength = 0,
public int $records = 0,
public int $recordSize = 0,
) {
}
) {}
}

class PalmRecord
Expand All @@ -250,8 +248,7 @@ public function __construct(
public int $offset = 0,
public int $attributes = 0,
public int $id = 0
) {
}
) {}
}

class MobiHeader
Expand All @@ -262,8 +259,7 @@ public function __construct(
public int $encoding = 0,
public int $id = 0,
public int $fileVersion = 0,
) {
}
) {}
}

class ExthHeader
Expand All @@ -274,8 +270,7 @@ class ExthHeader
public function __construct(
public int $length = 0,
public array $records = [],
) {
}
) {}
}

class ExthRecord
Expand All @@ -284,6 +279,5 @@ public function __construct(
public int $type = 0,
public int $length = 0,
public ?string $data = null,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Models/BookAuthor.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ class BookAuthor
public function __construct(
protected ?string $name = null,
protected ?string $role = null,
) {
}
) {}

public function getName(): ?string
{
Expand Down
3 changes: 1 addition & 2 deletions src/Models/BookDescription.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ class BookDescription
{
protected function __construct(
protected ?string $rawDescription = null,
) {
}
) {}

public static function make(?string $description): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Models/BookMeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ class BookMeta
public function __construct(
protected ?string $name = null,
protected ?string $contents = null,
) {
}
) {}

/**
* Get the meta name.
Expand Down
3 changes: 1 addition & 2 deletions src/Models/ComicMeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ public function __construct(
protected ?MangaEnum $manga = null,
protected ?string $mainCharacterOrTeam = null,
protected ?string $format = null,
) {
}
) {}

/**
* @return string[]
Expand Down
3 changes: 1 addition & 2 deletions src/Models/MetaTitle.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,7 @@ protected function __construct(
protected ?string $seriesDeterminer = null,

protected bool $useIntl = true,
) {
}
) {}

/**
* Create a new MetaTitle instance from an Ebook.
Expand Down
3 changes: 1 addition & 2 deletions src/Utils/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ class Stream
protected function __construct(
protected $path,
protected $resource,
) {
}
) {}

/**
* Creates a new instance of Stream.
Expand Down

0 comments on commit e283a5d

Please sign in to comment.