Skip to content

Commit 210b064

Browse files
committed
Only variables should be assigned by reference
1 parent e73a226 commit 210b064

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/VerifierServer/SS14PersistentState.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@ protected function initializeDatabase(): void
8888
public function &getVerifyList(bool $getLocalCache = false): array
8989
{
9090
if ($this->storageType === 'filesystem' || $getLocalCache) {
91-
return isset($this->verifyList)
92-
? $this->verifyList
93-
: $this->verifyList = self::loadJsonFile($this->getJsonPath());
91+
if (isset($this->verifyList)) return $this->verifyList;
92+
else {
93+
$this->verifyList = self::loadJsonFile($this->getJsonPath());
94+
return $this->verifyList;
95+
}
9496
}
9597
$stmt = $this->pdo->query("SELECT * FROM {$this->table_name}");
9698
if ($stmt === false) {

0 commit comments

Comments
 (0)