Skip to content

Commit c672761

Browse files
authored
Format code. (#5069)
1 parent 356fbf4 commit c672761

6 files changed

+6
-6
lines changed

src/Aop/Aspect.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public static function isMatchClassRule(string $target, string $rule): array
123123

124124
public static function isMatch(string $class, string $method, string $rule): bool
125125
{
126-
[$isMatch,] = self::isMatchClassRule($class . '::' . $method, $rule);
126+
[$isMatch] = self::isMatchClassRule($class . '::' . $method, $rule);
127127

128128
return $isMatch;
129129
}

src/Aop/ProxyManager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ protected function getProxyFilePath($className)
101101
protected function isMatch(string $rule, string $target): bool
102102
{
103103
if (str_contains($rule, '::')) {
104-
[$rule,] = explode('::', $rule);
104+
[$rule] = explode('::', $rule);
105105
}
106106
if (! str_contains($rule, '*') && $rule === $target) {
107107
return true;

src/Resolver/FactoryResolver.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ public function __construct(private ContainerInterface $container, private Resol
2828
*
2929
* @param FactoryDefinition $definition object that defines how the value should be obtained
3030
* @param array $parameters optional parameters to use to build the entry
31-
* @throws InvalidDefinitionException if the definition cannot be resolved
3231
* @return mixed value obtained from the definition
32+
* @throws InvalidDefinitionException if the definition cannot be resolved
3333
*/
3434
public function resolve(DefinitionInterface $definition, array $parameters = [])
3535
{

src/Resolver/ObjectResolver.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ public function __construct(private ContainerInterface $container, private Resol
3636
*
3737
* @param DefinitionInterface $definition object that defines how the value should be obtained
3838
* @param array $parameters optional parameters to use to build the entry
39+
* @return mixed value obtained from the definition
3940
* @throws InvalidDefinitionException
4041
* @throws DependencyException
41-
* @return mixed value obtained from the definition
4242
*/
4343
public function resolve(DefinitionInterface $definition, array $parameters = [])
4444
{

src/Resolver/ResolverDispatcher.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public function __construct(private ContainerInterface $container)
3434
*
3535
* @param DefinitionInterface $definition object that defines how the value should be obtained
3636
* @param array $parameters optional parameters to use to build the entry
37-
* @throws InvalidDefinitionException if the definition cannot be resolved
3837
* @return mixed value obtained from the definition
38+
* @throws InvalidDefinitionException if the definition cannot be resolved
3939
*/
4040
public function resolve(DefinitionInterface $definition, array $parameters = [])
4141
{

src/Resolver/ResolverInterface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ interface ResolverInterface
2121
*
2222
* @param DefinitionInterface $definition object that defines how the value should be obtained
2323
* @param array $parameters optional parameters to use to build the entry
24-
* @throws InvalidDefinitionException if the definition cannot be resolved
2524
* @return mixed value obtained from the definition
25+
* @throws InvalidDefinitionException if the definition cannot be resolved
2626
*/
2727
public function resolve(DefinitionInterface $definition, array $parameters = []);
2828

0 commit comments

Comments
 (0)