Skip to content

Commit

Permalink
Fix CS by spaces after opening parentheses in DI Reflector
Browse files Browse the repository at this point in the history
  • Loading branch information
finwe committed Feb 20, 2024
1 parent fcb11d4 commit 783df41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DI/Utils/Reflector.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ public static function getMessageHandlerMessage(string $class, array $options):
throw new LogicalException(sprintf('Handler must have "%s::%s()" method.', $class, $options['method']));
}

if ($rcMethod->getNumberOfParameters() !== 1 && !$rc->implementsInterface( BatchHandlerInterface::class)) {
if ($rcMethod->getNumberOfParameters() !== 1 && !$rc->implementsInterface(BatchHandlerInterface::class)) {
throw new LogicalException(sprintf('Only one parameter is allowed in "%s::%s()."', $class, $options['method']));
}

if ($rc->implementsInterface( BatchHandlerInterface::class)) {
if ($rc->implementsInterface(BatchHandlerInterface::class)) {
if ($rcMethod->getNumberOfParameters() !== 2) {
throw new LogicalException(sprintf('Exactly two parameters are required in "%s::%s()."', $class, $options['method']));
}
Expand Down

0 comments on commit 783df41

Please sign in to comment.