@@ -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 | $reflection = new \ReflectionClass($class); |
| 78 | 78 | |
| 79 | 79 | $this->definitionCache[$class] = $this->createDefinition($reflection); |
@@ -200,7 +200,7 @@ discard block |
||
| 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 |
||
| 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 | |