Passed
Pull Request — master (#261)
by Christopher
03:00
created
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   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -116,8 +116,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/POData/BatchProcessor/IncomingChangeSetRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
src/POData/HttpProcessUtility.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             return $inexactContentType;
39 39
         }
40 40
         // filter out transmitted types which have a zero quality
41
-        $acceptTypes = array_filter($acceptTypes, function(MediaType $accpetType){
41
+        $acceptTypes = array_filter($acceptTypes, function (MediaType $accpetType) {
42 42
             return 0 !== $accpetType->getQualityValue();
43 43
         });
44 44
         // reduce acceptable types down to any that matches are exact set.
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             return $exactMatch[0]->getMimeType();
51 51
         }
52 52
         // filter down all remaining accept types to any that are a partial match for inexact
53
-        $acceptTypes = array_filter($acceptTypes, function(MediaType $acceptType) use ($inexactContentType){
53
+        $acceptTypes = array_filter($acceptTypes, function (MediaType $acceptType) use ($inexactContentType){
54 54
             return 0 < $acceptType->getMatchingRating($inexactContentType);
55 55
         });
56 56
         // if no inexact type go boom.
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
 
413 413
         $textLen = strlen($text);
414 414
         if ($textIndex >= $textLen || '.' != $text[$textIndex]) {
415
-            return $qualityValue * 1000;
415
+            return $qualityValue*1000;
416 416
         }
417 417
 
418 418
         ++$textIndex;
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             return $inexactContentType;
39 39
         }
40 40
         // filter out transmitted types which have a zero quality
41
-        $acceptTypes = array_filter($acceptTypes, function(MediaType $accpetType){
41
+        $acceptTypes = array_filter($acceptTypes, function(MediaType $accpetType) {
42 42
             return 0 !== $accpetType->getQualityValue();
43 43
         });
44 44
         // reduce acceptable types down to any that matches are exact set.
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             return $exactMatch[0]->getMimeType();
51 51
         }
52 52
         // filter down all remaining accept types to any that are a partial match for inexact
53
-        $acceptTypes = array_filter($acceptTypes, function(MediaType $acceptType) use ($inexactContentType){
53
+        $acceptTypes = array_filter($acceptTypes, function(MediaType $acceptType) use ($inexactContentType) {
54 54
             return 0 < $acceptType->getMatchingRating($inexactContentType);
55 55
         });
56 56
         // if no inexact type go boom.
Please login to merge, or discard this patch.