Passed
Push — master ( bc905b...ef8807 )
by Mihail
04:40
created
Apps/Controller/Admin/User/ActionIndex.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,14 +30,14 @@
 block discarded – undo
30 30
         // check if search query passed
31 31
         $query = $this->request->query->get('search', null);
32 32
         if ($query && Any::isStr($query) && Str::length($query) > 1) {
33
-            $record = $record->where(function ($db) use ($query) {
34
-                $db->where('login', 'like', '%' . $query . '%')
35
-                    ->orWhere('email', 'like', '%' . $query . '%');
33
+            $record = $record->where(function($db) use ($query) {
34
+                $db->where('login', 'like', '%'.$query.'%')
35
+                    ->orWhere('email', 'like', '%'.$query.'%');
36 36
             });
37 37
         }
38 38
 
39 39
         // set current page num and offset
40
-        $page = (int)$this->request->query->get('page', 0);
40
+        $page = (int) $this->request->query->get('page', 0);
41 41
         $offset = $page * self::ITEM_PER_PAGE;
42 42
 
43 43
         // prepare pagination data
Please login to merge, or discard this patch.