Skip to content

Commit 0b32505

Browse files
Use best practice for array emptiness check
1 parent a6f9fbb commit 0b32505

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Store/FileStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function read()
5050

5151
$contents = Reader::read($this->filePaths, $this->shortCircuit);
5252

53-
if ($contents) {
53+
if (count($contents) > 0) {
5454
return implode("\n", $contents);
5555
}
5656

0 commit comments

Comments
 (0)