Passed
Push — master ( 146f63...0d342d )
by Michael
02:44
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
             $this->definitionCache[$class] = $this->createDefinition($class);
78 78
         }
79 79
 
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Mapper/Handler/RelationshipHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Document/ErrorObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -250,7 +250,7 @@
 block discarded – undo
250 250
      */
251 251
     public function __toString(): string
252 252
     {
253
-        return 'Error-object with ' . (
253
+        return 'Error-object with '.(
254 254
             $this->id === null
255 255
                 ? 'no ID'
256 256
                 : sprintf('ID: "%s"', $this->id)
Please login to merge, or discard this patch.