Skip to content

Commit 128cbb9

Browse files
committed
rector code suggestions
1 parent 167d6ea commit 128cbb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/View/View.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ protected function parseFragments(string $output, array $fragments): array
106106
preg_match_all('/@\[\[fragmentStart="([^"]+)"\]\]|@\[\[fragmentEnd="([^"]+)"\]\]/', $output, $matches, PREG_OFFSET_CAPTURE);
107107

108108
// Return empty array if no matches
109-
if (count($matches[0]) === 0) {
109+
if ($matches[0] === []) {
110110
return $results;
111111
}
112112

0 commit comments

Comments
 (0)