Passed
Pull Request — master (#263)
by Christopher
04:36 queued 01:08
created
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 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -414,7 +414,7 @@
 block discarded – undo
414 414
 
415 415
         $textLen = strlen($text);
416 416
         if ($textIndex >= $textLen || '.' != $text[$textIndex]) {
417
-            return $qualityValue * 1000;
417
+            return $qualityValue*1000;
418 418
         }
419 419
 
420 420
         ++$textIndex;
Please login to merge, or discard this patch.
src/POData/ObjectModel/CynicSerialiser.php 1 patch
Spacing   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -146,19 +146,18 @@  discard block
 block discarded – undo
146 146
         $selfLink->url   = $relativeUri;
147 147
 
148 148
 
149
-        $entries = array_map(function($entry){
149
+        $entries = array_map(function ($entry) {
150 150
             return $this->writeTopLevelElement(
151 151
                 $entry instanceof QueryResult ? $entry : new QueryResult($entry)
152 152
             );
153 153
         }, $res);
154 154
 
155
-        $odata               = new ODataFeed(
155
+        $odata = new ODataFeed(
156 156
             $absoluteUri,
157 157
             new ODataTitle($title),
158 158
             $selfLink,
159 159
             $this->getRequest()->queryType == QueryType::ENTITIES_WITH_COUNT() ?
160
-                $this->getRequest()->getCountValue() :
161
-                null,
160
+                $this->getRequest()->getCountValue() : null,
162 161
             null,
163 162
             $entries,
164 163
             $this->getUpdated()->format(DATE_ATOM),
@@ -171,7 +170,7 @@  discard block
 block discarded – undo
171 170
         $pageSize    = $this->getService()->getConfiguration()->getEntitySetPageSize($resourceSet);
172 171
         $requestTop  = $this->getRequest()->getTopOptionCount() ?? $pageSize + 1;
173 172
         if (true === $entryObjects->hasMore && $requestTop > $pageSize) {
174
-            $odata->nextPageLink            = new ODataLink(
173
+            $odata->nextPageLink = new ODataLink(
175 174
                 ODataConstants::ATOM_LINK_NEXT_ATTRIBUTE_STRING,
176 175
                 null,
177 176
                 null,
@@ -741,7 +740,7 @@  discard block
 block discarded – undo
741 740
             return false;
742 741
         }
743 742
 
744
-        return 0 == ($value % 4);
743
+        return 0 == ($value%4);
745 744
     }
746 745
 
747 746
     /**
@@ -872,7 +871,7 @@  discard block
 block discarded – undo
872 871
                      ODataConstants::HTTPQUERY_STRING_EXPAND,
873 872
                      ODataConstants::HTTPQUERY_STRING_ORDERBY,
874 873
                      ODataConstants::HTTPQUERY_STRING_INLINECOUNT,
875
-                     ODataConstants::HTTPQUERY_STRING_SELECT,] as $queryOption) {
874
+                     ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) {
876 875
             $value = $this->getService()->getHost()->getQueryStringItem($queryOption);
877 876
             if (null !== $value) {
878 877
                 if (null !== $queryParameterString) {
Please login to merge, or discard this patch.