@@ -141,7 +141,7 @@ |
||
141 | 141 | $searchArraySize = count($searchArray) - 1; |
142 | 142 | $high = $searchArraySize; |
143 | 143 | do { |
144 | - $mid = intval($low + round(($high - $low) / 2)); |
|
144 | + $mid = intval($low + round(($high - $low)/2)); |
|
145 | 145 | $result = $comparer($keyObject, $searchArray[$mid]); |
146 | 146 | if ($result > 0) { |
147 | 147 | $low = $mid + 1; |
@@ -394,8 +394,7 @@ |
||
394 | 394 | private function executeGetResourceRelated(SegmentDescriptor $segment, $eagerList) |
395 | 395 | { |
396 | 396 | $projectedProperty = $segment->getProjectedProperty(); |
397 | - $projectedPropertyKind = null !== $projectedProperty ? $projectedProperty->getKind() : |
|
398 | - new ResourcePropertyKind(0); |
|
397 | + $projectedPropertyKind = null !== $projectedProperty ? $projectedProperty->getKind() : new ResourcePropertyKind(0); |
|
399 | 398 | $queryResult = null; |
400 | 399 | switch ($projectedPropertyKind) { |
401 | 400 | case ResourcePropertyKind::RESOURCE_REFERENCE(): |
@@ -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 |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | |
66 | 66 | $this->processSubRequest($workingObject); |
67 | 67 | if (HTTPRequestMethod::GET() != $workingObject->incomingRequest()->getMethod() && |
68 | - !strpos($workingObject->incomingRequest()->getRawUrl(), '/$links/') == false) { |
|
68 | + !strpos($workingObject->incomingRequest()->getRawUrl(), '/$links/') == false) { |
|
69 | 69 | if (null === $workingObject->outgoingResponse()->getHeaders()['Location']) { |
70 | 70 | $msg = 'Location header not set in subrequest response for ' . $workingObject->incomingRequest()->getMethod() |
71 | 71 | . ' request url ' . $workingObject->incomingRequest()->getRawUrl(); |
@@ -115,8 +115,7 @@ discard block |
||
115 | 115 | |
116 | 116 | $response = ''; |
117 | 117 | $splitter = false === $this->changeSetBoundary ? |
118 | - '' : |
|
119 | - '--' . $this->changeSetBoundary . $ODataEOL; |
|
118 | + '' : '--' . $this->changeSetBoundary . $ODataEOL; |
|
120 | 119 | $raw = $this->getRawRequests(); |
121 | 120 | foreach ($raw as $contentID => &$workingObject) { |
122 | 121 | $headers = $workingObject->outgoingResponse()->getHeaders(); |
@@ -138,16 +137,14 @@ discard block |
||
138 | 137 | } |
139 | 138 | $response .= trim($splitter); |
140 | 139 | $response .= false === $this->changeSetBoundary ? |
141 | - $ODataEOL : |
|
142 | - '--' . $ODataEOL; |
|
140 | + $ODataEOL : '--' . $ODataEOL; |
|
143 | 141 | $response = 'Content-Length: ' . |
144 | 142 | strlen($response) . |
145 | 143 | $ODataEOL . |
146 | 144 | $ODataEOL . |
147 | 145 | $response; |
148 | 146 | $response = false === $this->changeSetBoundary ? |
149 | - $response : |
|
150 | - 'Content-Type: multipart/mixed; boundary=' . |
|
147 | + $response : 'Content-Type: multipart/mixed; boundary=' . |
|
151 | 148 | $this->changeSetBoundary . |
152 | 149 | $ODataEOL . |
153 | 150 | $response; |