@@ -103,7 +103,7 @@ |
||
| 103 | 103 | * |
| 104 | 104 | * @return int |
| 105 | 105 | */ |
| 106 | - public function getEntitySetPageSize(ResourceSet $resourceSet): int ; |
|
| 106 | + public function getEntitySetPageSize(ResourceSet $resourceSet): int; |
|
| 107 | 107 | |
| 108 | 108 | /** |
| 109 | 109 | * Sets the maximum page size for an entity set resource. |
@@ -20,7 +20,7 @@ discard block |
||
| 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. |
@@ -79,8 +79,7 @@ discard block |
||
| 79 | 79 | |
| 80 | 80 | $response = ''; |
| 81 | 81 | $splitter = false === $this->changeSetBoundary ? |
| 82 | - '' : |
|
| 83 | - '--' . $this->changeSetBoundary . $ODataEOL; |
|
| 82 | + '' : '--' . $this->changeSetBoundary . $ODataEOL; |
|
| 84 | 83 | $raw = $this->getRawRequests(); |
| 85 | 84 | foreach ($raw as $contentID => &$workingObject) { |
| 86 | 85 | $headers = $workingObject->Response->getHeaders(); |
@@ -102,16 +101,14 @@ discard block |
||
| 102 | 101 | } |
| 103 | 102 | $response .= trim($splitter); |
| 104 | 103 | $response .= false === $this->changeSetBoundary ? |
| 105 | - $ODataEOL : |
|
| 106 | - '--' . $ODataEOL; |
|
| 104 | + $ODataEOL : '--' . $ODataEOL; |
|
| 107 | 105 | $response = 'Content-Length: ' . |
| 108 | 106 | strlen($response) . |
| 109 | 107 | $ODataEOL . |
| 110 | 108 | $ODataEOL . |
| 111 | 109 | $response; |
| 112 | 110 | $response = false === $this->changeSetBoundary ? |
| 113 | - $response : |
|
| 114 | - 'Content-Type: multipart/mixed; boundary=' . |
|
| 111 | + $response : 'Content-Type: multipart/mixed; boundary=' . |
|
| 115 | 112 | $this->changeSetBoundary . |
| 116 | 113 | $ODataEOL . |
| 117 | 114 | $response; |
@@ -125,7 +122,7 @@ discard block |
||
| 125 | 122 | { |
| 126 | 123 | $ODataEOL = $this->getService()->getConfiguration()->getLineEndings(); |
| 127 | 124 | |
| 128 | - $firstLine = trim(strtok($this->getData(), $ODataEOL));// with trim matches both crlf and lf |
|
| 125 | + $firstLine = trim(strtok($this->getData(), $ODataEOL)); // with trim matches both crlf and lf |
|
| 129 | 126 | $this->changeSetBoundary = substr($firstLine, 40); |
| 130 | 127 | |
| 131 | 128 | $prefix = 'HTTP_'; |
@@ -201,7 +198,7 @@ discard block |
||
| 201 | 198 | $contentIDinit--; |
| 202 | 199 | } |
| 203 | 200 | |
| 204 | - $this->rawRequests[$contentID] = (object)[ |
|
| 201 | + $this->rawRequests[$contentID] = (object) [ |
|
| 205 | 202 | 'RequestVerb' => $requestPathParts[0], |
| 206 | 203 | 'RequestURL' => $requestPathParts[1], |
| 207 | 204 | 'ServerParams' => $serverParts, |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | $ODataEOL = $this->getService()->getConfiguration()->getLineEndings(); |
| 76 | 76 | |
| 77 | 77 | $response = ''; |
| 78 | - $splitter = '--' . $this->batchBoundary . $ODataEOL; |
|
| 78 | + $splitter = '--' . $this->batchBoundary . $ODataEOL; |
|
| 79 | 79 | $raw = $this->changeSetProcessors; |
| 80 | 80 | foreach ($raw as $contentID => &$workingObject) { |
| 81 | 81 | $response .= $splitter; |