Completed
Pull Request — 1.4.x (#106)
by Grégoire
05:25 queued 03:08
created
lib/Doctrine/Persistence/Mapping/RuntimeReflectionService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function getParentClasses($class)
35 35
     {
36
-        if (! class_exists($class)) {
36
+        if (!class_exists($class)) {
37 37
             throw MappingException::nonExistingClass($class);
38 38
         }
39 39
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
         if ($reflectionProperty->isPublic()) {
79 79
             $reflectionProperty = new RuntimePublicReflectionProperty($class, $property);
80
-        } elseif ($this->supportsTypedPropertiesWorkaround && ! array_key_exists($property, $this->getClass($class)->getDefaultProperties())) {
80
+        } elseif ($this->supportsTypedPropertiesWorkaround && !array_key_exists($property, $this->getClass($class)->getDefaultProperties())) {
81 81
             $reflectionProperty = new TypedNoDefaultReflectionProperty($class, $property);
82 82
         }
83 83
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Persistence/ManagerRegistryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 
161 161
     private function getManagerFactory()
162 162
     {
163
-        return function (string $name) {
163
+        return function(string $name) {
164 164
             $mock     = $this->createMock(ObjectManager::class);
165 165
             $driver   = $this->createMock(MappingDriver::class);
166 166
             $metadata = $this->createMock(ClassMetadata::class);
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 
206 206
     protected function getService($name)
207 207
     {
208
-        if (! isset($this->services[$name])) {
208
+        if (!isset($this->services[$name])) {
209 209
             $this->services[$name] = call_user_func($this->managerFactory, $name);
210 210
         }
211 211
 
Please login to merge, or discard this patch.