chore: code cleanup with rector and php-cs-fixer
This commit is contained in:
@@ -18,8 +18,8 @@ class ErrorCodeExtension extends AbstractExtension
|
||||
public function getFunctions(): array
|
||||
{
|
||||
return [
|
||||
new TwigFunction('error_code', [$this, 'getErrorCode']),
|
||||
new TwigFunction('has_error_code', [$this, 'hasErrorCode']),
|
||||
new TwigFunction('error_code', $this->getErrorCode(...)),
|
||||
new TwigFunction('has_error_code', $this->hasErrorCode(...)),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user