@@ -42,8 +42,8 @@ discard block |
||
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 |
||
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 | $this->definitionCache[$class] = $this->createDefinition($class); |
78 | 78 | } |
79 | 79 | |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | { |
194 | 194 | if ($annotation->getter === null) { |
195 | 195 | $name = $relationship->getPropertyName(); |
196 | - $getter = 'get' . ucfirst($name); |
|
196 | + $getter = 'get'.ucfirst($name); |
|
197 | 197 | |
198 | 198 | $relationship->setGetter($getter); |
199 | 199 | return; |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | */ |
227 | 227 | protected function createLink(LinkAnnotation $annotation): Link |
228 | 228 | { |
229 | - if (! preg_match(self::RESOURCE_PATTERN, $annotation->resource, $matches)) { |
|
229 | + if (!preg_match(self::RESOURCE_PATTERN, $annotation->resource, $matches)) { |
|
230 | 230 | throw new \LogicException(sprintf('Invalid resource definition: "%s"', $annotation->resource)); |
231 | 231 | } |
232 | 232 |
@@ -71,7 +71,7 @@ |
||
71 | 71 | */ |
72 | 72 | protected function createRelationship($object, RelationshipDefinition $definition, MappingContext $context): AbstractRelationship |
73 | 73 | { |
74 | - if (! $definition->isDataIncluded()) { |
|
74 | + if (!$definition->isDataIncluded()) { |
|
75 | 75 | return new NoDataRelationship(); |
76 | 76 | } |
77 | 77 |