Test Failed
Push — master ( f2073e...d0d4fa )
by Bálint
05:24
created
src/POData/ObjectModel/ObjectModelSerializer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         );
73 73
 
74 74
         $toplevel_properties = $this->_writeCustomTopLevelProperties();
75
-        array_push($entry->customProperties->properties,...$toplevel_properties);
75
+        array_push($entry->customProperties->properties, ...$toplevel_properties);
76 76
 
77 77
         $this->popSegment($needPop);
78 78
         return $entry;
@@ -112,8 +112,8 @@  discard block
 block discarded – undo
112 112
             $feed->rowCount = $this->request->getCountValue();
113 113
         }
114 114
 
115
-        $toplevel_properties =  $this->_writeCustomTopLevelProperties();
116
-        array_push($feed->customProperties->properties,...$toplevel_properties);
115
+        $toplevel_properties = $this->_writeCustomTopLevelProperties();
116
+        array_push($feed->customProperties->properties, ...$toplevel_properties);
117 117
 
118 118
         $needPop = $this->pushSegmentForRoot();
119 119
         $targetResourceType = $this->request->getTargetResourceType();
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
 
401 401
     private function _writeCustomTopLevelProperties()
402 402
     {
403
-        $odataProperties= [];
403
+        $odataProperties = [];
404 404
         $properties = $this->service->getQueryProvider()->getCustomFeedProperties();
405 405
 
406 406
         //First write out primitve types
@@ -899,7 +899,7 @@  discard block
 block discarded – undo
899 899
         } else if (($type instanceof DateTime || $type instanceof StringType) && ($primitiveValue instanceof \DateTime || $primitiveValue instanceof \DateTimeImmutable)) {
900 900
             $stringValue = $primitiveValue->format(\DateTime::ATOM);
901 901
         } else if ($type instanceof StringType && $primitiveValue instanceof \DateInterval) {
902
-            $stringValue = (($primitiveValue->d * 86400) + ($primitiveValue->h * 3600) + ($primitiveValue->i * 60) + $primitiveValue->s) * 1000;
902
+            $stringValue = (($primitiveValue->d*86400) + ($primitiveValue->h*3600) + ($primitiveValue->i*60) + $primitiveValue->s)*1000;
903 903
             // $stringValue = intval($primitiveValue->format('%s'))*1000; // Miliszekundumokkáé
904 904
         } else if ($type instanceof StringType) {
905 905
             $stringValue = mb_convert_encoding($primitiveValue, 'UTF-8');
Please login to merge, or discard this patch.