Passed
Push — master ( c86e8c...1b1f16 )
by Mihail
04:54
created
Apps/View/Front/default/user/signup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 <?= $form->field('repassword', 'password', ['class' => 'form-control'], __('Repeat your password to be sure it correct')); ?>
25 25
 <?php if ($useCaptcha) {
26 26
     if (\App::$Captcha->isFull()) {
27
-        echo '<div class="col-md-offset-3 col-md-9">' . \App::$Captcha->get() . '</div>';
27
+        echo '<div class="col-md-offset-3 col-md-9">'.\App::$Captcha->get().'</div>';
28 28
     } else {
29 29
         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'));
30 30
     }
Please login to merge, or discard this patch.
Apps/View/Front/default/user/_tabs.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,8 +4,9 @@
 block discarded – undo
4 4
 use Ffcms\Core\Helper\Type\Str;
5 5
 
6 6
 $args = [];
7
-if (isset($r) && Any::isStr($r) && Str::length($r) > 1)
7
+if (isset($r) && Any::isStr($r) && Str::length($r) > 1) {
8 8
     $args['r'] = $r;
9
+}
9 10
 
10 11
 echo \Ffcms\Core\Helper\HTML\Bootstrap\Nav::display([
11 12
     'property' => ['class' => 'nav-tabs'],
Please login to merge, or discard this patch.
Apps/View/Front/default/feedback/read.php 2 patches
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" id="feedback-answer-<?= $answer->id ?>">
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.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,6 +89,9 @@
 block discarded – undo
89 89
     </div>
90 90
 
91 91
     <?= $form->finish() ?>
92
-<?php else: ?>
92
+<?php else {
93
+    : ?>
93 94
 <p class="alert alert-danger"><?= __('This request is closed! No answers is allowed') ?></p>
94
-<?php endif; ?>
95 95
\ No newline at end of file
96
+<?php endif;
97
+}
98
+?>
96 99
\ No newline at end of file
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/profile/index.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -14,13 +14,13 @@  discard block
 block discarded – undo
14 14
 $this->title = __('User list');
15 15
 
16 16
 if ($id === 'all') {
17
-    $this->title .= ': ' . __('All');
17
+    $this->title .= ': '.__('All');
18 18
 } elseif ($id === 'rating') {
19
-    $this->title .= ': ' . __('Rating');
19
+    $this->title .= ': '.__('Rating');
20 20
 } elseif ($id === 'city') {
21
-    $this->title .= ': ' . __('City') . ' ' . \App::$Security->strip_tags($add);
21
+    $this->title .= ': '.__('City').' '.\App::$Security->strip_tags($add);
22 22
 } elseif ($id === 'hobby') {
23
-    $this->title .= ': ' . __('Hobby') . ' ' . \App::$Security->strip_tags($add);
23
+    $this->title .= ': '.__('Hobby').' '.\App::$Security->strip_tags($add);
24 24
 }
25 25
 
26 26
 $this->breadcrumbs = [
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
 <?php
37 37
     if ($records === null || $records->count() < 1) {
38
-        echo '<div class="alert alert-danger">' . __('Users are not founded!') . '</div>';
38
+        echo '<div class="alert alert-danger">'.__('Users are not founded!').'</div>';
39 39
         return;
40 40
     }
41 41
 ?>
@@ -50,13 +50,13 @@  discard block
 block discarded – undo
50 50
             <h3>
51 51
                 <?= Url::link(
52 52
                     ['profile/show', $profile->user_id],
53
-                    (Str::likeEmpty($profile->nick) ? __('No name') . '(id' . $profile->user_id . ')' : $profile->nick),
54
-                    ['style' => 'color: ' . $profile->user->role->color]
53
+                    (Str::likeEmpty($profile->nick) ? __('No name').'(id'.$profile->user_id.')' : $profile->nick),
54
+                    ['style' => 'color: '.$profile->user->role->color]
55 55
                 ) ?>
56 56
             </h3>
57 57
             <p><?= __('Registered') ?>: <?= Date::convertToDatetime($profile->created_at, Date::FORMAT_TO_DAY) ?></p>
58 58
             <?php if (\App::$User->identity() !== null && $profile->user_id !== \App::$User->identity()->getId()): ?>
59
-                <?= Url::link(['profile/messages', null, null, ['newdialog' => $profile->user_id]], '<i class="glyphicon glyphicon-envelope"></i> '  . __('New message'), ['class' => 'btn btn-info']) ?>
59
+                <?= Url::link(['profile/messages', null, null, ['newdialog' => $profile->user_id]], '<i class="glyphicon glyphicon-envelope"></i> '.__('New message'), ['class' => 'btn btn-info']) ?>
60 60
             <?php endif; ?>
61 61
         </div>
62 62
         <div class="col-md-2">
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
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 <?= $form->field('url', 'text', ['class' => 'form-control'], __('If you have your own homepage - enter url there')) ?>
34 34
 <?php
35 35
 foreach (ProfileField::all() as $custom) {
36
-    echo $form->field('custom_data.' . $custom->id, 'text', ['class' => 'form-control']);
36
+    echo $form->field('custom_data.'.$custom->id, 'text', ['class' => 'form-control']);
37 37
 }
38 38
 ?>
39 39
 
Please login to merge, or discard this patch.
Apps/View/Front/default/profile/notifications.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
 </div>
33 33
 <?php
34 34
 if ($model->items === null || count($model->items) < 1) {
35
-    echo '<p class="alert alert-warning">' . __('No notifications available') . '</p>';
35
+    echo '<p class="alert alert-warning">'.__('No notifications available').'</p>';
36 36
     return;
37 37
 }
38 38
 ?>
Please login to merge, or discard this patch.
Apps/View/Admin/default/comments/answer_list.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
 <?php
29 29
 if ($records === null || $records->count() < 1) {
30
-    echo '<p class="alert alert-warning">' . __('Answers is not founded') . '</p>';
30
+    echo '<p class="alert alert-warning">'.__('Answers is not founded').'</p>';
31 31
     return;
32 32
 }
33 33
 $items = [];
@@ -35,21 +35,21 @@  discard block
 block discarded – undo
35 35
 foreach ($records as $item) {
36 36
     $commentObject = $item->getCommentPost();
37 37
     $message = Text::cut(\App::$Security->strip_tags($item->message), 0, 75);
38
-    $moderate = (bool)$item->moderate;
38
+    $moderate = (bool) $item->moderate;
39 39
     if ($moderate) {
40 40
         $moderateIsFound = true;
41 41
     }
42 42
 
43 43
     $items[] = [
44 44
         1 => ['text' => $item->id],
45
-        2 => ['text' => ($moderate ? '<i class="fa fa-exclamation text-warning"></i> ' : null) . Url::link(['comments/read', $commentObject->id, null, ['#' => '#answer-' . $item->id]], $message), 'html' => true],
46
-        3 => ['text' => Simplify::parseUserLink((int)$item->user_id, $item->guest_name, 'user/update'), 'html' => true],
47
-        4 => ['text' => '<a href="' . App::$Alias->scriptUrl . $commentObject->pathway . '" target="_blank">' . Str::sub($commentObject->pathway, 0, 20) . '...</a>', 'html' => true],
45
+        2 => ['text' => ($moderate ? '<i class="fa fa-exclamation text-warning"></i> ' : null).Url::link(['comments/read', $commentObject->id, null, ['#' => '#answer-'.$item->id]], $message), 'html' => true],
46
+        3 => ['text' => Simplify::parseUserLink((int) $item->user_id, $item->guest_name, 'user/update'), 'html' => true],
47
+        4 => ['text' => '<a href="'.App::$Alias->scriptUrl.$commentObject->pathway.'" target="_blank">'.Str::sub($commentObject->pathway, 0, 20).'...</a>', 'html' => true],
48 48
         5 => ['text' => Date::convertToDatetime($item->created_at, Date::FORMAT_TO_HOUR)],
49
-        6 => ['text' => Url::link(['comments/read', $commentObject->id], '<i class="fa fa-list fa-lg"></i>') .
50
-            ' ' . Url::link(['comments/delete', 'answer', $item->id], '<i class="fa fa-trash-o fa-lg"></i>'),
49
+        6 => ['text' => Url::link(['comments/read', $commentObject->id], '<i class="fa fa-list fa-lg"></i>').
50
+            ' '.Url::link(['comments/delete', 'answer', $item->id], '<i class="fa fa-trash-o fa-lg"></i>'),
51 51
             'html' => true, 'property' => ['class' => 'text-center']],
52
-        'property' => ['class' => 'checkbox-row' . ($moderate !== false ? ' alert-warning' : null)]
52
+        'property' => ['class' => 'checkbox-row'.($moderate !== false ? ' alert-warning' : null)]
53 53
     ];
54 54
 }
55 55
 
Please login to merge, or discard this patch.
Apps/View/Admin/default/comments/_tabs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,4 +11,4 @@
 block discarded – undo
11 11
         ['type' => 'link', 'text' => __('Answers list'), 'link' => ['comments/answerlist']],
12 12
         ['type' => 'link', 'text' => __('Settings'), 'link' => ['comments/settings']]
13 13
     ]
14
-]);?>
15 14
\ No newline at end of file
15
+]); ?>
16 16
\ No newline at end of file
Please login to merge, or discard this patch.