Passed
Push — master ( cd8fb9...0b9e04 )
by Nicolaas
03:44
created
src/Admin/SearchAdmin.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
             ->setWordsAsString($this->keywords)
188 188
             ->getLinks()
189 189
         ;
190
-        if($results->count() === 1) {
190
+        if ($results->count() === 1) {
191 191
             $result = $results->first();
192 192
             $this->redirect($result->CMSEditLink);
193 193
             return null;
@@ -220,16 +220,16 @@  discard block
 block discarded – undo
220 220
     {
221 221
         // Accessing the session
222 222
         $session = $this->getRequest()->getSession();
223
-        if($this->quickSearchType) {
223
+        if ($this->quickSearchType) {
224 224
             $session->set('QuickSearchType', $this->quickSearchType);
225
-        } elseif($session) {
225
+        } elseif ($session) {
226 226
             $this->quickSearchType = $session->get('QuickSearchType');
227
-            if(isset($_GET['flush'])) {
227
+            if (isset($_GET['flush'])) {
228 228
                 $this->quickSearchType = '';
229 229
                 $session->set('QuickSearchType', '');
230 230
             }
231 231
         }
232
-        if(!$this->quickSearchType) {
232
+        if (!$this->quickSearchType) {
233 233
             $this->quickSearchType = $this->Config()->get('default_quick_search_type');
234 234
         }
235 235
         return (string) $this->quickSearchType;
Please login to merge, or discard this patch.