Skip to content

Commit

Permalink
Small readability fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin de Graaf committed Apr 3, 2019
1 parent 9edbfd2 commit 86ce19d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/BaseCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ public function getAll(): array
{
if ($this instanceof LocalResourceInterface) {
return $this->localValues;
} elseif ($this instanceof GlobalResourceInterface) {
}

if ($this instanceof GlobalResourceInterface) {
if (!isset($GLOBALS[$this->getResource()])) {
$GLOBALS[$this->getResource()] = [];
}
Expand Down

0 comments on commit 86ce19d

Please sign in to comment.