Passed
Pull Request — master (#255)
by Christopher
07:15 queued 03:28
created
src/POData/BatchProcessor/ChangeSetParser.php 1 patch
Spacing   +4 added lines, -7 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
             $this->processSubRequest($workingObject);
67 67
             if (HTTPRequestMethod::GET() != $workingObject->incomingRequest()->getMethod() &&
68
-                !strpos($workingObject->incomingRequest()->getRawUrl(),  '/$links/') == false) {
68
+                !strpos($workingObject->incomingRequest()->getRawUrl(), '/$links/') == false) {
69 69
                 if (null === $workingObject->outgoingResponse()->getHeaders()['Location']) {
70 70
                     $msg = 'Location header not set in subrequest response for ' . $workingObject->incomingRequest()->getMethod()
71 71
                         . ' request url ' . $workingObject->incomingRequest()->getRawUrl();
@@ -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;
Please login to merge, or discard this patch.