Skip to content

Commit

Permalink
Remove document style methods
Browse files Browse the repository at this point in the history
There is an open issue that has to be fixed first: chapter-three/AppleNewsAPI#21
  • Loading branch information
aerni committed Jun 1, 2021
1 parent 8ebc477 commit a1ccdf9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/Article.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private function document(): Document
$this->setAdvertisingSettings();
$this->setSubtitle();
$this->setMetadata();
$this->setDocumentStyle();
// $this->setDocumentStyle();
$this->addTextStyles();

return $this->document;
Expand Down Expand Up @@ -178,10 +178,10 @@ private function setMetadata(): void
$this->document->setMetadata($metadata);
}

private function setDocumentStyle(): void
{
$this->document->setDocumentStyle($this->template->documentStyle());
}
// private function setDocumentStyle(): void
// {
// $this->document->setDocumentStyle($this->template->documentStyle());
// }

private function addTextStyles(): void
{
Expand Down
2 changes: 1 addition & 1 deletion src/Contracts/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function subtitle(): string;

public function metadata(): Metadata;

public function documentStyle(): DocumentStyle;
// public function documentStyle(): DocumentStyle;

public function textStyles(): array;
}
2 changes: 1 addition & 1 deletion src/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ abstract public function subtitle(): string;

abstract public function metadata(): Metadata;

abstract public function documentStyle(): DocumentStyle;
// abstract public function documentStyle(): DocumentStyle;

abstract public function textStyles(): array;
}

0 comments on commit a1ccdf9

Please sign in to comment.