@@ -177,9 +177,9 @@ |
||
177 | 177 | { |
178 | 178 | return $this->executeBase(); |
179 | 179 | } |
180 | - /** |
|
181 | - * Execute the client submitted request against the data source (POST). |
|
182 | - */ |
|
180 | + /** |
|
181 | + * Execute the client submitted request against the data source (POST). |
|
182 | + */ |
|
183 | 183 | protected function executePost() |
184 | 184 | { |
185 | 185 | $segments = $this->request->getSegments(); |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | */ |
209 | 209 | protected function executePut() |
210 | 210 | { |
211 | - return $this->executeBase(function ($uriProcessor, $segment) { |
|
211 | + return $this->executeBase(function($uriProcessor, $segment) { |
|
212 | 212 | $requestMethod = $uriProcessor->getService()->getOperationContext()->incomingRequest()->getMethod(); |
213 | 213 | $resourceSet = $segment->getTargetResourceSetWrapper(); |
214 | 214 | $keyDescriptor = $segment->getKeyDescriptor(); |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | */ |
232 | 232 | protected function executeDelete() |
233 | 233 | { |
234 | - return $this->executeBase(function ($uriProcessor, $segment) { |
|
234 | + return $this->executeBase(function($uriProcessor, $segment) { |
|
235 | 235 | $requestMethod = $uriProcessor->getService()->getOperationContext()->incomingRequest()->getMethod(); |
236 | 236 | $resourceSet = $segment->getTargetResourceSetWrapper(); |
237 | 237 | $keyDescriptor = $segment->getKeyDescriptor(); |
@@ -333,14 +333,14 @@ |
||
333 | 333 | return "SUBSTRING($params[0], $params[1] + 1, $params[2])"; |
334 | 334 | } else { |
335 | 335 | // 2 Params version of OData substring |
336 | - // We don't have the same function for SQL Server, we have only: |
|
336 | + // We don't have the same function for SQL Server, we have only: |
|
337 | 337 | |
338 | - // SUBSTRING ( value_expression , start_expression , length_expression ) |
|
339 | - // http://msdn.microsoft.com/en-us/library/ms187748.aspx |
|
338 | + // SUBSTRING ( value_expression , start_expression , length_expression ) |
|
339 | + // http://msdn.microsoft.com/en-us/library/ms187748.aspx |
|
340 | 340 | |
341 | - // If the sum of start_expression and length_expression is greater than the number of characters |
|
342 | - // in value_expression, the whole value expression beginning at start_expression is returned |
|
343 | - // In OData substring function the index start from 0, in SQL Server its from 1 |
|
341 | + // If the sum of start_expression and length_expression is greater than the number of characters |
|
342 | + // in value_expression, the whole value expression beginning at start_expression is returned |
|
343 | + // In OData substring function the index start from 0, in SQL Server its from 1 |
|
344 | 344 | return "SUBSTRING($params[0], $params[1] + 1, LEN($params[0]))"; |
345 | 345 | } |
346 | 346 | break; |
@@ -839,7 +839,7 @@ discard block |
||
839 | 839 | ); |
840 | 840 | } |
841 | 841 | foreach ($targetProperty->getResourceType()->getKeyProperties() |
842 | - as $keyName => $resourceProperty) { |
|
842 | + as $keyName => $resourceProperty) { |
|
843 | 843 | try { |
844 | 844 | $keyValue = $targetResourceType->getPropertyValue($entityInstance, $keyName); |
845 | 845 | if (is_null($keyValue)) { |
@@ -896,7 +896,7 @@ discard block |
||
896 | 896 | } |
897 | 897 | |
898 | 898 | foreach ($keyDescriptor->getValidatedNamedValues() |
899 | - as $keyName => $valueDescription) { |
|
899 | + as $keyName => $valueDescription) { |
|
900 | 900 | try { |
901 | 901 | $keyValue = $resourceType->getPropertyValue($entityInstance, $keyName); |
902 | 902 | if (is_null($keyValue)) { |
@@ -499,7 +499,7 @@ |
||
499 | 499 | $existingNodes = $this->_childNodes; |
500 | 500 | $this->_childNodes = array(); |
501 | 501 | foreach ($this->getResourceType()->getAllProperties() |
502 | - as $resourceProperty) { |
|
502 | + as $resourceProperty) { |
|
503 | 503 | $propertyName = $resourceProperty->getName(); |
504 | 504 | if (array_key_exists($propertyName, $existingNodes)) { |
505 | 505 | $this->_childNodes[$propertyName] |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | $this->_keyObject = $this->_internalOrderByInfo->getDummyObject(); |
188 | 188 | $i = 0; |
189 | 189 | foreach ($this->_internalOrderByInfo->getOrderByPathSegments() |
190 | - as $orderByPathSegment) { |
|
190 | + as $orderByPathSegment) { |
|
191 | 191 | $index = 0; |
192 | 192 | $currentObject = $this->_keyObject; |
193 | 193 | $subPathSegments = $orderByPathSegment->getSubPathSegments(); |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | { |
251 | 251 | $nextPageLink = null; |
252 | 252 | foreach ($this->_internalOrderByInfo->getOrderByPathSegments() |
253 | - as $orderByPathSegment) { |
|
253 | + as $orderByPathSegment) { |
|
254 | 254 | $index = 0; |
255 | 255 | $currentObject = $lastObject; |
256 | 256 | $subPathSegments = $orderByPathSegment->getSubPathSegments(); |