@@ -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, ', '); |
@@ -208,11 +208,11 @@ |
||
| 208 | 208 | * |
| 209 | 209 | */ |
| 210 | 210 | if (!is_null($this->request->getSkipCount()) || !is_null($this->request->getTopCount())) { |
| 211 | - $orderBy = !is_null($orderBy) ? $orderBy.', ' : null; |
|
| 211 | + $orderBy = !is_null($orderBy) ? $orderBy . ', ' : null; |
|
| 212 | 212 | $keys = array_keys($targetResourceType->getKeyProperties()); |
| 213 | 213 | //assert(!empty($keys)) |
| 214 | 214 | foreach ($keys as $key) { |
| 215 | - $orderBy = $orderBy.$key.', '; |
|
| 215 | + $orderBy = $orderBy . $key . ', '; |
|
| 216 | 216 | } |
| 217 | 217 | |
| 218 | 218 | $orderBy = rtrim($orderBy, ', '); |
@@ -516,7 +516,7 @@ |
||
| 516 | 516 | $parent = $nullCheckExpTree; |
| 517 | 517 | $key = null; |
| 518 | 518 | do { |
| 519 | - $key = $parent->getResourceProperty()->getName().'_'.$key; |
|
| 519 | + $key = $parent->getResourceProperty()->getName() . '_' . $key; |
|
| 520 | 520 | $parent = $parent->getParent(); |
| 521 | 521 | } while ($parent != null); |
| 522 | 522 | |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | { |
| 84 | 84 | if ($this->Id != ExpressionTokenId::IDENTIFIER) { |
| 85 | 85 | throw ODataException::createSyntaxError( |
| 86 | - 'Identifier expected at position '.$this->Position |
|
| 86 | + 'Identifier expected at position ' . $this->Position |
|
| 87 | 87 | ); |
| 88 | 88 | } |
| 89 | 89 | |
@@ -310,7 +310,7 @@ |
||
| 310 | 310 | && (ExpressionLexer::isNumeric($this->_getCurrentToken()->Id)) |
| 311 | 311 | ) { |
| 312 | 312 | $numberLiteral = $this->_getCurrentToken(); |
| 313 | - $numberLiteral->Text = '-'.$numberLiteral->Text; |
|
| 313 | + $numberLiteral->Text = '-' . $numberLiteral->Text; |
|
| 314 | 314 | $numberLiteral->Position = $op->Position; |
| 315 | 315 | $v = $this->_getCurrentToken(); |
| 316 | 316 | $this->_setCurrentToken($numberLiteral); |