Completed
Pull Request — master (#268)
by Alex
03:26
created
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   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
         $pageSize              = $this->getService()->getConfiguration()->getEntitySetPageSize(
137 137
             $this->getRequest()->getTargetResourceSetWrapper()->getResourceSet()
138 138
         );
139
-        $requestTop  = $this->getRequest()->getTopOptionCount() ?? PHP_INT_MAX ;
139
+        $requestTop = $this->getRequest()->getTopOptionCount() ?? PHP_INT_MAX;
140 140
         $entryObjects->hasMore &= $requestTop > $pageSize;
141 141
 
142 142
         $this->loadStackIfEmpty();
@@ -155,8 +155,7 @@  discard block
 block discarded – undo
155 155
                 $request->getIdentifier()
156 156
             ),
157 157
             $request->queryType == QueryType::ENTITIES_WITH_COUNT() ?
158
-                $request->getCountValue() :
159
-                null,
158
+                $request->getCountValue() : null,
160 159
             $entryObjects->hasMore ? new ODataLink(
161 160
                 ODataConstants::ATOM_LINK_NEXT_ATTRIBUTE_STRING,
162 161
                 null,
@@ -737,7 +736,7 @@  discard block
 block discarded – undo
737 736
             return false;
738 737
         }
739 738
 
740
-        return 0 == ($value % 4);
739
+        return 0 == ($value%4);
741 740
     }
742 741
 
743 742
     /**
@@ -868,7 +867,7 @@  discard block
 block discarded – undo
868 867
             ODataConstants::HTTPQUERY_STRING_EXPAND,
869 868
             ODataConstants::HTTPQUERY_STRING_ORDERBY,
870 869
             ODataConstants::HTTPQUERY_STRING_INLINECOUNT,
871
-            ODataConstants::HTTPQUERY_STRING_SELECT,] as $queryOption) {
870
+            ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) {
872 871
             $value = $this->getService()->getHost()->getQueryStringItem($queryOption);
873 872
             if (null !== $value) {
874 873
                 if (null !== $queryParameterString) {
Please login to merge, or discard this patch.
src/POData/Providers/Metadata/Type/Binary.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
     public static function validateWithoutPrefix(string $value, &$outValue)
103 103
     {
104 104
         $length = strlen($value);
105
-        if (0 == $length || 0 != $length % 2) {
105
+        if (0 == $length || 0 != $length%2) {
106 106
             return false;
107 107
         }
108 108
 
Please login to merge, or discard this patch.