Skip to content

Commit 70dfd1b

Browse files
committed
fix: fix php-cs
1 parent 0eab798 commit 70dfd1b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/http/src/RouteDependency.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,11 @@ public function getAfterResolvingCallbacks(object $object): array
106106
public function getMethodParameters(string $controller, string $action, array $arguments): array
107107
{
108108
$signature = "{$controller}::{$action}";
109-
$dependencies = $this->getDependencies(
109+
return $this->getDependencies(
110110
$this->resolvedDefinitions[$signature] ?? $this->resolvedDefinitions[$signature] = $this->methodDefinitionCollector->getParameters($controller, $action),
111111
"{$controller}::{$action}",
112112
$arguments
113113
);
114-
115-
return $dependencies;
116114
}
117115

118116
/**
@@ -123,13 +121,11 @@ public function getMethodParameters(string $controller, string $action, array $a
123121
public function getClosureParameters(Closure $closure, array $arguments): array
124122
{
125123
$signature = spl_object_hash($closure);
126-
$dependencies = $this->getDependencies(
124+
return $this->getDependencies(
127125
$this->resolvedDefinitions[$signature] ?? $this->resolvedDefinitions[$signature] = $this->closureDefinitionCollector->getParameters($closure),
128126
'Closure',
129127
$arguments
130128
);
131-
132-
return $dependencies;
133129
}
134130

135131
/**

0 commit comments

Comments
 (0)