@@ -877,10 +877,10 @@ |
||
| 877 | 877 | { |
| 878 | 878 | $queryParameterString = null; |
| 879 | 879 | foreach ([ODataConstants::HTTPQUERY_STRING_FILTER, |
| 880 | - ODataConstants::HTTPQUERY_STRING_EXPAND, |
|
| 881 | - ODataConstants::HTTPQUERY_STRING_ORDERBY, |
|
| 882 | - ODataConstants::HTTPQUERY_STRING_INLINECOUNT, |
|
| 883 | - ODataConstants::HTTPQUERY_STRING_SELECT,] as $queryOption) { |
|
| 880 | + ODataConstants::HTTPQUERY_STRING_EXPAND, |
|
| 881 | + ODataConstants::HTTPQUERY_STRING_ORDERBY, |
|
| 882 | + ODataConstants::HTTPQUERY_STRING_INLINECOUNT, |
|
| 883 | + ODataConstants::HTTPQUERY_STRING_SELECT,] as $queryOption) { |
|
| 884 | 884 | $value = $this->getService()->getHost()->getQueryStringItem($queryOption); |
| 885 | 885 | if (null !== $value) { |
| 886 | 886 | if (null !== $queryParameterString) { |
@@ -145,19 +145,18 @@ discard block |
||
| 145 | 145 | $selfLink->title = $title; |
| 146 | 146 | $selfLink->url = $relativeUri; |
| 147 | 147 | |
| 148 | - $entries = array_map(function($entry){ |
|
| 148 | + $entries = array_map(function ($entry) { |
|
| 149 | 149 | return $this->writeTopLevelElement( |
| 150 | 150 | $entry instanceof QueryResult ? $entry : new QueryResult($entry) |
| 151 | 151 | ); |
| 152 | 152 | }, $res); |
| 153 | 153 | |
| 154 | - $odata = new ODataFeed( |
|
| 154 | + $odata = new ODataFeed( |
|
| 155 | 155 | $absoluteUri, |
| 156 | 156 | new ODataTitle($title), |
| 157 | 157 | $selfLink, |
| 158 | 158 | $this->getRequest()->queryType == QueryType::ENTITIES_WITH_COUNT() ? |
| 159 | - $this->getRequest()->getCountValue() : |
|
| 160 | - null, |
|
| 159 | + $this->getRequest()->getCountValue() : null, |
|
| 161 | 160 | null, |
| 162 | 161 | $entries, |
| 163 | 162 | $this->getUpdated()->format(DATE_ATOM), |
@@ -170,7 +169,7 @@ discard block |
||
| 170 | 169 | $pageSize = $this->getService()->getConfiguration()->getEntitySetPageSize($resourceSet); |
| 171 | 170 | $requestTop = $this->getRequest()->getTopOptionCount() ?? $pageSize + 1; |
| 172 | 171 | if (true === $entryObjects->hasMore && $requestTop > $pageSize) { |
| 173 | - $odata->nextPageLink = new ODataLink( |
|
| 172 | + $odata->nextPageLink = new ODataLink( |
|
| 174 | 173 | ODataConstants::ATOM_LINK_NEXT_ATTRIBUTE_STRING, |
| 175 | 174 | null, |
| 176 | 175 | null, |
@@ -740,7 +739,7 @@ discard block |
||
| 740 | 739 | return false; |
| 741 | 740 | } |
| 742 | 741 | |
| 743 | - return 0 == ($value % 4); |
|
| 742 | + return 0 == ($value%4); |
|
| 744 | 743 | } |
| 745 | 744 | |
| 746 | 745 | /** |
@@ -871,7 +870,7 @@ discard block |
||
| 871 | 870 | ODataConstants::HTTPQUERY_STRING_EXPAND, |
| 872 | 871 | ODataConstants::HTTPQUERY_STRING_ORDERBY, |
| 873 | 872 | ODataConstants::HTTPQUERY_STRING_INLINECOUNT, |
| 874 | - ODataConstants::HTTPQUERY_STRING_SELECT,] as $queryOption) { |
|
| 873 | + ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) { |
|
| 875 | 874 | $value = $this->getService()->getHost()->getQueryStringItem($queryOption); |
| 876 | 875 | if (null !== $value) { |
| 877 | 876 | if (null !== $queryParameterString) { |