Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:kiwilan/php-ebook into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ewilan-riviere committed Jul 28, 2024
2 parents 26e022d + 614aa7e commit 8874af4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Formats/Epub/Parser/EpubHtml.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class EpubHtml

public static function make(?string $html, ?string $filename): self
{
$self = new self();
$self = new self;

if (! $html || ! $filename) {
return $self;
Expand Down
4 changes: 2 additions & 2 deletions src/Formats/Epub/Parser/NcxItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ protected function __construct(

public static function make(array $xml): self
{
$self = new self();
$self = new self;
$self->name = $xml['name'] ?? null;
$self->content = $xml['content'] ?? null;

Expand Down Expand Up @@ -203,7 +203,7 @@ protected function __construct(

public static function make(array $xml): self
{
$self = new self();
$self = new self;

$self->label = $xml['navLabel']['text'] ?? null;
$self->src = $xml['content']['@attributes']['src'] ?? null;
Expand Down
2 changes: 1 addition & 1 deletion src/Formats/Mobi/Parser/MobiParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private function parse(): self
$this->palmRecords[] = $record;
}

$this->palmDOCHeader = new PalmDOCHeader();
$this->palmDOCHeader = new PalmDOCHeader;
$this->stream->seek($this->palmRecords[0]->offset);
$this->palmDOCHeader->compression = $this->stream->binaryToDecimal($this->stream->read(2));
$this->stream->read(2);
Expand Down

0 comments on commit 8874af4

Please sign in to comment.