@@ -35,7 +35,7 @@ |
||
35 | 35 | throw new \Exception(); |
36 | 36 | } |
37 | 37 | } catch (\Exception $ex) { |
38 | - throw new \Exception('[XML2Array] Error parsing the XML string.'.PHP_EOL.$ex->getMessage()); |
|
38 | + throw new \Exception('[XML2Array] Error parsing the XML string.' . PHP_EOL . $ex->getMessage()); |
|
39 | 39 | } |
40 | 40 | } elseif (is_object($input_xml)) { |
41 | 41 | if (get_class($input_xml) != 'DOMDocument') { |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | if ($hasPredicate) { |
316 | 316 | $this->_assertion(!$current->isSingleResult()); |
317 | 317 | $keyDescriptor = $this->_createKeyDescriptor( |
318 | - $identifier.'('.$keyPredicate.')', |
|
318 | + $identifier . '(' . $keyPredicate . ')', |
|
319 | 319 | $projectedProperty->getResourceType(), |
320 | 320 | $keyPredicate |
321 | 321 | ); |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | $descriptor->setTargetKind(TargetKind::RESOURCE()); |
395 | 395 | if ($keyPredicate !== null) { |
396 | 396 | $keyDescriptor = $this->_createKeyDescriptor( |
397 | - $segmentIdentifier.'('.$keyPredicate.')', |
|
397 | + $segmentIdentifier . '(' . $keyPredicate . ')', |
|
398 | 398 | $resourceSetWrapper->getResourceType(), |
399 | 399 | $keyPredicate |
400 | 400 | ); |
@@ -273,7 +273,7 @@ |
||
273 | 273 | if (!array_key_exists($keyName, $this->_namedValues)) { |
274 | 274 | $keysAsString = null; |
275 | 275 | foreach (array_keys($keyProperties) as $key) { |
276 | - $keysAsString .= $key.', '; |
|
276 | + $keysAsString .= $key . ', '; |
|
277 | 277 | } |
278 | 278 | |
279 | 279 | $keysAsString = rtrim($keysAsString, ' ,'); |
@@ -660,7 +660,7 @@ discard block |
||
660 | 660 | * |
661 | 661 | * @param InternalOrderByInfo &$internalOrderByInfo The sorting information |
662 | 662 | */ |
663 | - public function setInternalOrderByInfo(InternalOrderByInfo &$internalOrderByInfo) |
|
663 | + public function setInternalOrderByInfo(InternalOrderByInfo & $internalOrderByInfo) |
|
664 | 664 | { |
665 | 665 | $this->internalOrderByInfo = $internalOrderByInfo; |
666 | 666 | } |
@@ -681,7 +681,7 @@ discard block |
||
681 | 681 | * @param InternalSkipTokenInfo &$internalSkipTokenInfo The paging information |
682 | 682 | */ |
683 | 683 | public function setInternalSkipTokenInfo( |
684 | - InternalSkipTokenInfo &$internalSkipTokenInfo |
|
684 | + InternalSkipTokenInfo & $internalSkipTokenInfo |
|
685 | 685 | ) { |
686 | 686 | $this->_internalSkipTokenInfo = $internalSkipTokenInfo; |
687 | 687 | } |
@@ -707,7 +707,7 @@ discard block |
||
707 | 707 | * |
708 | 708 | * @param RootProjectionNode &$rootProjectionNode Root of the projection tree |
709 | 709 | */ |
710 | - public function setRootProjectionNode(RootProjectionNode &$rootProjectionNode) |
|
710 | + public function setRootProjectionNode(RootProjectionNode & $rootProjectionNode) |
|
711 | 711 | { |
712 | 712 | $this->_rootProjectionNode = $rootProjectionNode; |
713 | 713 | } |
@@ -996,7 +996,7 @@ discard block |
||
996 | 996 | if (!$isSupportedVersion) { |
997 | 997 | $availableVersions = null; |
998 | 998 | foreach (self::getKnownDataServiceVersions() as $version1) { |
999 | - $availableVersions .= $version1->toString().', '; |
|
999 | + $availableVersions .= $version1->toString() . ', '; |
|
1000 | 1000 | } |
1001 | 1001 | |
1002 | 1002 | $availableVersions = rtrim($availableVersions, ', '); |
@@ -64,13 +64,13 @@ discard block |
||
64 | 64 | */ |
65 | 65 | public function getPrototypeAsString() |
66 | 66 | { |
67 | - $str = $this->returnType->getFullTypeName().' '.$this->name.'('; |
|
67 | + $str = $this->returnType->getFullTypeName() . ' ' . $this->name . '('; |
|
68 | 68 | |
69 | 69 | foreach ($this->argumentTypes as $argumentType) { |
70 | - $str .= $argumentType->getFullTypeName().', '; |
|
70 | + $str .= $argumentType->getFullTypeName() . ', '; |
|
71 | 71 | } |
72 | 72 | |
73 | - return rtrim($str, ', ').')'; |
|
73 | + return rtrim($str, ', ') . ')'; |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
@@ -484,7 +484,7 @@ discard block |
||
484 | 484 | { |
485 | 485 | $string = null; |
486 | 486 | foreach ($argExpressions as $argExpression) { |
487 | - $string .= $argExpression->getType()->getFullTypeName().', '; |
|
487 | + $string .= $argExpression->getType()->getFullTypeName() . ', '; |
|
488 | 488 | } |
489 | 489 | |
490 | 490 | $string = rtrim($string, ', '); |
@@ -719,7 +719,7 @@ discard block |
||
719 | 719 | if ($function == null) { |
720 | 720 | $protoTypes = null; |
721 | 721 | foreach ($functions as $function) { |
722 | - $protoTypes .= $function->getPrototypeAsString().'; '; |
|
722 | + $protoTypes .= $function->getPrototypeAsString() . '; '; |
|
723 | 723 | } |
724 | 724 | |
725 | 725 | throw ODataException::createSyntaxError( |
@@ -67,9 +67,9 @@ discard block |
||
67 | 67 | * @param ResourceType &$resourceType Reference to the type of the resource pointed by the request uri |
68 | 68 | */ |
69 | 69 | public function __construct( |
70 | - InternalOrderByInfo &$internalOrderByInfo, |
|
70 | + InternalOrderByInfo & $internalOrderByInfo, |
|
71 | 71 | $orderByValuesInSkipToken, |
72 | - ResourceType &$resourceType |
|
72 | + ResourceType & $resourceType |
|
73 | 73 | ) { |
74 | 74 | $this->_internalOrderByInfo = $internalOrderByInfo; |
75 | 75 | $this->_orderByValuesInSkipToken = $orderByValuesInSkipToken; |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | $high = $searcArraySize; |
140 | 140 | do { |
141 | 141 | $matchLevel = 0; |
142 | - $mid = $low + round(($high - $low) / 2); |
|
142 | + $mid = $low + round(($high - $low)/2); |
|
143 | 143 | $result = $comparer($keyObject, $searchArray[$mid]); |
144 | 144 | if ($result > 0) { |
145 | 145 | $low = $mid + 1; |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | } elseif ($isLastSegment) { |
266 | 266 | $type = $subPathSegment->getInstanceType(); |
267 | 267 | $value = $type->convertToOData($currentObject); |
268 | - $nextPageLink .= $value.', '; |
|
268 | + $nextPageLink .= $value . ', '; |
|
269 | 269 | } |
270 | 270 | } catch (\ReflectionException $reflectionException) { |
271 | 271 | throw ODataException::createInternalServerError( |
@@ -36,7 +36,7 @@ |
||
36 | 36 | * @param array(int,(array(string,IType))) $orderByValuesInSkipToken Collection of values in the skiptoken corrosponds |
37 | 37 | * to the orderby path segments |
38 | 38 | */ |
39 | - public function __construct(OrderByInfo &$orderByInfo, $orderByValuesInSkipToken) |
|
39 | + public function __construct(OrderByInfo & $orderByInfo, $orderByValuesInSkipToken) |
|
40 | 40 | { |
41 | 41 | $this->_orderByInfo = $orderByInfo; |
42 | 42 | $this->_orderByValuesInSkipToken = $orderByValuesInSkipToken; |
@@ -41,8 +41,8 @@ |
||
41 | 41 | * @return InternalSkipTokenInfo |
42 | 42 | */ |
43 | 43 | public static function parseSkipTokenClause( |
44 | - ResourceType &$resourceType, |
|
45 | - InternalOrderByInfo &$internalOrderByInfo, |
|
44 | + ResourceType & $resourceType, |
|
45 | + InternalOrderByInfo & $internalOrderByInfo, |
|
46 | 46 | $skipToken |
47 | 47 | ) { |
48 | 48 | $tokenValueDescriptor = null; |
@@ -230,7 +230,7 @@ |
||
230 | 230 | //assert(!empty($keys)) |
231 | 231 | $orderBy = null; |
232 | 232 | foreach ($keys as $key) { |
233 | - $orderBy = $orderBy.$key.', '; |
|
233 | + $orderBy = $orderBy . $key . ', '; |
|
234 | 234 | } |
235 | 235 | |
236 | 236 | $orderBy = rtrim($orderBy, ', '); |