Skip to content

Commit f8dcb2c

Browse files
committed
improve get() method
1 parent 59a7e4a commit f8dcb2c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Presenter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ public function toJson() : string
178178
*/
179179
public function get() : array
180180
{
181+
if (count($this->generatedData) == 0) {
182+
$this->generatedData = $this->handle();
183+
}
181184
return $this->generatedData;
182185
}
183186

0 commit comments

Comments
 (0)