Completed
Pull Request — master (#185)
by Christopher
05:33 queued 01:55
created
src/POData/BatchProcessor/BatchProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
     public function getResponse()
57 57
     {
58 58
         $response = '';
59
-        $splitter =  '--' . $this->batchBoundary . "\r\n";
59
+        $splitter = '--' . $this->batchBoundary . "\r\n";
60 60
         $raw = $this->changeSetProcessors;
61 61
         foreach ($raw as $contentID => &$workingObject) {
62 62
             $response .= $splitter;
Please login to merge, or discard this patch.
src/POData/BatchProcessor/ChangeSetParser.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     protected $changeSetBoundary;
13 13
     protected $rawRequests = [];
14 14
     protected $service;
15
-    protected $contentIDToLocationLookup =[];
15
+    protected $contentIDToLocationLookup = [];
16 16
 
17 17
     public function __construct(BaseService $service, $body)
18 18
     {
@@ -76,8 +76,7 @@  discard block
 block discarded – undo
76 76
         $response .= false === $this->changeSetBoundary ? "\r\n" : "--\r\n";
77 77
         $response = 'Content-Length: ' . strlen($response) . "\r\n\r\n" . $response;
78 78
         $response = false === $this->changeSetBoundary ?
79
-            $response :
80
-            'Content-Type: multipart/mixed; boundary=' . $this->changeSetBoundary . "\r\n" . $response;
79
+            $response : 'Content-Type: multipart/mixed; boundary=' . $this->changeSetBoundary . "\r\n" . $response;
81 80
         return $response;
82 81
     }
83 82
 
@@ -131,7 +130,7 @@  discard block
 block discarded – undo
131 130
                         }
132 131
                         $headerSides = explode(':', $line);
133 132
                         if (count($headerSides) != 2) {
134
-                            throw new \Exception('Malformed header line: '.$line);
133
+                            throw new \Exception('Malformed header line: ' . $line);
135 134
                         }
136 135
                         if (strtolower(trim($headerSides[0])) == strtolower('Content-ID')) {
137 136
                             $contentID = trim($headerSides[1]);
@@ -158,7 +157,7 @@  discard block
 block discarded – undo
158 157
             if ($contentIDinit == $contentID) {
159 158
                 $contentIDinit--;
160 159
             }
161
-            $this->rawRequests[$contentID] = (object)[
160
+            $this->rawRequests[$contentID] = (object) [
162 161
                 'RequestVerb' => $requestPathParts[0],
163 162
                 'RequestURL' => $requestPathParts[1],
164 163
                 'ServerParams' => $serverParts,
Please login to merge, or discard this patch.