Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Commit

Permalink
fixed CS
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Apr 8, 2019
1 parent d96a923 commit d25f0de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions EventListener/ControllerListener.php
Expand Up @@ -62,9 +62,9 @@ public function onKernelController(FilterControllerEvent $event)

$configurations = [];
foreach (array_merge(array_keys($classConfigurations), array_keys($methodConfigurations)) as $key) {
if (!array_key_exists($key, $classConfigurations)) {
if (!\array_key_exists($key, $classConfigurations)) {
$configurations[$key] = $methodConfigurations[$key];
} elseif (!array_key_exists($key, $methodConfigurations)) {
} elseif (!\array_key_exists($key, $methodConfigurations)) {
$configurations[$key] = $classConfigurations[$key];
} else {
if (\is_array($classConfigurations[$key])) {
Expand Down
2 changes: 1 addition & 1 deletion Request/ArgumentNameConverter.php
Expand Up @@ -47,7 +47,7 @@ public function getControllerArguments(FilterControllerArgumentsEvent $event)
break;
}

if (!array_key_exists($index, $controllerArguments)) {
if (!\array_key_exists($index, $controllerArguments)) {
throw new \LogicException(sprintf('Could not find an argument value for argument %d of the controller.', $index));
}

Expand Down
2 changes: 1 addition & 1 deletion Request/ParamConverter/DoctrineParamConverter.php
Expand Up @@ -249,7 +249,7 @@ private function findDataByMapMethodSignature($em, $class, $repositoryMethod, $c
$repository = $em->getRepository($class);
$ref = new \ReflectionMethod($repository, $repositoryMethod);
foreach ($ref->getParameters() as $parameter) {
if (array_key_exists($parameter->name, $criteria)) {
if (\array_key_exists($parameter->name, $criteria)) {
$arguments[] = $criteria[$parameter->name];
} elseif ($parameter->isDefaultValueAvailable()) {
$arguments[] = $parameter->getDefaultValue();
Expand Down

0 comments on commit d25f0de

Please sign in to comment.