From c4f377d53ce049955ed055a9317cd69e331aef52 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Fri, 23 Feb 2024 01:07:34 +0000 Subject: [PATCH] Apply fixes from StyleCI --- app/src/Authorize/AccessConditionEvaluator.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/Authorize/AccessConditionEvaluator.php b/app/src/Authorize/AccessConditionEvaluator.php index a9ec4b6..763c48e 100644 --- a/app/src/Authorize/AccessConditionEvaluator.php +++ b/app/src/Authorize/AccessConditionEvaluator.php @@ -108,17 +108,17 @@ public function leaveNode(Node $node) $value = $this->resolveParamPath($argString); $currentArgInfo['type'] = 'parameter'; $currentArgInfo['resolved_value'] = $value; - // Resolve arrays + // Resolve arrays } elseif ($arg->value instanceof \PhpParser\Node\Expr\Array_) { $value = $this->resolveArray($arg->value); $currentArgInfo['type'] = 'array'; $currentArgInfo['resolved_value'] = print_r($value, true); - // Resolve strings + // Resolve strings } elseif ($arg->value instanceof \PhpParser\Node\Scalar\String_) { $value = $arg->value->value; $currentArgInfo['type'] = 'string'; $currentArgInfo['resolved_value'] = $value; - // Resolve numbers + // Resolve numbers } elseif ($arg->value instanceof \PhpParser\Node\Scalar\DNumber) { $value = $arg->value->value; $currentArgInfo['type'] = 'float'; @@ -127,7 +127,7 @@ public function leaveNode(Node $node) $value = $arg->value->value; $currentArgInfo['type'] = 'integer'; $currentArgInfo['resolved_value'] = $value; - // Anything else is simply interpreted as its literal string value + // Anything else is simply interpreted as its literal string value } else { $value = $argString; $currentArgInfo['type'] = 'unknown'; @@ -214,7 +214,7 @@ private function resolveParamPath($path) if (is_array($value) && isset($value[$token])) { $value = $value[$token]; continue; - // @phpstan-ignore-next-line Allow variable property for this use + // @phpstan-ignore-next-line Allow variable property for this use } elseif (is_object($value) && isset($value->$token)) { // @phpstan-ignore-next-line Allow variable property for this use $value = $value->$token;