Skip to content

Commit

Permalink
refactor: reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
byawitz committed Jun 11, 2024
1 parent 0e8c129 commit 169bb86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SDK/Language/CLI.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ public function getFunctions(): array
{
return [
/** Return true if the entered service->method is enabled for a console preview link */
new TwigFunction('methodHaveConsolePreview', fn($method, $service) => preg_match('/^([Gg]et|[Ll]ist)/', $method)
new TwigFunction('hasConsolePreview', fn($method, $service) => preg_match('/^([Gg]et|[Ll]ist)/', $method)
&& !in_array(strtolower($method), $this->consoleIgnoreFunctions)
&& !in_array($service, $this->consoleIgnoreServices)),
];
Expand Down

0 comments on commit 169bb86

Please sign in to comment.