Skip to content

Commit ad398bf

Browse files
committed
Align logic with naming
1 parent 3463db7 commit ad398bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Builder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ public function execute(Blueprint $blueprint, Filesystem $filesystem, string $dr
1414
}
1515

1616
$contents = $filesystem->get($draft);
17-
$using_indexes = preg_match('/^\s+indexes:\R/m', $contents) !== 1;
17+
$using_indexes = preg_match('/^\s+indexes:\R/m', $contents) === 1;
1818

19-
$tokens = $blueprint->parse($contents, $using_indexes);
19+
$tokens = $blueprint->parse($contents, !$using_indexes);
2020
$tokens['cache'] = $cache['models'] ?? [];
2121
$registry = $blueprint->analyze($tokens);
2222

0 commit comments

Comments
 (0)