From add6ae6b4d27dce44c983bf15a81c67a611f6f2f Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Wed, 29 Nov 2023 21:16:49 -0600 Subject: [PATCH] phpcs --- src/Exception/CompilerException.php | 4 ++-- src/Operators/Arithmetical/ArithmeticalBaseOperator.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Exception/CompilerException.php b/src/Exception/CompilerException.php index 716b89171..6015223b7 100644 --- a/src/Exception/CompilerException.php +++ b/src/Exception/CompilerException.php @@ -35,8 +35,8 @@ public function __construct( string $message = '', ?array $extra = null, int $code = 0, - Exception | Throwable $previous = null) - { + Exception | Throwable $previous = null + ) { if (is_array($extra) && isset($extra['file'])) { $message .= ' in ' . $extra['file'] . ' on line ' . $extra['line']; } diff --git a/src/Operators/Arithmetical/ArithmeticalBaseOperator.php b/src/Operators/Arithmetical/ArithmeticalBaseOperator.php index 11f33e5bb..91bd8ba68 100644 --- a/src/Operators/Arithmetical/ArithmeticalBaseOperator.php +++ b/src/Operators/Arithmetical/ArithmeticalBaseOperator.php @@ -266,7 +266,7 @@ public function compile($expression, CompilationContext $compilationContext) default: throw new CompilerException('Operation is not supported between strings', $expression); } - + // no break case 'variable': $variableLeft = $compilationContext->symbolTable->getVariableForRead( @@ -576,7 +576,7 @@ public function compile($expression, CompilationContext $compilationContext) $expression ); } - + // no break case 'string': throw new CompilerException("Cannot operate string variables'", $expression);