Passed
Pull Request — master (#263)
by Christopher
04:36 queued 01:08
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   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -146,19 +146,18 @@  discard block
 block discarded – undo
146 146
         $selfLink->url   = $relativeUri;
147 147
 
148 148
 
149
-        $entries = array_map(function($entry){
149
+        $entries = array_map(function ($entry) {
150 150
             return $this->writeTopLevelElement(
151 151
                 $entry instanceof QueryResult ? $entry : new QueryResult($entry)
152 152
             );
153 153
         }, $res);
154 154
 
155
-        $odata               = new ODataFeed(
155
+        $odata = new ODataFeed(
156 156
             $absoluteUri,
157 157
             new ODataTitle($title),
158 158
             $selfLink,
159 159
             $this->getRequest()->queryType == QueryType::ENTITIES_WITH_COUNT() ?
160
-                $this->getRequest()->getCountValue() :
161
-                null,
160
+                $this->getRequest()->getCountValue() : null,
162 161
             null,
163 162
             $entries,
164 163
             $this->getUpdated()->format(DATE_ATOM),
@@ -171,7 +170,7 @@  discard block
 block discarded – undo
171 170
         $pageSize    = $this->getService()->getConfiguration()->getEntitySetPageSize($resourceSet);
172 171
         $requestTop  = $this->getRequest()->getTopOptionCount() ?? $pageSize + 1;
173 172
         if (true === $entryObjects->hasMore && $requestTop > $pageSize) {
174
-            $odata->nextPageLink            = new ODataLink(
173
+            $odata->nextPageLink = new ODataLink(
175 174
                 ODataConstants::ATOM_LINK_NEXT_ATTRIBUTE_STRING,
176 175
                 null,
177 176
                 null,
@@ -741,7 +740,7 @@  discard block
 block discarded – undo
741 740
             return false;
742 741
         }
743 742
 
744
-        return 0 == ($value % 4);
743
+        return 0 == ($value%4);
745 744
     }
746 745
 
747 746
     /**
@@ -872,7 +871,7 @@  discard block
 block discarded – undo
872 871
                      ODataConstants::HTTPQUERY_STRING_EXPAND,
873 872
                      ODataConstants::HTTPQUERY_STRING_ORDERBY,
874 873
                      ODataConstants::HTTPQUERY_STRING_INLINECOUNT,
875
-                     ODataConstants::HTTPQUERY_STRING_SELECT,] as $queryOption) {
874
+                     ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) {
876 875
             $value = $this->getService()->getHost()->getQueryStringItem($queryOption);
877 876
             if (null !== $value) {
878 877
                 if (null !== $queryParameterString) {
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
         $selfLink->url   = $relativeUri;
147 147
 
148 148
 
149
-        $entries = array_map(function($entry){
149
+        $entries = array_map(function($entry) {
150 150
             return $this->writeTopLevelElement(
151 151
                 $entry instanceof QueryResult ? $entry : new QueryResult($entry)
152 152
             );
Please login to merge, or discard this patch.