@@ -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 |
@@ -114,8 +114,7 @@ discard block |
||
114 | 114 | |
115 | 115 | $response = ''; |
116 | 116 | $splitter = false === $this->changeSetBoundary ? |
117 | - '' : |
|
118 | - '--' . $this->changeSetBoundary . $ODataEOL; |
|
117 | + '' : '--' . $this->changeSetBoundary . $ODataEOL; |
|
119 | 118 | $raw = $this->getRawRequests(); |
120 | 119 | foreach ($raw as $contentID => &$workingObject) { |
121 | 120 | $headers = $workingObject->Response->getHeaders(); |
@@ -137,16 +136,14 @@ discard block |
||
137 | 136 | } |
138 | 137 | $response .= trim($splitter); |
139 | 138 | $response .= false === $this->changeSetBoundary ? |
140 | - $ODataEOL : |
|
141 | - '--' . $ODataEOL; |
|
139 | + $ODataEOL : '--' . $ODataEOL; |
|
142 | 140 | $response = 'Content-Length: ' . |
143 | 141 | strlen($response) . |
144 | 142 | $ODataEOL . |
145 | 143 | $ODataEOL . |
146 | 144 | $response; |
147 | 145 | $response = false === $this->changeSetBoundary ? |
148 | - $response : |
|
149 | - 'Content-Type: multipart/mixed; boundary=' . |
|
146 | + $response : 'Content-Type: multipart/mixed; boundary=' . |
|
150 | 147 | $this->changeSetBoundary . |
151 | 148 | $ODataEOL . |
152 | 149 | $response; |
@@ -160,7 +157,7 @@ discard block |
||
160 | 157 | { |
161 | 158 | $ODataEOL = $this->getService()->getConfiguration()->getLineEndings(); |
162 | 159 | |
163 | - $firstLine = trim(strtok($this->getData(), $ODataEOL));// with trim matches both crlf and lf |
|
160 | + $firstLine = trim(strtok($this->getData(), $ODataEOL)); // with trim matches both crlf and lf |
|
164 | 161 | $this->changeSetBoundary = substr($firstLine, 40); |
165 | 162 | |
166 | 163 | $prefix = 'HTTP_'; |
@@ -236,7 +233,7 @@ discard block |
||
236 | 233 | $contentIDinit--; |
237 | 234 | } |
238 | 235 | |
239 | - $this->rawRequests[$contentID] = (object)[ |
|
236 | + $this->rawRequests[$contentID] = (object) [ |
|
240 | 237 | 'RequestVerb' => $requestPathParts[0], |
241 | 238 | 'RequestURL' => $requestPathParts[1], |
242 | 239 | 'ServerParams' => $serverParts, |