@@ -280,7 +280,7 @@ |
||
280 | 280 | $targUnknown = $targRels[$principalPoly ? $dependentType : $principalType]; |
281 | 281 | $targProperty = $principalPoly ? $relation['dependentProp'] : $relation['principalProp']; |
282 | 282 | $msg = 'Specified unknown-side property ' . $targProperty |
283 | - . ' not found in polymorphic relation map'; |
|
283 | + . ' not found in polymorphic relation map'; |
|
284 | 284 | assert(in_array($targProperty, $targUnknown), $msg); |
285 | 285 | |
286 | 286 | $targType = $principalPoly ? 'dependentRSet' : 'principalRSet'; |
@@ -18,7 +18,7 @@ discard block |
||
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 |
||
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 []; |
@@ -340,12 +340,12 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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; |