Test Failed
Pull Request — master (#100)
by Alex
03:36
created
src/Providers/MetadataProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
 class MetadataProvider extends MetadataBaseProvider
20 20
 {
21
-    protected $multConstraints = [ '0..1' => ['1'], '1' => ['0..1', '*'], '*' => ['1', '*']];
21
+    protected $multConstraints = ['0..1' => ['1'], '1' => ['0..1', '*'], '*' => ['1', '*']];
22 22
     protected static $metaNAMESPACE = 'Data';
23 23
     protected static $relationCache;
24 24
     const POLYMORPHIC = 'polyMorphicPlaceholder';
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
         $knownKeys = array_keys($knownSide);
214 214
         $unknownKeys = array_keys($unknownSide);
215 215
         $dualKeys = array_intersect($knownKeys, $unknownKeys);
216
-        assert(count($hooks) == (count($unknownKeys) + count($knownKeys) - count($dualKeys)));
216
+        assert(count($hooks) == (count($unknownKeys)+count($knownKeys)-count($dualKeys)));
217 217
         // if either list is empty, bail out - there's nothing to do
218 218
         if (0 === count($knownSide) || 0 === count($unknownSide)) {
219 219
             return [];
Please login to merge, or discard this patch.
src/Query/LaravelQuery.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -340,12 +340,12 @@  discard block
 block discarded – undo
340 340
         $map = $raw->getMetadata();
341 341
 
342 342
         if (!array_key_exists($class, $map)) {
343
-            throw new \POData\Common\InvalidOperationException('Controller mapping missing for class '.$class.'.');
343
+            throw new \POData\Common\InvalidOperationException('Controller mapping missing for class ' . $class . '.');
344 344
         }
345 345
         $goal = $raw->getMapping($class, $verb);
346 346
         if (null == $goal) {
347 347
             throw new \POData\Common\InvalidOperationException(
348
-                'Controller mapping missing for '.$verb.' verb on class '.$class.'.'
348
+                'Controller mapping missing for ' . $verb . ' verb on class ' . $class . '.'
349 349
             );
350 350
         }
351 351
 
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
                 throw new ODataException($e->getMessage(), 500);
420 420
             }
421 421
         }
422
-        throw new ODataException('Target model not successfully '.$lastWord, 422);
422
+        throw new ODataException('Target model not successfully ' . $lastWord, 422);
423 423
     }
424 424
 
425 425
     /**
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
         }
463 463
         $outData = $result->getData();
464 464
         if (is_object($outData)) {
465
-            $outData = (array)$outData;
465
+            $outData = (array) $outData;
466 466
         }
467 467
 
468 468
         if (!is_array($outData)) {
@@ -586,7 +586,7 @@  discard block
 block discarded – undo
586 586
             $otherPropName = $this->getMetadataProvider()
587 587
                 ->resolveReverseProperty($sourceEntityInstance, $targetEntityInstance, $navPropName);
588 588
             if (null === $otherPropName) {
589
-                $msg = 'Bad navigation property, '.$navPropName.', on source model '.get_class($sourceEntityInstance);
589
+                $msg = 'Bad navigation property, ' . $navPropName . ', on source model ' . get_class($sourceEntityInstance);
590 590
                 throw new \InvalidArgumentException($msg);
591 591
             }
592 592
             $this->unhookSingleModel(
@@ -618,7 +618,7 @@  discard block
 block discarded – undo
618 618
         }
619 619
         $targType = $relation->getRelated();
620 620
         if (!$targetEntityInstance instanceof $targType) {
621
-            $msg = 'Target instance must be of type compatible with relation declared in method '.$navPropName;
621
+            $msg = 'Target instance must be of type compatible with relation declared in method ' . $navPropName;
622 622
             throw new \InvalidArgumentException($msg);
623 623
         }
624 624
         return $relation;
Please login to merge, or discard this patch.