@@ -102,6 +102,6 @@ |
||
| 102 | 102 | public function identifierIs($id) |
| 103 | 103 | { |
| 104 | 104 | return $this->Id == ExpressionTokenId::IDENTIFIER |
| 105 | - && strcmp($this->Text, (string)$id) == 0; |
|
| 105 | + && strcmp($this->Text, (string) $id) == 0; |
|
| 106 | 106 | } |
| 107 | 107 | } |
| 108 | 108 | \ No newline at end of file |
@@ -850,7 +850,7 @@ |
||
| 850 | 850 | $stringValue = $primitiveValue->format(\DateTime::ATOM); |
| 851 | 851 | } else if ($type instanceof StringType && $primitiveValue instanceof \DateInterval) { |
| 852 | 852 | $stringValue = (($primitiveValue->d * 86400) + ($primitiveValue->h * 3600) + ($primitiveValue->i * 60) + $primitiveValue->s) * 1000; |
| 853 | - // $stringValue = intval($primitiveValue->format('%s'))*1000; // Miliszekundumokkáé |
|
| 853 | + // $stringValue = intval($primitiveValue->format('%s'))*1000; // Miliszekundumokkáé |
|
| 854 | 854 | } else if ($type instanceof StringType) { |
| 855 | 855 | $stringValue = mb_convert_encoding($primitiveValue, 'UTF-8'); |
| 856 | 856 | } else { |
@@ -849,7 +849,7 @@ |
||
| 849 | 849 | } else if (($type instanceof DateTime || $type instanceof StringType) && $primitiveValue instanceof \DateTime) { |
| 850 | 850 | $stringValue = $primitiveValue->format(\DateTime::ATOM); |
| 851 | 851 | } else if ($type instanceof StringType && $primitiveValue instanceof \DateInterval) { |
| 852 | - $stringValue = (($primitiveValue->d * 86400) + ($primitiveValue->h * 3600) + ($primitiveValue->i * 60) + $primitiveValue->s) * 1000; |
|
| 852 | + $stringValue = (($primitiveValue->d*86400) + ($primitiveValue->h*3600) + ($primitiveValue->i*60) + $primitiveValue->s)*1000; |
|
| 853 | 853 | // $stringValue = intval($primitiveValue->format('%s'))*1000; // Miliszekundumokkáé |
| 854 | 854 | } else if ($type instanceof StringType) { |
| 855 | 855 | $stringValue = mb_convert_encoding($primitiveValue, 'UTF-8'); |
@@ -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 | |