Passed
Pull Request — master (#255)
by Christopher
03:06
created
UriProcessor/QueryProcessor/SkipTokenParser/InternalSkipTokenInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/POData/UriProcessor/UriProcessorNew.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -394,8 +394,7 @@
 block discarded – undo
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():
Please login to merge, or discard this patch.
src/POData/Writers/Json/JsonWriter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/POData/BatchProcessor/ChangeSetParser.php 1 patch
Spacing   +4 added lines, -7 removed lines patch added patch discarded remove patch
@@ -115,8 +115,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
@@ -186,7 +183,7 @@  discard block
 block discarded – undo
186 183
                 $inboundRequestHeaders[$name] = $value;
187 184
             }
188 185
             $host = $_SERVER['HTTP_HOST'] ?? $_SERVER['SERVER_NAME'] ?? $_SERVER['SERVER_ADDR'] ?? 'localhost';
189
-            $protocol=$_SERVER['PROTOCOL'] = isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) ? 'https' : 'http';
186
+            $protocol = $_SERVER['PROTOCOL'] = isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) ? 'https' : 'http';
190 187
             $this->rawRequests[$contentID] = new WebOperationContext(
191 188
                 new IncomingRequest(
192 189
                     new HTTPRequestMethod($RequesetType),
Please login to merge, or discard this patch.