Skip to content

Commit 08eccd8

Browse files
committed
♻️ thanks phpstan for pointing out these can never be null
1 parent 3ae6b2c commit 08eccd8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Browserless.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ public function getFormattedOptions(): array
110110
if ($this->getFooter() !== null) {
111111
$pdfOptions['footerTemplate'] = $this->getFooter();
112112
}
113-
if ($this->getFormat() !== null) {
114-
$pdfOptions['format'] = $this->getFormat();
115-
}
113+
114+
$pdfOptions['format'] = $this->getFormat();
115+
116116
if ($this->getHeader() !== null) {
117117
$pdfOptions['headerTemplate'] = $this->getHeader();
118118
}
@@ -136,9 +136,9 @@ public function getFormattedOptions(): array
136136
if ($this->getPreferCSSPageSize() !== null) {
137137
$pdfOptions['preferCSSPageSize'] = $this->getPreferCSSPageSize();
138138
}
139-
if ($this->getPrintBackground() !== null) {
140-
$pdfOptions['printBackground'] = $this->getPrintBackground();
141-
}
139+
140+
$pdfOptions['printBackground'] = $this->getPrintBackground();
141+
142142
if ($this->getScale() !== null) {
143143
$pdfOptions['scale'] = $this->getScale();
144144
}

0 commit comments

Comments
 (0)