@@ -207,7 +207,7 @@ |
||
| 207 | 207 | |
| 208 | 208 | case 'Edm.DateTime': |
| 209 | 209 | $dateTime = new DateTime($value, new DateTimeZone('UTC')); |
| 210 | - $formattedDateTime = $dateTime->format('U') * 1000; |
|
| 210 | + $formattedDateTime = $dateTime->format('U')*1000; |
|
| 211 | 211 | $this->writeCore('/Date(' . $formattedDateTime . ')/', /* quotes */ true); |
| 212 | 212 | break; |
| 213 | 213 | |
@@ -116,8 +116,7 @@ discard block |
||
| 116 | 116 | |
| 117 | 117 | $response = ''; |
| 118 | 118 | $splitter = false === $this->changeSetBoundary ? |
| 119 | - '' : |
|
| 120 | - '--' . $this->changeSetBoundary . $ODataEOL; |
|
| 119 | + '' : '--' . $this->changeSetBoundary . $ODataEOL; |
|
| 121 | 120 | $raw = $this->getRawRequests(); |
| 122 | 121 | foreach ($raw as $contentID => &$workingObject) { |
| 123 | 122 | $headers = $workingObject->outgoingResponse()->getHeaders(); |
@@ -139,16 +138,14 @@ discard block |
||
| 139 | 138 | } |
| 140 | 139 | $response .= trim($splitter); |
| 141 | 140 | $response .= false === $this->changeSetBoundary ? |
| 142 | - $ODataEOL : |
|
| 143 | - '--' . $ODataEOL; |
|
| 141 | + $ODataEOL : '--' . $ODataEOL; |
|
| 144 | 142 | $response = 'Content-Length: ' . |
| 145 | 143 | strlen($response) . |
| 146 | 144 | $ODataEOL . |
| 147 | 145 | $ODataEOL . |
| 148 | 146 | $response; |
| 149 | 147 | $response = false === $this->changeSetBoundary ? |
| 150 | - $response : |
|
| 151 | - 'Content-Type: multipart/mixed; boundary=' . |
|
| 148 | + $response : 'Content-Type: multipart/mixed; boundary=' . |
|
| 152 | 149 | $this->changeSetBoundary . |
| 153 | 150 | $ODataEOL . |
| 154 | 151 | $response; |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | |
| 21 | 21 | $inboundRequestHeaders = $this->setupHeaders(strtok("\n")); |
| 22 | 22 | |
| 23 | - $RequestBody = trim($RequestBody); |
|
| 23 | + $RequestBody = trim($RequestBody); |
|
| 24 | 24 | |
| 25 | 25 | $host = $_SERVER['HTTP_HOST'] ?? $_SERVER['SERVER_NAME'] ?? $_SERVER['SERVER_ADDR'] ?? 'localhost'; |
| 26 | 26 | $protocol = $_SERVER['PROTOCOL'] = isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) ? 'https' : 'http'; |
@@ -414,7 +414,7 @@ |
||
| 414 | 414 | |
| 415 | 415 | $textLen = strlen($text); |
| 416 | 416 | if ($textIndex >= $textLen || '.' != $text[$textIndex]) { |
| 417 | - return $qualityValue * 1000; |
|
| 417 | + return $qualityValue*1000; |
|
| 418 | 418 | } |
| 419 | 419 | |
| 420 | 420 | ++$textIndex; |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | $pageSize = $this->getService()->getConfiguration()->getEntitySetPageSize( |
| 135 | 135 | $this->getRequest()->getTargetResourceSetWrapper()->getResourceSet() |
| 136 | 136 | ); |
| 137 | - $requestTop = $this->getRequest()->getTopOptionCount() ?? PHP_INT_MAX ; |
|
| 137 | + $requestTop = $this->getRequest()->getTopOptionCount() ?? PHP_INT_MAX; |
|
| 138 | 138 | $entryObjects->hasMore &= $requestTop > $pageSize; |
| 139 | 139 | |
| 140 | 140 | $this->loadStackIfEmpty(); |
@@ -152,8 +152,7 @@ discard block |
||
| 152 | 152 | $this->getRequest()->getIdentifier() |
| 153 | 153 | ), |
| 154 | 154 | $this->getRequest()->queryType == QueryType::ENTITIES_WITH_COUNT() ? |
| 155 | - $this->getRequest()->getCountValue() : |
|
| 156 | - null, |
|
| 155 | + $this->getRequest()->getCountValue() : null, |
|
| 157 | 156 | $entryObjects->hasMore ? new ODataLink( |
| 158 | 157 | ODataConstants::ATOM_LINK_NEXT_ATTRIBUTE_STRING, |
| 159 | 158 | null, |
@@ -162,7 +161,7 @@ discard block |
||
| 162 | 161 | '/' . $this->getRequest()->getTargetResourceSetWrapper()->getName() . |
| 163 | 162 | $this->getNextLinkUri(end($results)) |
| 164 | 163 | ) : null, |
| 165 | - array_map(function($entry){ |
|
| 164 | + array_map(function ($entry) { |
|
| 166 | 165 | return $this->writeTopLevelElement( |
| 167 | 166 | $entry instanceof QueryResult ? $entry : new QueryResult($entry) |
| 168 | 167 | ); |
@@ -731,7 +730,7 @@ discard block |
||
| 731 | 730 | return false; |
| 732 | 731 | } |
| 733 | 732 | |
| 734 | - return 0 == ($value % 4); |
|
| 733 | + return 0 == ($value%4); |
|
| 735 | 734 | } |
| 736 | 735 | |
| 737 | 736 | /** |
@@ -862,7 +861,7 @@ discard block |
||
| 862 | 861 | ODataConstants::HTTPQUERY_STRING_EXPAND, |
| 863 | 862 | ODataConstants::HTTPQUERY_STRING_ORDERBY, |
| 864 | 863 | ODataConstants::HTTPQUERY_STRING_INLINECOUNT, |
| 865 | - ODataConstants::HTTPQUERY_STRING_SELECT,] as $queryOption) { |
|
| 864 | + ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) { |
|
| 866 | 865 | $value = $this->getService()->getHost()->getQueryStringItem($queryOption); |
| 867 | 866 | if (null !== $value) { |
| 868 | 867 | if (null !== $queryParameterString) { |