Test Failed
Push — master ( 66c0af...f2befc )
by Bálint
07:52 queued 03:31
created
src/POData/BaseService.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -440,22 +440,22 @@
 block discarded – undo
440 440
                         }
441 441
 
442 442
                         $output_stream = '';
443
-                        foreach($streams as $stream) {
444
-                            $output_stream.="--{$boundary}\r\n";
443
+                        foreach ($streams as $stream) {
444
+                            $output_stream .= "--{$boundary}\r\n";
445 445
                             if (!is_null($stream['content_id'])) {
446
-                                $output_stream.="Content-ID: {$stream['content_id']}\r\n";
446
+                                $output_stream .= "Content-ID: {$stream['content_id']}\r\n";
447 447
                             }
448
-                            $output_stream.="Content-Type: application/http\r\n";
449
-                            $output_stream.="Content-Transfer-Encoding: binary\r\n";
450
-                            $output_stream.="\r\n";
451
-                            $output_stream.="{$_SERVER['SERVER_PROTOCOL']} {$stream['status']}\r\n";
452
-                            $output_stream.="Content-Type: {$responseContentType}\r\n";
453
-                            $output_stream.="Content-Length: {$stream['length']}\r\n";
454
-                            $output_stream.="\r\n";
455
-                            $output_stream.=$stream['body']."\r\n";
456
-                            $output_stream.="\r\n";
448
+                            $output_stream .= "Content-Type: application/http\r\n";
449
+                            $output_stream .= "Content-Transfer-Encoding: binary\r\n";
450
+                            $output_stream .= "\r\n";
451
+                            $output_stream .= "{$_SERVER['SERVER_PROTOCOL']} {$stream['status']}\r\n";
452
+                            $output_stream .= "Content-Type: {$responseContentType}\r\n";
453
+                            $output_stream .= "Content-Length: {$stream['length']}\r\n";
454
+                            $output_stream .= "\r\n";
455
+                            $output_stream .= $stream['body'] . "\r\n";
456
+                            $output_stream .= "\r\n";
457 457
                         }
458
-                        $output_stream.="--{$boundary}--\r\n";
458
+                        $output_stream .= "--{$boundary}--\r\n";
459 459
                         $response->setStream($output_stream);
460 460
                         $this->_serviceHost->setResponseStatusCode(HttpStatus::CODE_ACCEPTED);
461 461
                         $this->_serviceHost->setResponseContentType("multipart/mixed; boundary={$boundary}");
Please login to merge, or discard this patch.
src/POData/ObjectModel/ObjectModelSerializer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -880,7 +880,7 @@
 block discarded – undo
880 880
         } else if (($type instanceof DateTime || $type instanceof StringType) && ($primitiveValue instanceof \DateTime || $primitiveValue instanceof \DateTimeImmutable)) {
881 881
             $stringValue = $primitiveValue->format(\DateTime::ATOM);
882 882
         } else if ($type instanceof StringType && $primitiveValue instanceof \DateInterval) {
883
-            $stringValue = (($primitiveValue->d * 86400) + ($primitiveValue->h * 3600) + ($primitiveValue->i * 60) + $primitiveValue->s) * 1000;
883
+            $stringValue = (($primitiveValue->d*86400) + ($primitiveValue->h*3600) + ($primitiveValue->i*60) + $primitiveValue->s)*1000;
884 884
             // $stringValue = intval($primitiveValue->format('%s'))*1000; // Miliszekundumokkáé
885 885
         } else if ($type instanceof StringType) {
886 886
             $stringValue = mb_convert_encoding($primitiveValue, 'UTF-8');
Please login to merge, or discard this patch.