@@ -32,7 +32,7 @@ |
||
| 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> |
@@ -35,7 +35,7 @@ |
||
| 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 | ]); |
@@ -42,8 +42,8 @@ |
||
| 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 | ]); |
@@ -26,7 +26,7 @@ |
||
| 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 |
@@ -31,13 +31,13 @@ |
||
| 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 |