From a1ccdf931e88cfbd2cc0e4f51307bdae262c8efa Mon Sep 17 00:00:00 2001 From: Michael Aerni Date: Tue, 1 Jun 2021 17:02:17 +0200 Subject: [PATCH] Remove document style methods There is an open issue that has to be fixed first: https://github.com/chapter-three/AppleNewsAPI/issues/21 --- src/Article.php | 10 +++++----- src/Contracts/Template.php | 2 +- src/Template.php | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Article.php b/src/Article.php index 357eb95..ce42639 100644 --- a/src/Article.php +++ b/src/Article.php @@ -123,7 +123,7 @@ private function document(): Document $this->setAdvertisingSettings(); $this->setSubtitle(); $this->setMetadata(); - $this->setDocumentStyle(); + // $this->setDocumentStyle(); $this->addTextStyles(); return $this->document; @@ -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 { diff --git a/src/Contracts/Template.php b/src/Contracts/Template.php index 7c5f1cb..1893e2c 100644 --- a/src/Contracts/Template.php +++ b/src/Contracts/Template.php @@ -27,7 +27,7 @@ public function subtitle(): string; public function metadata(): Metadata; - public function documentStyle(): DocumentStyle; + // public function documentStyle(): DocumentStyle; public function textStyles(): array; } diff --git a/src/Template.php b/src/Template.php index a37526f..6f56050 100644 --- a/src/Template.php +++ b/src/Template.php @@ -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; }