Passed
Pull Request — master (#251)
by Alex
06:41 queued 03:02
created
src/POData/UriProcessor/UriProcessorNew.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -561,8 +561,7 @@
 block discarded – undo
561 561
     private function executeGetResourceRelated(SegmentDescriptor $segment, $eagerList)
562 562
     {
563 563
         $projectedProperty     = $segment->getProjectedProperty();
564
-        $projectedPropertyKind = null !== $projectedProperty ? $projectedProperty->getKind() :
565
-                                 new ResourcePropertyKind(0);
564
+        $projectedPropertyKind = null !== $projectedProperty ? $projectedProperty->getKind() : new ResourcePropertyKind(0);
566 565
         $queryResult           = null;
567 566
         switch ($projectedPropertyKind) {
568 567
             case ResourcePropertyKind::RESOURCE_REFERENCE():
Please login to merge, or discard this patch.
src/POData/ObjectModel/CynicSerialiser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1114,6 +1114,6 @@
 block discarded – undo
1114 1114
             return false;
1115 1115
         }
1116 1116
 
1117
-        return 0 == ($value % 4);
1117
+        return 0 == ($value%4);
1118 1118
     }
1119 1119
 }
Please login to merge, or discard this patch.
src/POData/BatchProcessor/ChangeSetParser.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     protected $changeSetBoundary;
21 21
     protected $rawRequests = [];
22 22
     protected $service;
23
-    protected $contentIDToLocationLookup =[];
23
+    protected $contentIDToLocationLookup = [];
24 24
 
25 25
     /**
26 26
      * ChangeSetParser constructor.
@@ -100,8 +100,7 @@  discard block
 block discarded – undo
100 100
         $response .= false === $this->changeSetBoundary ? "\r\n" : "--\r\n";
101 101
         $response = 'Content-Length: ' . strlen($response) . "\r\n\r\n" . $response;
102 102
         $response = false === $this->changeSetBoundary ?
103
-            $response :
104
-            'Content-Type: multipart/mixed; boundary=' . $this->changeSetBoundary . "\r\n" . $response;
103
+            $response : 'Content-Type: multipart/mixed; boundary=' . $this->changeSetBoundary . "\r\n" . $response;
105 104
         return $response;
106 105
     }
107 106
 
@@ -186,7 +185,7 @@  discard block
 block discarded – undo
186 185
                 $contentIDinit--;
187 186
             }
188 187
 
189
-            $this->rawRequests[$contentID] = (object)[
188
+            $this->rawRequests[$contentID] = (object) [
190 189
                 'RequestVerb' => $requestPathParts[0],
191 190
                 'RequestURL' => $requestPathParts[1],
192 191
                 'ServerParams' => $serverParts,
Please login to merge, or discard this patch.
src/POData/BaseService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -652,7 +652,7 @@
 block discarded – undo
652 652
 
653 653
         //The response format can be dictated by the target resource kind. IE a $value will be different then expected
654 654
         //getTargetKind doesn't deal with link resources directly and this can change things
655
-        $targetKind         = $request->isLinkUri() ? TargetKind::LINK() : $request->getTargetKind();
655
+        $targetKind = $request->isLinkUri() ? TargetKind::LINK() : $request->getTargetKind();
656 656
 
657 657
         switch ($targetKind) {
658 658
             case TargetKind::METADATA():
Please login to merge, or discard this patch.