Failed Conditions
Push — master ( 4014a4...c8c212 )
by Grégoire
03:02 queued 11s
created
lib/Doctrine/Persistence/Mapping/RuntimeReflectionService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function getParentClasses(string $class)
37 37
     {
38
-        if (! class_exists($class)) {
38
+        if (!class_exists($class)) {
39 39
             throw MappingException::nonExistingClass($class);
40 40
         }
41 41
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 
80 80
         if ($reflectionProperty->isPublic()) {
81 81
             $reflectionProperty = new RuntimePublicReflectionProperty($class, $property);
82
-        } elseif ($this->supportsTypedPropertiesWorkaround && ! array_key_exists($property, $this->getClass($class)->getDefaultProperties())) {
82
+        } elseif ($this->supportsTypedPropertiesWorkaround && !array_key_exists($property, $this->getClass($class)->getDefaultProperties())) {
83 83
             $reflectionProperty = new TypedNoDefaultReflectionProperty($class, $property);
84 84
         }
85 85
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Persistence/Mapping/RuntimeReflectionServiceTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,13 +40,13 @@
 block discarded – undo
40 40
     public function testGetParentClasses() : void
41 41
     {
42 42
         $classes = $this->reflectionService->getParentClasses(self::class);
43
-        self::assertTrue(count($classes) >= 1, 'The test class ' . self::class . ' should have at least one parent.');
43
+        self::assertTrue(count($classes) >= 1, 'The test class '.self::class.' should have at least one parent.');
44 44
     }
45 45
 
46 46
     public function testGetParentClassesForAbsentClass() : void
47 47
     {
48 48
         $this->expectException(MappingException::class);
49
-        $this->reflectionService->getParentClasses(__NAMESPACE__ . '\AbsentClass');
49
+        $this->reflectionService->getParentClasses(__NAMESPACE__.'\AbsentClass');
50 50
     }
51 51
 
52 52
     public function testGetMethods() : void
Please login to merge, or discard this patch.