@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | // Locate possible ObjectManager |
52 | 52 | $objectManager = $this->managerRegistry->getManagerForClass($metadata->name); |
53 | 53 | |
54 | - if (!$objectManager) { |
|
54 | + if ( ! $objectManager) { |
|
55 | 55 | // No ObjectManager found, proceed with normal deserialization |
56 | 56 | return $this->fallbackConstructor->construct($visitor, $metadata, $data, $type, $context); |
57 | 57 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | } |
66 | 66 | |
67 | 67 | // Managed entity, check for proxy load |
68 | - if (!is_array($data)) { |
|
68 | + if ( ! is_array($data)) { |
|
69 | 69 | // Single identifier, load proxy |
70 | 70 | return $objectManager->getReference($metadata->name, $data); |
71 | 71 | } |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $identifierList = array(); |
76 | 76 | |
77 | 77 | foreach ($classMetadata->getIdentifierFieldNames() as $name) { |
78 | - if (!array_key_exists($name, $data)) { |
|
78 | + if ( ! array_key_exists($name, $data)) { |
|
79 | 79 | return $this->fallbackConstructor->construct($visitor, $metadata, $data, $type, $context); |
80 | 80 | } |
81 | 81 |
@@ -122,7 +122,7 @@ |
||
122 | 122 | private function getErrorMessage(FormError $error) |
123 | 123 | { |
124 | 124 | |
125 | - if ($this->translator === null){ |
|
125 | + if ($this->translator === null) { |
|
126 | 126 | return $error->getMessage(); |
127 | 127 | } |
128 | 128 |
@@ -122,7 +122,7 @@ |
||
122 | 122 | private function getErrorMessage(FormError $error) |
123 | 123 | { |
124 | 124 | |
125 | - if ($this->translator === null){ |
|
125 | + if ($this->translator === null) { |
|
126 | 126 | return $error->getMessage(); |
127 | 127 | } |
128 | 128 |
@@ -27,7 +27,7 @@ discard block |
||
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 |
||
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 |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | public function __construct($container, array $handlers = array()) |
30 | 30 | { |
31 | - if (!$container instanceof PsrContainerInterface && !$container instanceof ContainerInterface) { |
|
31 | + if ( ! $container instanceof PsrContainerInterface && ! $container instanceof ContainerInterface) { |
|
32 | 32 | 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))); |
33 | 33 | } |
34 | 34 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | return $this->initializedHandlers[$direction][$typeName][$format]; |
49 | 49 | } |
50 | 50 | |
51 | - if (!isset($this->handlers[$direction][$typeName][$format])) { |
|
51 | + if ( ! isset($this->handlers[$direction][$typeName][$format])) { |
|
52 | 52 | return null; |
53 | 53 | } |
54 | 54 |