Passed
Push — master ( 7c7fa2...d7cd6a )
by Michael
04:35
created
src/Mapper/Definition/AnnotationDefinitionProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
     static protected function registerAnnotations()
43 43
     {
44 44
         if (self::$annotationsRegistered === false) {
45
-            AnnotationRegistry::registerFile(__DIR__ . '/Annotation/Relationship.php');
46
-            AnnotationRegistry::registerFile(__DIR__ . '/Annotation/Link.php');
45
+            AnnotationRegistry::registerFile(__DIR__.'/Annotation/Relationship.php');
46
+            AnnotationRegistry::registerFile(__DIR__.'/Annotation/Link.php');
47 47
 
48 48
             self::$annotationsRegistered = true;
49 49
         }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function getDefinition(string $class): Definition
75 75
     {
76
-        if (! isset($this->definitionCache[$class])) {
76
+        if (!isset($this->definitionCache[$class])) {
77 77
             $reflection = new \ReflectionClass($class);
78 78
 
79 79
             $this->definitionCache[$class] = $this->createDefinition($reflection);
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
     {
201 201
         if ($annotation->getter === null) {
202 202
             $name   = $relationship->getPropertyName();
203
-            $getter = 'get' . ucfirst($name);
203
+            $getter = 'get'.ucfirst($name);
204 204
 
205 205
             $relationship->setGetter($getter);
206 206
             return;
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
      */
234 234
     protected function createLink(LinkAnnotation $annotation): Link
235 235
     {
236
-        if (! preg_match(self::RESOURCE_PATTERN, $annotation->resource, $matches)) {
236
+        if (!preg_match(self::RESOURCE_PATTERN, $annotation->resource, $matches)) {
237 237
             throw new \LogicException(sprintf('Invalid resource definition: "%s"', $annotation->resource));
238 238
         }
239 239
 
Please login to merge, or discard this patch.