@@ -281,14 +281,14 @@ |
||
| 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 | |
@@ -331,7 +331,7 @@ discard block |
||
| 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 |
||
| 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 | } |