@@ -39,14 +39,14 @@ discard block |
||
39 | 39 | |
40 | 40 | // If the set type name is not an actual class, but a faked type for which a custom handler exists or |
41 | 41 | // object is not an instance of that class we do not modify it with this subscriber. |
42 | - $virtualType = !class_exists($type['name']) || !$object instanceof $type['name']; |
|
42 | + $virtualType = ! class_exists($type['name']) || ! $object instanceof $type['name']; |
|
43 | 43 | |
44 | 44 | if ( |
45 | 45 | $object instanceof PersistentCollection |
46 | 46 | || $object instanceof MongoDBPersistentCollection |
47 | 47 | || $object instanceof PHPCRPersistentCollection |
48 | 48 | ) { |
49 | - if (!$virtualType) { |
|
49 | + if ( ! $virtualType) { |
|
50 | 50 | $event->setType('ArrayCollection'); |
51 | 51 | } |
52 | 52 | |
@@ -55,13 +55,13 @@ discard block |
||
55 | 55 | |
56 | 56 | if ( |
57 | 57 | ($this->skipVirtualTypeInit && $virtualType) || |
58 | - (!$object instanceof Proxy && !$object instanceof LazyLoadingInterface) |
|
58 | + ( ! $object instanceof Proxy && ! $object instanceof LazyLoadingInterface) |
|
59 | 59 | ) { |
60 | 60 | return; |
61 | 61 | } |
62 | 62 | |
63 | 63 | // do not initialize the proxy if is going to be excluded by-class by some exclusion strategy |
64 | - if (false === $this->initializeExcluded && !$virtualType) { |
|
64 | + if (false === $this->initializeExcluded && ! $virtualType) { |
|
65 | 65 | $context = $event->getContext(); |
66 | 66 | $exclusionStrategy = $context->getExclusionStrategy(); |
67 | 67 | $metadata = $context->getMetadataFactory()->getMetadataForClass(get_parent_class($object)); |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | $object->__load(); |
77 | 77 | } |
78 | 78 | |
79 | - if (!$virtualType) { |
|
79 | + if ( ! $virtualType) { |
|
80 | 80 | $event->setType(get_parent_class($object), $type['params']); |
81 | 81 | } |
82 | 82 | } |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | $object = $event->getObject(); |
88 | 88 | |
89 | 89 | // is a virtual type or not an instance of? then there is no need to change the event name |
90 | - if (!class_exists($type['name']) || !$object instanceof $type['name']) { |
|
90 | + if ( ! class_exists($type['name']) || ! $object instanceof $type['name']) { |
|
91 | 91 | return; |
92 | 92 | } |
93 | 93 |