@@ -48,9 +48,9 @@ discard block |
||
| 48 | 48 | static protected function registerAnnotations() |
| 49 | 49 | { |
| 50 | 50 | if (self::$annotationsRegistered === false) { |
| 51 | - AnnotationRegistry::registerFile(__DIR__ . '/Annotation/Relationship.php'); |
|
| 52 | - AnnotationRegistry::registerFile(__DIR__ . '/Annotation/Attribute.php'); |
|
| 53 | - AnnotationRegistry::registerFile(__DIR__ . '/Annotation/Link.php'); |
|
| 51 | + AnnotationRegistry::registerFile(__DIR__.'/Annotation/Relationship.php'); |
|
| 52 | + AnnotationRegistry::registerFile(__DIR__.'/Annotation/Attribute.php'); |
|
| 53 | + AnnotationRegistry::registerFile(__DIR__.'/Annotation/Link.php'); |
|
| 54 | 54 | |
| 55 | 55 | self::$annotationsRegistered = true; |
| 56 | 56 | } |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | public function getDefinition(string $class): Definition |
| 82 | 82 | { |
| 83 | - if (! isset($this->definitionCache[$class])) { |
|
| 83 | + if (!isset($this->definitionCache[$class])) { |
|
| 84 | 84 | $reflection = new \ReflectionClass($class); |
| 85 | 85 | |
| 86 | 86 | $this->definitionCache[$class] = $this->createDefinition($reflection); |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | */ |
| 215 | 215 | protected function processDataType(string $definition, Attribute $attribute) |
| 216 | 216 | { |
| 217 | - if (! preg_match(self::DATATYPE_PATTERN, $definition, $matches)) { |
|
| 217 | + if (!preg_match(self::DATATYPE_PATTERN, $definition, $matches)) { |
|
| 218 | 218 | throw new \LogicException(sprintf('Data-type definition "%s" is invalid.', $definition)); |
| 219 | 219 | } |
| 220 | 220 | |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | |
| 272 | 272 | foreach (['get', 'is'] as $prefix) |
| 273 | 273 | { |
| 274 | - $getter = $prefix . ucfirst($name); |
|
| 274 | + $getter = $prefix.ucfirst($name); |
|
| 275 | 275 | |
| 276 | 276 | if ($class->hasMethod($getter) && $class->getMethod($getter)->isPublic()) { |
| 277 | 277 | return $getter; |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | } |
| 280 | 280 | |
| 281 | 281 | throw new \LogicException(sprintf( |
| 282 | - 'Getter-method for the property "%s" cannot be resolved automatically. ' . |
|
| 282 | + 'Getter-method for the property "%s" cannot be resolved automatically. '. |
|
| 283 | 283 | 'Probably there is no get%2$s() or is%2$s() method or it is not public.', |
| 284 | 284 | $name, ucfirst($name) |
| 285 | 285 | )); |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | */ |
| 310 | 310 | protected function createLink(LinkAnnotation $annotation): Link |
| 311 | 311 | { |
| 312 | - if (! preg_match(self::RESOURCE_PATTERN, $annotation->resource, $matches)) { |
|
| 312 | + if (!preg_match(self::RESOURCE_PATTERN, $annotation->resource, $matches)) { |
|
| 313 | 313 | throw new \LogicException(sprintf('Invalid resource definition: "%s"', $annotation->resource)); |
| 314 | 314 | } |
| 315 | 315 | |