@@ -397,7 +397,7 @@ |
||
| 397 | 397 | * |
| 398 | 398 | * @return bool true if the segment was push, false otherwise |
| 399 | 399 | */ |
| 400 | - private function pushSegment($segmentName, ResourceSetWrapper &$resourceSetWrapper) |
|
| 400 | + private function pushSegment($segmentName, ResourceSetWrapper & $resourceSetWrapper) |
|
| 401 | 401 | { |
| 402 | 402 | // Even though there is no expand in the request URI, still we need to push |
| 403 | 403 | // the segment information if we need to count |
@@ -157,8 +157,8 @@ |
||
| 157 | 157 | |
| 158 | 158 | case 'Edm.DateTime': |
| 159 | 159 | $dateTime = new Carbon($value, new \DateTimeZone('UTC')); |
| 160 | - $formattedDateTime = $dateTime->format('U') * 1000; |
|
| 161 | - $this->writeCore('/Date('.$formattedDateTime.')/', /* quotes */ true); |
|
| 160 | + $formattedDateTime = $dateTime->format('U')*1000; |
|
| 161 | + $this->writeCore('/Date(' . $formattedDateTime . ')/', /* quotes */ true); |
|
| 162 | 162 | break; |
| 163 | 163 | |
| 164 | 164 | case 'Edm.String': |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | $protoTypes, |
| 69 | 69 | $position |
| 70 | 70 | ) { |
| 71 | - $msg ="No applicable function found for '$functionName' at position $position with the specified" |
|
| 71 | + $msg = "No applicable function found for '$functionName' at position $position with the specified" |
|
| 72 | 72 | ." arguments. The functions considered are: $protoTypes"; |
| 73 | 73 | return $msg; |
| 74 | 74 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public static function resourcePropertyInvalidKindParameter($argumentName) |
| 15 | 15 | { |
| 16 | - $msg = "The argument '$argumentName' is not a valid ResourcePropertyKind enum value or valid". |
|
| 16 | + $msg = "The argument '$argumentName' is not a valid ResourcePropertyKind enum value or valid" . |
|
| 17 | 17 | " combination of ResourcePropertyKind enum values"; |
| 18 | 18 | return $msg; |
| 19 | 19 | } |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | */ |
| 46 | 46 | public static function objectModelSerializerFailedToAccessProperty($propertyName, $parentObjectName) |
| 47 | 47 | { |
| 48 | - return "objectModelSerializer failed to access or initialize the property". |
|
| 48 | + return "objectModelSerializer failed to access or initialize the property" . |
|
| 49 | 49 | " $propertyName of $parentObjectName, Please contact provider."; |
| 50 | 50 | } |
| 51 | 51 | |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public static function eTagNotAllowedForNonExistingResource() |
| 14 | 14 | { |
| 15 | - return 'The resource targeted by the request does not exists, eTag header is not allowed'. |
|
| 15 | + return 'The resource targeted by the request does not exists, eTag header is not allowed' . |
|
| 16 | 16 | ' for non-existing resource.'; |
| 17 | 17 | } |
| 18 | 18 | |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | $a = $this->isAscending ? 1 : -1; |
| 104 | 104 | |
| 105 | - $retVal = function ($object1, $object2) use ($ancestors, $a) { |
|
| 105 | + $retVal = function($object1, $object2) use ($ancestors, $a) { |
|
| 106 | 106 | $accessor1 = $object1; |
| 107 | 107 | $accessor2 = $object2; |
| 108 | 108 | $flag1 = is_null($accessor1); |
@@ -131,9 +131,9 @@ discard block |
||
| 131 | 131 | if ($flag1 && $flag2) { |
| 132 | 132 | return 0; |
| 133 | 133 | } elseif ($flag1) { |
| 134 | - return $a * -1; |
|
| 134 | + return $a*-1; |
|
| 135 | 135 | } elseif ($flag2) { |
| 136 | - return $a * 1; |
|
| 136 | + return $a*1; |
|
| 137 | 137 | } |
| 138 | 138 | $type = $this->resourceProperty->getInstanceType(); |
| 139 | 139 | if ($type instanceof DateTime) { |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | $result = (0 == $delta) ? 0 : $delta/abs($delta); |
| 148 | 148 | } |
| 149 | 149 | |
| 150 | - return $a * $result; |
|
| 150 | + return $a*$result; |
|
| 151 | 151 | }; |
| 152 | 152 | |
| 153 | 153 | return $retVal; |
@@ -476,7 +476,7 @@ |
||
| 476 | 476 | * |
| 477 | 477 | * @return bool True if $value is a valid type else false |
| 478 | 478 | */ |
| 479 | - private static function getTypeAndValidateKeyValue($value, $tokenId, &$outValue, IType &$outType = null) |
|
| 479 | + private static function getTypeAndValidateKeyValue($value, $tokenId, &$outValue, IType & $outType = null) |
|
| 480 | 480 | { |
| 481 | 481 | switch ($tokenId) { |
| 482 | 482 | case ExpressionTokenId::BOOLEAN_LITERAL: |