Passed
Push — develop ( f71acf...d203de )
by Pablo
05:22 queued 02:45
created
src/Controller/Base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
 
165 165
         if (empty($aData)) {
166 166
             $sData = $this->getRequestBody();
167
-            $aData = json_decode($sData, true) ?: [];
167
+            $aData = json_decode($sData, true) ? : [];
168 168
         }
169 169
 
170 170
         return $aData;
Please login to merge, or discard this patch.
src/Controller/DefaultController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         );
91 91
 
92 92
         if (is_null($iPage)) {
93
-            $iPage = (int) $oInput->get('page') ?: 1;
93
+            $iPage = (int) $oInput->get('page') ? : 1;
94 94
         }
95 95
 
96 96
         if (is_null($iPerPage)) {
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
             static::CONFIG_MODEL_NAME,
184 184
             static::CONFIG_MODEL_PROVIDER
185 185
         );
186
-        $sKeywords  = $oInput->get('search') ?: $oInput->get('keywords');
186
+        $sKeywords  = $oInput->get('search') ? : $oInput->get('keywords');
187 187
         $iPage      = (int) $oInput->get('page');
188 188
 
189 189
         if (strlen($sKeywords) < static::CONFIG_MIN_SEARCH_LENGTH) {
Please login to merge, or discard this patch.