Passed
Push — master ( 8a9029...1e484e )
by Mihail
03:29
created
Apps/View/Admin/default/profile/field_delete.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
             ['text' => $model->type]
33 33
         ])->row([
34 34
             ['text' => $model->getLabel('reg_exp')],
35
-            ['text' => ($model->reg_cond == 0 ? '!' : null) . 'preg_match("'.$model->reg_exp.'", $input)']
35
+            ['text' => ($model->reg_cond == 0 ? '!' : null).'preg_match("'.$model->reg_exp.'", $input)']
36 36
         ])->display();
37 37
     ?>
38 38
 </div>
Please login to merge, or discard this patch.
Apps/View/Admin/default/profile/field_update.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     $menu->menu([
36 36
         'text' => Str::upperCase($lang),
37 37
         'tab' => function() use ($form, $lang) {
38
-            return $form->fieldset()->text('name.' . $lang, null, __('Define field name, which be displayed for user for current language locale'));
38
+            return $form->fieldset()->text('name.'.$lang, null, __('Define field name, which be displayed for user for current language locale'));
39 39
         },
40 40
         'tabActive' => $lang === \App::$Request->getLanguage(),
41 41
     ]);
Please login to merge, or discard this patch.
Apps/View/Admin/default/profile/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@
 block discarded – undo
42 42
         ['text' => $profile->user->email],
43 43
         ['text' => $profile->nick],
44 44
         ['text' => Str::startsWith('0000-', $profile->birthday) ? __('None') : Date::convertToDatetime($profile->birthday)],
45
-        ['text' => ($profile->rating > 0 ? '+' : null) . $profile->rating],
46
-        ['text' => Url::a(['profile/update', [$profile->id]], '<i class="fa fa-pencil fa-lg"></i> ', ['html' => true]) .
45
+        ['text' => ($profile->rating > 0 ? '+' : null).$profile->rating],
46
+        ['text' => Url::a(['profile/update', [$profile->id]], '<i class="fa fa-pencil fa-lg"></i> ', ['html' => true]).
47 47
             Url::a(['user/delete', [$profile->user->id]], '<i class="fa fa-trash-o fa-lg"></i>', ['html' => true]),
48 48
             'html' => true, 'properties' => ['class' => 'text-center']]
49 49
     ]);
Please login to merge, or discard this patch.
Apps/Controller/Admin/Profile/ActionIndex.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         $query = Profile::with(['user']);
27 27
 
28 28
         // set current page and offset
29
-        $page = (int)$this->request->query->get('page');
29
+        $page = (int) $this->request->query->get('page');
30 30
         $offset = $page * self::ITEM_PER_PAGE;
31 31
 
32 32
         // count total items count for pagination builder
Please login to merge, or discard this patch.
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.