@@ -22,7 +22,7 @@ |
||
| 22 | 22 | <?php |
| 23 | 23 | if (true === $useCaptcha) { |
| 24 | 24 | if (\App::$Captcha->isFull()) { |
| 25 | - echo '<div class="col-md-offset-3 col-md-9">' . \App::$Captcha->get() . '</div>'; |
|
| 25 | + echo '<div class="col-md-offset-3 col-md-9">'.\App::$Captcha->get().'</div>'; |
|
| 26 | 26 | } else { |
| 27 | 27 | echo $form->field('captcha', 'captcha', ['class' => 'form-control'], __('Enter data from security image to prove that you are human. If you can\'t read symbols - click on image to reload')); |
| 28 | 28 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | <?= $form->field('email', 'email', ['class' => 'form-control'], __('Input your account email')); ?> |
| 19 | 19 | <?php |
| 20 | 20 | if (\App::$Captcha->isFull()) { |
| 21 | - echo '<div class="col-md-offset-3 col-md-9">' . \App::$Captcha->get() . '</div>'; |
|
| 21 | + echo '<div class="col-md-offset-3 col-md-9">'.\App::$Captcha->get().'</div>'; |
|
| 22 | 22 | } else { |
| 23 | 23 | echo $form->field('captcha', 'captcha', ['class' => 'form-control'], __('Enter data from security image to prove that you are human. If you can\'t read symbols - click on image to reload')); |
| 24 | 24 | } |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | /** @var $pagination object */ |
| 12 | 12 | /** @var $ratingOn int */ |
| 13 | 13 | |
| 14 | -$this->title = __('User list') . ': ' . __('Search'); |
|
| 14 | +$this->title = __('User list').': '.__('Search'); |
|
| 15 | 15 | |
| 16 | 16 | $this->breadcrumbs = [ |
| 17 | 17 | Url::to('main/index') => __('Home'), |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | <?php |
| 36 | 36 | if ($records === null || $records->count() < 1) { |
| 37 | 37 | if ($model->send()) { |
| 38 | - echo '<div class="row"><div class="col-md-12"><div class="alert alert-danger">' . __('Users are not founded!') . '</div></div></div>'; |
|
| 38 | + echo '<div class="row"><div class="col-md-12"><div class="alert alert-danger">'.__('Users are not founded!').'</div></div></div>'; |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | return; |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | |
| 22 | 22 | <?php |
| 23 | 23 | if ($records->count() < 1) { |
| 24 | - echo '<p class="alert alert-warning">' . __('No requests is founded') . '</p>'; |
|
| 24 | + echo '<p class="alert alert-warning">'.__('No requests is founded').'</p>'; |
|
| 25 | 25 | return; |
| 26 | 26 | } |
| 27 | 27 | $items = []; |
@@ -30,9 +30,8 @@ discard block |
||
| 30 | 30 | ['text' => $item->id], |
| 31 | 31 | ['text' => Url::link(['feedback/read', $item->id, $item->hash], Text::cut($item->message, 0, 40)), 'html' => true], |
| 32 | 32 | ['text' => |
| 33 | - (int)$item->closed === 1 ? |
|
| 34 | - '<span class="label label-danger">' . __('Closed') . '</span>' : |
|
| 35 | - '<span class="label label-success">' . __('Opened') . '</span>', |
|
| 33 | + (int) $item->closed === 1 ? |
|
| 34 | + '<span class="label label-danger">'.__('Closed').'</span>' : '<span class="label label-success">'.__('Opened').'</span>', |
|
| 36 | 35 | 'html' => true, '!secure' => true], |
| 37 | 36 | ['text' => Date::convertToDatetime($item->created_at, Date::FORMAT_TO_HOUR)], |
| 38 | 37 | ['text' => Date::convertToDatetime($item->updated_at, Date::FORMAT_TO_HOUR)] |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | |
| 31 | 31 | <?php if ($useCaptcha === true) { |
| 32 | 32 | if (\App::$Captcha->isFull()) { |
| 33 | - echo '<div class="col-md-offset-3 col-md-9">' . \App::$Captcha->get() . '</div>'; |
|
| 33 | + echo '<div class="col-md-offset-3 col-md-9">'.\App::$Captcha->get().'</div>'; |
|
| 34 | 34 | } else { |
| 35 | 35 | echo $form->field('captcha', 'captcha', ['class' => 'form-control'], __('Enter data from security image to prove that you are human. If you can\'t read symbols - click on image to reload')); |
| 36 | 36 | } |
@@ -7,8 +7,8 @@ |
||
| 7 | 7 | $numericRating = 0; |
| 8 | 8 | if ($rating > 0) { |
| 9 | 9 | $cssRatingClass = 'label-success'; |
| 10 | - $numericRating = '+' . $rating; |
|
| 11 | -} elseif($rating < 0) { |
|
| 10 | + $numericRating = '+'.$rating; |
|
| 11 | +} elseif ($rating < 0) { |
|
| 12 | 12 | $cssRatingClass = 'label-danger'; |
| 13 | 13 | $numericRating = $rating; |
| 14 | 14 | } |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | public function before() |
| 34 | 34 | { |
| 35 | 35 | // get full name of update object |
| 36 | - $class = 'Apps\Controller\Admin\\' . $this->_record->sys_name; |
|
| 36 | + $class = 'Apps\Controller\Admin\\'.$this->_record->sys_name; |
|
| 37 | 37 | if (class_exists($class)) { |
| 38 | 38 | $this->_callback = $class; |
| 39 | 39 | } else { |
@@ -62,8 +62,8 @@ |
||
| 62 | 62 | ]; |
| 63 | 63 | |
| 64 | 64 | foreach (App::$Properties->get('languages') as $lang) { |
| 65 | - $rules[] = ['name.' . $lang, 'required']; |
|
| 66 | - $rules[] = ['name.' . $lang, 'length_max', 50]; |
|
| 65 | + $rules[] = ['name.'.$lang, 'required']; |
|
| 66 | + $rules[] = ['name.'.$lang, 'length_max', 50]; |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | return $rules; |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | $configData = [ |
| 59 | 59 | ucfirst(Str::lowerCase($this->type)) => [ |
| 60 | 60 | ucfirst(Str::lowerCase($this->loader)) => [ |
| 61 | - '/' . trim($this->source, '/') => '/' . trim($this->target, '/') |
|
| 61 | + '/'.trim($this->source, '/') => '/'.trim($this->target, '/') |
|
| 62 | 62 | ] |
| 63 | 63 | ] |
| 64 | 64 | ]; |