Skip to content
Snippets Groups Projects
Unverified Commit f375cfbe authored by Vadim Justus's avatar Vadim Justus Committed by GitHub
Browse files

Merge pull request #20 from vadimjustus/develop

#17 Remove return types from Get*EntityList classes in order to be co…
parents 61a2507a bf9f40a9
Branches
Tags
No related merge requests found
...@@ -39,7 +39,7 @@ class GetBlockEntryList ...@@ -39,7 +39,7 @@ class GetBlockEntryList
/** /**
* Prepare items array by transforming all configured entries into content entry data models * Prepare items array by transforming all configured entries into content entry data models
*/ */
private function prepare(): void private function prepare()
{ {
if (empty($this->items)) { if (empty($this->items)) {
$blocks = $this->configuration->getList()['blocks'] ?? []; $blocks = $this->configuration->getList()['blocks'] ?? [];
...@@ -53,7 +53,7 @@ class GetBlockEntryList ...@@ -53,7 +53,7 @@ class GetBlockEntryList
/** /**
* @return BlockEntryInterface[] * @return BlockEntryInterface[]
*/ */
public function get(): array public function get()
{ {
$this->prepare(); $this->prepare();
return $this->items; return $this->items;
......
...@@ -39,7 +39,7 @@ class GetPageEntryList ...@@ -39,7 +39,7 @@ class GetPageEntryList
/** /**
* Prepare items array by transforming all configured entries into content entry data models * Prepare items array by transforming all configured entries into content entry data models
*/ */
private function prepare(): void private function prepare()
{ {
if (empty($this->items)) { if (empty($this->items)) {
$pages = $this->configuration->getList()['pages'] ?? []; $pages = $this->configuration->getList()['pages'] ?? [];
...@@ -53,7 +53,7 @@ class GetPageEntryList ...@@ -53,7 +53,7 @@ class GetPageEntryList
/** /**
* @return PageEntryInterface[] * @return PageEntryInterface[]
*/ */
public function get(): array public function get()
{ {
$this->prepare(); $this->prepare();
return $this->items; return $this->items;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment