Completed
Pull Request — master (#844)
by Christian
05:04
created
src/JMS/Serializer/EventDispatcher/LazyEventDispatcher.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     public function __construct($container)
29 29
     {
30
-        if (!$container instanceof PsrContainerInterface && !$container instanceof ContainerInterface) {
30
+        if ( ! $container instanceof PsrContainerInterface && ! $container instanceof ContainerInterface) {
31 31
             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)));
32 32
         }
33 33
 
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
         $listeners = parent::initializeListeners($eventName, $loweredClass, $format);
43 43
 
44 44
         foreach ($listeners as &$listener) {
45
-            if (!is_array($listener) || !is_string($listener[0])) {
45
+            if ( ! is_array($listener) || ! is_string($listener[0])) {
46 46
                 continue;
47 47
             }
48 48
 
49
-            if (!$this->container->has($listener[0])) {
49
+            if ( ! $this->container->has($listener[0])) {
50 50
                 continue;
51 51
             }
52 52
 
Please login to merge, or discard this patch.