@@ -155,9 +155,8 @@ discard block |
||
| 155 | 155 | $this->isBaseWritten = true; |
| 156 | 156 | |
| 157 | 157 | $odata->rowCount = $this->getRequest()->queryType == QueryType::ENTITIES_WITH_COUNT() ? |
| 158 | - $this->getRequest()->getCountValue() : |
|
| 159 | - null; |
|
| 160 | - $odata->entries = array_map(function($entry){ |
|
| 158 | + $this->getRequest()->getCountValue() : null; |
|
| 159 | + $odata->entries = array_map(function ($entry) { |
|
| 161 | 160 | return $this->writeTopLevelElement( |
| 162 | 161 | $entry instanceof QueryResult ? $entry : new QueryResult($entry) |
| 163 | 162 | ); |
@@ -167,7 +166,7 @@ discard block |
||
| 167 | 166 | $pageSize = $this->getService()->getConfiguration()->getEntitySetPageSize($resourceSet); |
| 168 | 167 | $requestTop = $this->getRequest()->getTopOptionCount() ?? $pageSize + 1; |
| 169 | 168 | if (true === $entryObjects->hasMore && $requestTop > $pageSize) { |
| 170 | - $odata->nextPageLink = new ODataLink( |
|
| 169 | + $odata->nextPageLink = new ODataLink( |
|
| 171 | 170 | ODataConstants::ATOM_LINK_NEXT_ATTRIBUTE_STRING, |
| 172 | 171 | null, |
| 173 | 172 | null, |
@@ -737,7 +736,7 @@ discard block |
||
| 737 | 736 | return false; |
| 738 | 737 | } |
| 739 | 738 | |
| 740 | - return 0 == ($value % 4); |
|
| 739 | + return 0 == ($value%4); |
|
| 741 | 740 | } |
| 742 | 741 | |
| 743 | 742 | /** |
@@ -868,7 +867,7 @@ discard block |
||
| 868 | 867 | ODataConstants::HTTPQUERY_STRING_EXPAND, |
| 869 | 868 | ODataConstants::HTTPQUERY_STRING_ORDERBY, |
| 870 | 869 | ODataConstants::HTTPQUERY_STRING_INLINECOUNT, |
| 871 | - ODataConstants::HTTPQUERY_STRING_SELECT,] as $queryOption) { |
|
| 870 | + ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) { |
|
| 872 | 871 | $value = $this->getService()->getHost()->getQueryStringItem($queryOption); |
| 873 | 872 | if (null !== $value) { |
| 874 | 873 | if (null !== $queryParameterString) { |
@@ -157,7 +157,7 @@ |
||
| 157 | 157 | $odata->rowCount = $this->getRequest()->queryType == QueryType::ENTITIES_WITH_COUNT() ? |
| 158 | 158 | $this->getRequest()->getCountValue() : |
| 159 | 159 | null; |
| 160 | - $odata->entries = array_map(function($entry){ |
|
| 160 | + $odata->entries = array_map(function($entry) { |
|
| 161 | 161 | return $this->writeTopLevelElement( |
| 162 | 162 | $entry instanceof QueryResult ? $entry : new QueryResult($entry) |
| 163 | 163 | ); |