Passed
Pull Request — master (#1587)
by
unknown
03:32
created
src/Handler/HandlerRegistry.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,10 +25,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Handler/LazyHandlerRegistry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.