@@ -16,8 +16,8 @@ discard block |
||
16 | 16 | public static function metadataResourceTypeSetNamedStreamsOnDerivedEntityTypesNotSupported($entitySetName, $derivedTypeName) |
17 | 17 | { |
18 | 18 | return 'Named streams are not supported on derived entity types. Entity Set \''.$entitySetName |
19 | - .'\' has an instance of type \''.$derivedTypeName.'\', which is a derived entity type and has' |
|
20 | - .' named streams. Please remove all named streams from type \''.$derivedTypeName.'\'.'; |
|
19 | + .'\' has an instance of type \''.$derivedTypeName.'\', which is a derived entity type and has' |
|
20 | + .' named streams. Please remove all named streams from type \''.$derivedTypeName.'\'.'; |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | /** |
@@ -32,6 +32,6 @@ discard block |
||
32 | 32 | public static function metadataResourceTypeSetBagOfComplexTypeWithDerivedTypes($complexTypeName) |
33 | 33 | { |
34 | 34 | return 'Complex type \''.$complexTypeName.'\' has derived types and is used as the item type in a bag.' |
35 | - .' Only bags containing complex types without derived types are supported.'; |
|
35 | + .' Only bags containing complex types without derived types are supported.'; |
|
36 | 36 | } |
37 | 37 | } |
@@ -15,9 +15,9 @@ discard block |
||
15 | 15 | */ |
16 | 16 | public static function metadataResourceTypeSetNamedStreamsOnDerivedEntityTypesNotSupported($entitySetName, $derivedTypeName) |
17 | 17 | { |
18 | - return 'Named streams are not supported on derived entity types. Entity Set \''.$entitySetName |
|
19 | - .'\' has an instance of type \''.$derivedTypeName.'\', which is a derived entity type and has' |
|
20 | - .' named streams. Please remove all named streams from type \''.$derivedTypeName.'\'.'; |
|
18 | + return 'Named streams are not supported on derived entity types. Entity Set \'' . $entitySetName |
|
19 | + .'\' has an instance of type \'' . $derivedTypeName . '\', which is a derived entity type and has' |
|
20 | + .' named streams. Please remove all named streams from type \'' . $derivedTypeName . '\'.'; |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | /** |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | */ |
32 | 32 | public static function metadataResourceTypeSetBagOfComplexTypeWithDerivedTypes($complexTypeName) |
33 | 33 | { |
34 | - return 'Complex type \''.$complexTypeName.'\' has derived types and is used as the item type in a bag.' |
|
34 | + return 'Complex type \'' . $complexTypeName . '\' has derived types and is used as the item type in a bag.' |
|
35 | 35 | .' Only bags containing complex types without derived types are supported.'; |
36 | 36 | } |
37 | 37 | } |
@@ -519,7 +519,7 @@ |
||
519 | 519 | $this->getOperationContext()->outgoingResponse()->setContentLength($value); |
520 | 520 | } else { |
521 | 521 | throw ODataException::notAcceptableError( |
522 | - 'ContentLength:'.$value.' is invalid' |
|
522 | + 'ContentLength:' . $value . ' is invalid' |
|
523 | 523 | ); |
524 | 524 | } |
525 | 525 | } |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | $expectedParms = count($baseParms); |
136 | 136 | $actualParms = count($parms); |
137 | 137 | if ($expectedParms != $actualParms) { |
138 | - $msg = 'Was expecting '. $expectedParms. ' arguments, received '.$actualParms.' instead'; |
|
138 | + $msg = 'Was expecting ' . $expectedParms . ' arguments, received ' . $actualParms . ' instead'; |
|
139 | 139 | throw new \InvalidArgumentException($msg); |
140 | 140 | } |
141 | 141 | |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | private function checkBlacklist($func, $fromArray = false) |
150 | 150 | { |
151 | 151 | if (in_array($func, $this->blacklist) || in_array(strtolower($func), $this->blacklist)) { |
152 | - $msg = (true === $fromArray ? 'First element of ' : '').'FunctionName blacklisted'; |
|
152 | + $msg = (true === $fromArray ? 'First element of ' : '') . 'FunctionName blacklisted'; |
|
153 | 153 | throw new \InvalidArgumentException($msg); |
154 | 154 | } |
155 | 155 | } |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | $type = null; |
296 | 296 | if ($typeKind == ResourceTypeKind::ENTITY) { |
297 | 297 | list($oet, $entitySet) = $this->metadataManager->addEntityType($name); |
298 | - assert($oet instanceof TEntityTypeType, 'Entity type '.$name. ' not successfully added'); |
|
298 | + assert($oet instanceof TEntityTypeType, 'Entity type ' . $name . ' not successfully added'); |
|
299 | 299 | $type = new ResourceEntityType($refClass, $oet, $this); |
300 | 300 | $typeName = $type->getFullName(); |
301 | 301 | $returnName = Str::plural($typeName); |
@@ -595,7 +595,7 @@ discard block |
||
595 | 595 | ); |
596 | 596 | } |
597 | 597 | if (!in_array($resourceMult, $allowedMult)) { |
598 | - throw new InvalidOperationException('Supplied multiplicity '.$resourceMult.' not valid'); |
|
598 | + throw new InvalidOperationException('Supplied multiplicity ' . $resourceMult . ' not valid'); |
|
599 | 599 | } |
600 | 600 | |
601 | 601 | $resourcePropertyKind = ('*' == $resourceMult) |
@@ -889,12 +889,12 @@ discard block |
||
889 | 889 | throw new \InvalidArgumentException($msg); |
890 | 890 | } |
891 | 891 | if (array_key_exists($name, $this->resourceSets)) { |
892 | - $msg = 'Resource set with same name, '. $name. ', exists'; |
|
892 | + $msg = 'Resource set with same name, ' . $name . ', exists'; |
|
893 | 893 | throw new \InvalidArgumentException($msg); |
894 | 894 | } |
895 | 895 | $typeName = $returnType->getName(); |
896 | 896 | if (!array_key_exists($typeName, $this->OdataEntityMap)) { |
897 | - $msg = 'Mapping not defined for '.$typeName; |
|
897 | + $msg = 'Mapping not defined for ' . $typeName; |
|
898 | 898 | throw new \InvalidArgumentException($msg); |
899 | 899 | } |
900 | 900 | $metaReturn = $this->OdataEntityMap[$typeName]; |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * |
31 | 31 | * @return ODataFeed |
32 | 32 | */ |
33 | - public function writeTopLevelElements(QueryResult &$entryObjects); |
|
33 | + public function writeTopLevelElements(QueryResult & $entryObjects); |
|
34 | 34 | |
35 | 35 | /** |
36 | 36 | * Write top level url element. |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * |
61 | 61 | * @return ODataPropertyContent |
62 | 62 | */ |
63 | - public function writeTopLevelComplexObject(QueryResult &$complexValue, $propertyName, ResourceType &$resourceType); |
|
63 | + public function writeTopLevelComplexObject(QueryResult & $complexValue, $propertyName, ResourceType & $resourceType); |
|
64 | 64 | |
65 | 65 | /** |
66 | 66 | * Write top level bag resource. |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * @return ODataPropertyContent |
72 | 72 | * @internal param QueryResult $BagValue Results property contains the bag object to be written |
73 | 73 | */ |
74 | - public function writeTopLevelBagObject(QueryResult &$bagValue, $propertyName, ResourceType &$resourceType); |
|
74 | + public function writeTopLevelBagObject(QueryResult & $bagValue, $propertyName, ResourceType & $resourceType); |
|
75 | 75 | |
76 | 76 | /** |
77 | 77 | * Write top level primitive value. |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | * |
82 | 82 | * @return ODataPropertyContent |
83 | 83 | */ |
84 | - public function writeTopLevelPrimitive(QueryResult &$primitiveValue, ResourceProperty &$resourceProperty = null); |
|
84 | + public function writeTopLevelPrimitive(QueryResult & $primitiveValue, ResourceProperty & $resourceProperty = null); |
|
85 | 85 | |
86 | 86 | /** |
87 | 87 | * Gets reference to the request submitted by client. |
@@ -469,7 +469,7 @@ |
||
469 | 469 | ODataConstants::HTTPQUERY_STRING_ORDERBY, |
470 | 470 | ODataConstants::HTTPQUERY_STRING_INLINECOUNT, |
471 | 471 | ODataConstants::HTTPQUERY_STRING_SELECT |
472 | - ] as $queryOption) { |
|
472 | + ] as $queryOption) { |
|
473 | 473 | $value = $this->getService()->getHost()->getQueryStringItem($queryOption); |
474 | 474 | if (null !== $value) { |
475 | 475 | if (null !== $queryParameterString) { |