Passed
Push — v5.x ( 7911f3...8eee51 )
by Thierry
02:06
created
src/Plugin/Response/Pagination/PaginatorPlugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -140,17 +140,17 @@
 block discarded – undo
140 140
     public function render(Paginator $xPaginator, Call $xCall, string $sWrapperId = '')
141 141
     {
142 142
         $aPages = $xPaginator->pages();
143
-        if(count($aPages) === 0)
143
+        if (count($aPages) === 0)
144 144
         {
145 145
             return;
146 146
         }
147
-        if(!($xStore = $this->_render($aPages)))
147
+        if (!($xStore = $this->_render($aPages)))
148 148
         {
149 149
             return;
150 150
         }
151 151
 
152 152
         // Append the page number to the parameter list, if not yet given.
153
-        if(!$xCall->hasPageNumber())
153
+        if (!$xCall->hasPageNumber())
154 154
         {
155 155
             $xCall->addParameter(Parameter::PAGE_NUMBER, 0);
156 156
         }
Please login to merge, or discard this patch.
src/Request/Call/Parameter.php 1 patch
Switch Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -166,30 +166,30 @@
 block discarded – undo
166 166
     {
167 167
         switch($this->getType())
168 168
         {
169
-        case self::JS_CALL:
170
-            return $this->getValue()->toArray();
171
-        case self::JS_VALUE:
172
-            return [
173
-                '_type' => 'expr',
174
-                'calls' => [['_type' => 'attr', '_name' => $this->getValue()]],
175
-            ];
176
-        case self::FORM_VALUES:
177
-            return ['_type' => 'form', '_name' => $this->getValue()];
178
-        case self::INPUT_VALUE:
179
-            return ['_type' => 'input', '_name' => $this->getValue()];
180
-        case self::CHECKED_VALUE:
181
-            return ['_type' => 'checked', '_name' => $this->getValue()];
182
-        case self::ELEMENT_INNERHTML:
183
-            return ['_type' => 'html', '_name' => $this->getValue()];
184
-        case self::PAGE_NUMBER:
185
-            return ['_type' => 'page', '_name' => ''];
186
-        case self::QUOTED_VALUE:
187
-        case self::BOOL_VALUE:
188
-        case self::NUMERIC_VALUE:
189
-        case self::JSON_VALUE:
190
-        default:
191
-            // Return the value as is.
192
-            return $this->getValue();
169
+            case self::JS_CALL:
170
+                return $this->getValue()->toArray();
171
+            case self::JS_VALUE:
172
+                return [
173
+                    '_type' => 'expr',
174
+                    'calls' => [['_type' => 'attr', '_name' => $this->getValue()]],
175
+                ];
176
+            case self::FORM_VALUES:
177
+                return ['_type' => 'form', '_name' => $this->getValue()];
178
+            case self::INPUT_VALUE:
179
+                return ['_type' => 'input', '_name' => $this->getValue()];
180
+            case self::CHECKED_VALUE:
181
+                return ['_type' => 'checked', '_name' => $this->getValue()];
182
+            case self::ELEMENT_INNERHTML:
183
+                return ['_type' => 'html', '_name' => $this->getValue()];
184
+            case self::PAGE_NUMBER:
185
+                return ['_type' => 'page', '_name' => ''];
186
+            case self::QUOTED_VALUE:
187
+            case self::BOOL_VALUE:
188
+            case self::NUMERIC_VALUE:
189
+            case self::JSON_VALUE:
190
+            default:
191
+                // Return the value as is.
192
+                return $this->getValue();
193 193
         }
194 194
     }
195 195
 }
Please login to merge, or discard this patch.