Passed
Push — master ( 1fadb0...f949a1 )
by Mihail
08:15
created
Apps/View/Front/default/user/recovery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Apps/View/Front/default/profile/search.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
Apps/View/Front/default/profile/settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 <?= $form->field('url', 'text', ['class' => 'form-control'], __('If you have your own homepage - enter url there')) ?>
35 35
 <?php
36 36
 foreach (ProfileField::getAll() as $custom) {
37
-    echo $form->field('custom_data.' . $custom->id, 'text', ['class' => 'form-control']);
37
+    echo $form->field('custom_data.'.$custom->id, 'text', ['class' => 'form-control']);
38 38
 }
39 39
 ?>
40 40
 
Please login to merge, or discard this patch.
Apps/View/Front/default/feedback/list.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)]
Please login to merge, or discard this patch.
Apps/View/Front/default/feedback/mail/created.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
                 <tbody>
34 34
                 <tr>
35 35
                     <td align="left" style="font-family:Helvetica Neue,Arial,Helvetica,sans-serif;padding-left:9px;font-size:14px;">
36
-                        <a href="<?= \App::$Alias->scriptUrl ?>/feedback/read/<?= $record->id . '/' . $record->hash ?>">
36
+                        <a href="<?= \App::$Alias->scriptUrl ?>/feedback/read/<?= $record->id.'/'.$record->hash ?>">
37 37
                             <?= __('View request') ?>
38 38
                         </a>
39 39
                     </td>
Please login to merge, or discard this patch.
Apps/View/Front/default/feedback/read.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@  discard block
 block discarded – undo
27 27
 ?>
28 28
 
29 29
 <?php
30
-if ((int)$post->closed === 0 && \App::$User->isAuth()) {
30
+if ((int) $post->closed === 0 && \App::$User->isAuth()) {
31 31
     $user = App::$User->identity();
32
-    if ($user->getId() === (int)$post->user_id) {
33
-        echo '<div class="pull-right">' .
34
-            Url::link(['feedback/close', $post->id, $post->hash], __('Close request'), ['class' => 'btn btn-danger']) .
32
+    if ($user->getId() === (int) $post->user_id) {
33
+        echo '<div class="pull-right">'.
34
+            Url::link(['feedback/close', $post->id, $post->hash], __('Close request'), ['class' => 'btn btn-danger']).
35 35
             '</div>';
36 36
     }
37 37
 }
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 </div>
53 53
 <h3><?= __('Answers') ?></h3>
54 54
 <hr />
55
-<?php if ((int)$post->readed === 0 && ($answers === null || $answers->count() < 1)): ?>
55
+<?php if ((int) $post->readed === 0 && ($answers === null || $answers->count() < 1)): ?>
56 56
     <p class="alert alert-warning"><?= __('This message is not properly readed by website administrators') ?></p>
57 57
 <?php endif; ?>
58 58
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     <?php foreach ($answers as $answer): ?>
61 61
         <div class="row">
62 62
             <div class="col-md-12">
63
-                <div class="panel <?= (int)$answer->is_admin === 1 ? 'panel-success' : 'panel-default' ?>">
63
+                <div class="panel <?= (int) $answer->is_admin === 1 ? 'panel-success' : 'panel-default' ?>">
64 64
                     <div class="panel-heading">
65 65
                         <strong><?= $answer->name ?> (<?= $answer->email ?>)</strong>,
66 66
                         <?= Date::convertToDatetime($answer->created_at, Date::FORMAT_TO_HOUR) ?>
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 <?php endif; ?>
76 76
 
77 77
 <br />
78
-<?php if ((int)$post->closed === 0 && $model !== null): ?>
78
+<?php if ((int) $post->closed === 0 && $model !== null): ?>
79 79
     <h3><?= __('Add answer') ?></h3>
80 80
     <?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post']) ?>
81 81
     <?= $form->start() ?>
Please login to merge, or discard this patch.
Apps/View/Front/default/feedback/create.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Apps/View/Front/default/content/tag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     /** @var \Apps\ActiveRecord\Content $item*/
24 24
     $items[] = [
25 25
         'text' => Serialize::getDecodeLocale($item->title),
26
-        'link' => \App::$Alias->baseUrl . '/content/read/' . $item->getPath()
26
+        'link' => \App::$Alias->baseUrl.'/content/read/'.$item->getPath()
27 27
     ];
28 28
 }
29 29
 ?>
Please login to merge, or discard this patch.
Apps/View/Front/default/content/_rate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.