Passed
Push — master ( 8a9029...1e484e )
by Mihail
03:29
created
Apps/Controller/Admin/User/ActionIndex.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,13 +31,13 @@
 block discarded – undo
31 31
         $query = $this->request->query->get('search', null);
32 32
         if ($query && Any::isStr($query) && Str::length($query) > 1) {
33 33
             $record = $record->where(function($db) use ($query){
34
-                $db->where('login', 'like', '%' . $query . '%')
35
-                    ->orWhere('email', 'like', '%' . $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.