Skip to content

Commit

Permalink
Simplify JitProcessor's addition section
Browse files Browse the repository at this point in the history
  • Loading branch information
Piagrammist committed Oct 3, 2024
1 parent 834e17d commit 1fb07f8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Processors/JitProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,9 @@ public function apply($options): void
}
if (\count($toAdd)) {
$toAdd = \implode('', prefixArray(\PHP_EOL . \PHP_EOL, $toAdd));
$this->patterns->basicEntry(
$enableCli->getFullNameRegex(),
"\\2$toAdd",
'\d',
$enableCli->toComment()
);
$new = clone $enableCli;
$new->setValue("\\2$toAdd");
$this->patterns->entry($new);
}
Logger::info(Lang::get('jit_processed'));
}
Expand Down

0 comments on commit 1fb07f8

Please sign in to comment.