Passed
Push — master ( 10fe16...12671c )
by Michael
02:49
created
src/Mapper/Handler/TypeHandler/ClassBasedTypeHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     {
52 52
         $class = get_class($object);
53 53
 
54
-        if (! isset($this->resolvedCache[$class])) {
54
+        if (!isset($this->resolvedCache[$class])) {
55 55
             $this->resolvedCache[$class] = $this->resolveType($class);
56 56
         }
57 57
 
Please login to merge, or discard this patch.
src/Mapper/Definition/AnnotationDefinitionProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
     static protected function registerAnnotations()
42 42
     {
43 43
         if (self::$annotationsRegistered === false) {
44
-            AnnotationRegistry::registerFile(__DIR__ . '/Annotation/Relationship.php');
45
-            AnnotationRegistry::registerFile(__DIR__ . '/Annotation/Link.php');
44
+            AnnotationRegistry::registerFile(__DIR__.'/Annotation/Relationship.php');
45
+            AnnotationRegistry::registerFile(__DIR__.'/Annotation/Link.php');
46 46
 
47 47
             self::$annotationsRegistered = true;
48 48
         }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public function getDefinition(string $class): Definition
74 74
     {
75
-        if (! isset($this->definitionCache[$class])) {
75
+        if (!isset($this->definitionCache[$class])) {
76 76
             $this->definitionCache[$class] = $this->createDefinition($class);
77 77
         }
78 78
 
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     {
179 179
         if ($annotation->getter === null) {
180 180
             $name   = $relationship->getPropertyName();
181
-            $getter = 'get' . ucfirst($name);
181
+            $getter = 'get'.ucfirst($name);
182 182
 
183 183
             $relationship->setGetter($getter);
184 184
             return;
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
         }
202 202
 
203 203
         if ($annotation->idProperty !== null) {
204
-            $getter = 'get' . ucfirst($annotation->idProperty);
204
+            $getter = 'get'.ucfirst($annotation->idProperty);
205 205
 
206 206
             $relationship->setIdentifierGetter($getter);
207 207
             return;
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
      */
233 233
     protected function createLink(LinkAnnotation $annotation): Link
234 234
     {
235
-        if (! preg_match(self::RESOURCE_PATTERN, $annotation->resource, $matches)) {
235
+        if (!preg_match(self::RESOURCE_PATTERN, $annotation->resource, $matches)) {
236 236
             throw new \LogicException(sprintf('Invalid resource definition: "%s"', $annotation->resource));
237 237
         }
238 238
 
Please login to merge, or discard this patch.