Skip to content

Commit 7682dca

Browse files
Convert Yoda style conditions to human style conditions
1 parent d6ee43d commit 7682dca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DataFields.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ private function parseData($dataString)
7070
$trimmedLine = trim($line);
7171
if ($trimmedLine === '---' || $trimmedLine === '') {
7272
// Block completed; process it
73-
if (0 < sizeof($field)) {
73+
if (sizeof($field) > 0) {
7474
$output[] = $field;
7575
}
7676
$field = array();
@@ -100,7 +100,7 @@ private function parseData($dataString)
100100
}
101101

102102
// process final block
103-
if (0 < sizeof($field)) {
103+
if (sizeof($field) > 0) {
104104
$output[] = $field;
105105
}
106106

0 commit comments

Comments
 (0)