Skip to content

Commit

Permalink
cs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
awurth committed Dec 2, 2023
1 parent 9f35b98 commit c47a1e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@
'cast_spaces' => [
'space' => 'none',
],
'compact_nullable_typehint' => true,
'compact_nullable_type_declaration' => true,
'declare_strict_types' => true,
'native_function_invocation' => [
'include' => ['@internal'],
],
'no_superfluous_elseif' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'nullable_type_declaration_for_default_null_value' => false,
'ordered_imports' => [
'imports_order' => [
'class',
Expand Down
4 changes: 2 additions & 2 deletions src/Twig/LegacyValidatorExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ public function getValue(string $key, mixed $context = null): mixed
{
foreach ($this->asserter->getData() as $validatedValue) {
if (
$validatedValue->getValidation()->getProperty() === $key &&
(null === $context || $validatedValue->getValidation()->getContext() === $context)
$validatedValue->getValidation()->getProperty() === $key
&& (null === $context || $validatedValue->getValidation()->getContext() === $context)
) {
return $validatedValue->getValue();
}
Expand Down

0 comments on commit c47a1e9

Please sign in to comment.