@@ -135,7 +135,7 @@ |
||
| 135 | 135 | $stub = clone $this->knownSides[$knownType][$key]; |
| 136 | 136 | $isMulti = ($stub->getMultiplicity()->getValue() == AssociationStubRelationType::MANY); |
| 137 | 137 | $relPolyTypeName = substr($lc->getBaseType(), strrpos($lc->getBaseType(), '\\')+1); |
| 138 | - $relPolyTypeName = str_plural($relPolyTypeName, $isMulti?2:1); |
|
| 138 | + $relPolyTypeName = str_plural($relPolyTypeName, $isMulti ? 2 : 1); |
|
| 139 | 139 | $stub->setRelationName($stub->getRelationName() . '_' . $relPolyTypeName); |
| 140 | 140 | $assoc = new AssociationMonomorphic(); |
| 141 | 141 | $first = -1 === $stub->compare($lc); |
@@ -487,7 +487,7 @@ |
||
| 487 | 487 | assert(is_string($line), 'Eager-load elements must be non-empty strings'); |
| 488 | 488 | $lineParts = explode('/', $line); |
| 489 | 489 | $numberOfParts = count($lineParts); |
| 490 | - for ($i = 0; $i<$numberOfParts; $i++) { |
|
| 490 | + for ($i = 0; $i < $numberOfParts; $i++) { |
|
| 491 | 491 | $lineParts[$i] = $this->getLaravelRelationName($lineParts[$i]); |
| 492 | 492 | } |
| 493 | 493 | $remixLine = implode('.', $lineParts); |
@@ -142,7 +142,7 @@ |
||
| 142 | 142 | $metaCount = count($meta->oDataEntityMap); |
| 143 | 143 | $entityCount = count($entities); |
| 144 | 144 | $expected = 2 * $entityCount; |
| 145 | - assert($metaCount == $expected, 'Expected ' . $expected . ' items, actually got '.$metaCount); |
|
| 145 | + assert($metaCount == $expected, 'Expected ' . $expected . ' items, actually got ' . $metaCount); |
|
| 146 | 146 | |
| 147 | 147 | if (0 === count($objectModel->getAssociations())) { |
| 148 | 148 | return; |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | return 'str_replace(' . $params[1] . ', ' . $params[2] . ', ' . $params[0] . ')'; |
| 64 | 64 | }; |
| 65 | 65 | $this->functionDescriptionParsers[ODataConstants::STRFUN_STARTSWITH] = function ($params) { |
| 66 | - return $params[1] == "''" ? 'true' : '(strpos(' . $params[0] . ', ' . $params[1] . ') === 0)'; |
|
| 66 | + return $params[1] == "''" ? 'true' : '(strpos(' . $params[0] . ', ' . $params[1] . ') === 0)'; |
|
| 67 | 67 | }; |
| 68 | 68 | $this->functionDescriptionParsers[ODataConstants::STRFUN_TOLOWER] = function ($params) { |
| 69 | 69 | return 'strtolower(' . $params[0] . ')'; |