Passed
Pull Request — master (#263)
by Christopher
02:56
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
@@ -139,13 +139,13 @@  discard block
 block discarded – undo
139 139
 
140 140
         $baseUri = $this->isBaseWritten ? null : $this->absoluteServiceUriWithSlash;
141 141
         $this->isBaseWritten = true;
142
-        $entries = array_map(function($entry){
142
+        $entries = array_map(function ($entry) {
143 143
             return $this->writeTopLevelElement(
144 144
                 $entry instanceof QueryResult ? $entry : new QueryResult($entry)
145 145
             );
146 146
         }, $res);
147 147
 
148
-        $odata               = new ODataFeed(
148
+        $odata = new ODataFeed(
149 149
             $this->getRequest()->getRequestUrl()->getUrlAsString(),
150 150
             new ODataTitle($this->getRequest()->getContainerName()),
151 151
             new ODataLink(
@@ -155,8 +155,7 @@  discard block
 block discarded – undo
155 155
                 $this->getRequest()->getIdentifier()
156 156
             ),
157 157
             $this->getRequest()->queryType == QueryType::ENTITIES_WITH_COUNT() ?
158
-                $this->getRequest()->getCountValue() :
159
-                null,
158
+                $this->getRequest()->getCountValue() : null,
160 159
             null,
161 160
             $entries,
162 161
             $this->getUpdated()->format(DATE_ATOM),
@@ -169,7 +168,7 @@  discard block
 block discarded – undo
169 168
         $pageSize    = $this->getService()->getConfiguration()->getEntitySetPageSize($resourceSet);
170 169
         $requestTop  = $this->getRequest()->getTopOptionCount() ?? $pageSize + 1;
171 170
         if (true === $entryObjects->hasMore && $requestTop > $pageSize) {
172
-            $odata->nextPageLink            = new ODataLink(
171
+            $odata->nextPageLink = new ODataLink(
173 172
                 ODataConstants::ATOM_LINK_NEXT_ATTRIBUTE_STRING,
174 173
                 null,
175 174
                 null,
@@ -739,7 +738,7 @@  discard block
 block discarded – undo
739 738
             return false;
740 739
         }
741 740
 
742
-        return 0 == ($value % 4);
741
+        return 0 == ($value%4);
743 742
     }
744 743
 
745 744
     /**
@@ -870,7 +869,7 @@  discard block
 block discarded – undo
870 869
                      ODataConstants::HTTPQUERY_STRING_EXPAND,
871 870
                      ODataConstants::HTTPQUERY_STRING_ORDERBY,
872 871
                      ODataConstants::HTTPQUERY_STRING_INLINECOUNT,
873
-                     ODataConstants::HTTPQUERY_STRING_SELECT,] as $queryOption) {
872
+                     ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) {
874 873
             $value = $this->getService()->getHost()->getQueryStringItem($queryOption);
875 874
             if (null !== $value) {
876 875
                 if (null !== $queryParameterString) {
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
 
140 140
         $baseUri = $this->isBaseWritten ? null : $this->absoluteServiceUriWithSlash;
141 141
         $this->isBaseWritten = true;
142
-        $entries = array_map(function($entry){
142
+        $entries = array_map(function($entry) {
143 143
             return $this->writeTopLevelElement(
144 144
                 $entry instanceof QueryResult ? $entry : new QueryResult($entry)
145 145
             );
Please login to merge, or discard this patch.