@@ -25,10 +25,10 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | switch ($direction) { |
| 27 | 27 | case GraphNavigatorInterface::DIRECTION_DESERIALIZATION: |
| 28 | - return 'deserialize' . $type . 'From' . $format; |
|
| 28 | + return 'deserialize'.$type.'From'.$format; |
|
| 29 | 29 | |
| 30 | 30 | case GraphNavigatorInterface::DIRECTION_SERIALIZATION: |
| 31 | - return 'serialize' . $type . 'To' . $format; |
|
| 31 | + return 'serialize'.$type.'To'.$format; |
|
| 32 | 32 | |
| 33 | 33 | default: |
| 34 | 34 | throw new LogicException(sprintf('The direction %s does not exist; see GraphNavigatorInterface::DIRECTION_??? constants.', json_encode($direction))); |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | public function registerSubscribingHandler(SubscribingHandlerInterface $handler): void |
| 44 | 44 | { |
| 45 | 45 | foreach ($handler->getSubscribingMethods() as $methodData) { |
| 46 | - if (!isset($methodData['type'], $methodData['format'])) { |
|
| 46 | + if ( ! isset($methodData['type'], $methodData['format'])) { |
|
| 47 | 47 | throw new RuntimeException(sprintf('For each subscribing method a "type" and "format" attribute must be given, but only got "%s" for %s.', implode('" and "', array_keys($methodData)), \get_class($handler))); |
| 48 | 48 | } |
| 49 | 49 | |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function __construct($container, array $handlers = []) |
| 28 | 28 | { |
| 29 | - if (!$container instanceof PsrContainerInterface && !$container instanceof ContainerInterface) { |
|
| 29 | + if ( ! $container instanceof PsrContainerInterface && ! $container instanceof ContainerInterface) { |
|
| 30 | 30 | throw new InvalidArgumentException(sprintf('The container must be an instance of %s or %s (%s given).', PsrContainerInterface::class, ContainerInterface::class, \is_object($container) ? \get_class($container) : \gettype($container))); |
| 31 | 31 | } |
| 32 | 32 | |