Passed
Push — master ( 2a2608...aa892a )
by Michael
02:56
created
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.
src/Mapper/Handler/LinkHandler/LinkHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 
115 115
         foreach ($definition->getParameters() as $name => $value)
116 116
         {
117
-            if (! preg_match('~@(?:(?<namespace>[a-z0-9_\.]+)\:)?(?<name>[a-z0-9_\.]+)~i', $value, $matches)) {
117
+            if (!preg_match('~@(?:(?<namespace>[a-z0-9_\.]+)\:)?(?<name>[a-z0-9_\.]+)~i', $value, $matches)) {
118 118
                 $resolved[$name] = $value;
119 119
                 continue;
120 120
             }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                 continue;
125 125
             }
126 126
 
127
-            if (! isset($scope[$matches['namespace']])) {
127
+            if (!isset($scope[$matches['namespace']])) {
128 128
                 throw new \LogicException(sprintf('Object "%s" not found in the scope.', $matches['namespace']));
129 129
             }
130 130
 
Please login to merge, or discard this patch.
src/Mapper/Definition/AnnotationDefinitionProvider.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -48,9 +48,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     {
164 164
         foreach ($reflection->getMethods() as $method)
165 165
         {
166
-            if (! $method->isPublic()) {
166
+            if (!$method->isPublic()) {
167 167
                 throw new \LogicException('Attribute annotation can be applied only to public method.');
168 168
             }
169 169
 
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
      */
308 308
     protected function processDataType(string $definition, Attribute $attribute)
309 309
     {
310
-        if (! preg_match(self::DATATYPE_PATTERN, $definition, $matches)) {
310
+        if (!preg_match(self::DATATYPE_PATTERN, $definition, $matches)) {
311 311
             throw new \LogicException(sprintf('Data-type definition "%s" is invalid.', $definition));
312 312
         }
313 313
 
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
 
365 365
         foreach (['get', 'is'] as $prefix)
366 366
         {
367
-            $getter = $prefix . ucfirst($name);
367
+            $getter = $prefix.ucfirst($name);
368 368
 
369 369
             if ($class->hasMethod($getter) && $class->getMethod($getter)->isPublic()) {
370 370
                 return $getter;
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
         }
373 373
 
374 374
         throw new \LogicException(sprintf(
375
-            'Getter-method for the property "%s" cannot be resolved automatically. ' .
375
+            'Getter-method for the property "%s" cannot be resolved automatically. '.
376 376
             'Probably there is no get%2$s() or is%2$s() method or it is not public.',
377 377
             $name, ucfirst($name)
378 378
         ));
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
      */
403 403
     protected function createLink(LinkAnnotation $annotation): Link
404 404
     {
405
-        if (! preg_match(self::RESOURCE_PATTERN, $annotation->resource, $matches)) {
405
+        if (!preg_match(self::RESOURCE_PATTERN, $annotation->resource, $matches)) {
406 406
             throw new \LogicException(sprintf('Invalid resource definition: "%s"', $annotation->resource));
407 407
         }
408 408
 
Please login to merge, or discard this patch.
src/Mapper/Handler/DataTypeHandler/DateTimeHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function toResource($value, array $parameters)
19 19
     {
20
-        if (! $value instanceof \DateTimeInterface) {
20
+        if (!$value instanceof \DateTimeInterface) {
21 21
             $value = new \DateTimeImmutable((string) $value);
22 22
         }
23 23
 
Please login to merge, or discard this patch.