Test Failed
Push — master ( 3b592a...bb5d16 )
by Bálint
03:53
created
src/POData/Writers/Json/JsonLightODataWriter.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -281,14 +281,14 @@
 block discarded – undo
281 281
     protected function writeNextPageLink(ODataLink $nextPageLinkUri = null)
282 282
     {
283 283
         
284
-		// "__next" : uri
285
-		if ($nextPageLinkUri != null) {
286
-			$this->_writer
287
-				->writeName(ODataConstants::JSON_NEXT_STRING)
288
-				->writeValue($nextPageLinkUri->url);
289
-		}
290
-
291
-		return $this;
284
+        // "__next" : uri
285
+        if ($nextPageLinkUri != null) {
286
+            $this->_writer
287
+                ->writeName(ODataConstants::JSON_NEXT_STRING)
288
+                ->writeValue($nextPageLinkUri->url);
289
+        }
290
+
291
+        return $this;
292 292
 		
293 293
     }
294 294
 
Please login to merge, or discard this patch.
src/POData/ObjectModel/ObjectModelSerializer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
             $accept_ext = isset($matches['accept_ext']) ? $matches['accept_ext'] : '';
332 332
             $accept_extensions_tmp = explode(';', trim($accept_ext, ' \n\r\t\v\0;'));
333 333
             $accept_extensions = [];
334
-            foreach($accept_extensions_tmp as $accept_extension) {
334
+            foreach ($accept_extensions_tmp as $accept_extension) {
335 335
                 $parts = explode('=', $accept_extension);
336 336
                 $accept_extensions[$parts[0]] = $accept_extension;
337 337
             }
@@ -921,7 +921,7 @@  discard block
 block discarded – undo
921 921
             $stringValue = ($primitiveValue === true) ? 'true' : 'false';
922 922
         } else if ($type instanceof Binary) {
923 923
             if (is_resource($primitiveValue)) {
924
-                $stringValue = 'data:'.mime_content_type($primitiveValue).';base64,'.base64_encode(stream_get_contents($primitiveValue));
924
+                $stringValue = 'data:' . mime_content_type($primitiveValue) . ';base64,' . base64_encode(stream_get_contents($primitiveValue));
925 925
             } else {
926 926
                 $stringValue = base64_encode($primitiveValue);
927 927
             }
Please login to merge, or discard this patch.