Passed
Pull Request — master (#263)
by Christopher
03:48
created
src/POData/ObjectModel/CynicSerialiser.php 3 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -877,10 +877,10 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -155,9 +155,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@
 block discarded – undo
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
             );
Please login to merge, or discard this patch.