Passed
Push — master ( bc905b...ef8807 )
by Mihail
04:40
created
Apps/View/Front/default/profile/show.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@  discard block
 block discarded – undo
21 21
 $name = $user->profile === null ? __('Unknown') : $user->profile->getNickname();
22 22
 
23 23
 $this->layout('_layouts/default', [
24
-    'title' => __('Profile') . ': ' . $name,
24
+    'title' => __('Profile').': '.$name,
25 25
     'breadcrumbs' => [
26 26
         Url::to('/') => __('Home'),
27
-        __('Profile') . ': ' . $name
27
+        __('Profile').': '.$name
28 28
     ]
29 29
 ]);
30 30
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         <img src="<?= $user->profile->getAvatarUrl('big') ?>" class="img-fluid img-thumbnail" />
45 45
         <?php if ($ratingOn):
46 46
             $rateClass = 'btn-secondary';
47
-            $rateValue = (int)$user->profile->rating;
47
+            $rateValue = (int) $user->profile->rating;
48 48
             if ($user->profile->rating > 0) {
49 49
                 $rateClass = 'btn-info';
50 50
             } elseif ($user->profile->rating < 0) {
@@ -81,10 +81,10 @@  discard block
 block discarded – undo
81 81
         <?php
82 82
         $userMenu = $this->bootstrap()->nav('ul', ['class' => 'nav-tabs flex-column']);
83 83
         if ($isSelf) {
84
-            $userMenu->menu(['link' => ['profile/feed'], 'text' => '<i class="fa fa-rss-square"></i> ' . __('Feed'), 'html' => true]);
85
-            $userMenu->menu(['link' => ['profile/avatar'], 'text' => '<i class="fa fa-camera"></i> ' . __('Avatar'), 'html' => true]);
86
-            $userMenu->menu(['link' => ['profile/messages'], 'text' => '<i class="fa fa-envelope"></i> ' . __('Messages') . ' <span class="badge pm-count-block">0</span>', 'html' => true]);
87
-            $userMenu->menu(['link' => ['profile/settings'], 'text' => '<i class="fa fa-cogs"></i> ' . __('Settings'), 'html' => true]);
84
+            $userMenu->menu(['link' => ['profile/feed'], 'text' => '<i class="fa fa-rss-square"></i> '.__('Feed'), 'html' => true]);
85
+            $userMenu->menu(['link' => ['profile/avatar'], 'text' => '<i class="fa fa-camera"></i> '.__('Avatar'), 'html' => true]);
86
+            $userMenu->menu(['link' => ['profile/messages'], 'text' => '<i class="fa fa-envelope"></i> '.__('Messages').' <span class="badge pm-count-block">0</span>', 'html' => true]);
87
+            $userMenu->menu(['link' => ['profile/settings'], 'text' => '<i class="fa fa-cogs"></i> '.__('Settings'), 'html' => true]);
88 88
         } elseif (\App::$User->isAuth()) {
89 89
             $userMenu->menu(['link' => ['profile/messages', null, ['newdialog' => $user->id]], 'text' => __('Write message')]);
90 90
             $userMenu->menu(['link' => ['profile/ignore', null, ['id' => $user->id]], 'text' => __('Block')]);
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
                             foreach ($hobbyArray as $item) {
162 162
                                 $item = \App::$Security->strip_tags($item);
163 163
                                 if (!Str::likeEmpty($item)) {
164
-                                    echo Url::a(['profile/index', ['hobby', trim($item, ' ')]], $item, ['class' => 'badge badge-secondary']) . ' ';
164
+                                    echo Url::a(['profile/index', ['hobby', trim($item, ' ')]], $item, ['class' => 'badge badge-secondary']).' ';
165 165
                                 }
166 166
                             }
167 167
                             ?>
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
                     <div class="col-xs-8 col-md-10">
215 215
                         <div class="h5" style="margin-top: 0;margin-bottom: 5px;">
216 216
                             <i class="glyphicon glyphicon-user"></i>
217
-                            <?= Url::a(['profile/show', [$post->sender_id]], $post->senderUser->profile->getNickname(), ['style' => 'color: ' . $post->senderUser->role->color]) ?>
217
+                            <?= Url::a(['profile/show', [$post->sender_id]], $post->senderUser->profile->getNickname(), ['style' => 'color: '.$post->senderUser->role->color]) ?>
218 218
                             <small class="float-right"><?= Date::humanize($post->updated_at); ?></small>
219 219
                         </div>
220 220
                         <div class="object-text">
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 || 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
                 $this->stop();
37 37
                 return;
38 38
             }
Please login to merge, or discard this patch.
Apps/View/Front/default/feedback/read.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,9 +27,9 @@  discard block
 block discarded – undo
27 27
 <?php endif; ?>
28 28
 
29 29
 <?php
30
-if (!(bool)$post->closed && \App::$User->isAuth()) {
30
+if (!(bool) $post->closed && \App::$User->isAuth()) {
31 31
     $user = App::$User->identity();
32
-    if ((int)$user->getId() === (int)$post->user_id) {
32
+    if ((int) $user->getId() === (int) $post->user_id) {
33 33
         echo Url::a(['feedback/close', [$post->id, $post->hash]], __('Close request'), ['class' => 'btn btn-danger']);
34 34
     }
35 35
 }
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 </div>
51 51
 <h3><?= __('Answers') ?></h3>
52 52
 <hr />
53
-<?php if (!(bool)$post->readed && (!$answers || $answers->count() < 1)): ?>
53
+<?php if (!(bool) $post->readed && (!$answers || $answers->count() < 1)): ?>
54 54
     <?= $this->bootstrap()->alert('warning', __('This message is not properly readed by website administrators')) ?>
55 55
 <?php endif; ?>
56 56
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         <div class="row" id="feedback-answer-<?= $answer->id ?>">
60 60
             <div class="col-md-12">
61 61
                 <div class="card">
62
-                    <div class="card-header<?= (bool)$answer->is_admin ? ' bg-success' : null ?>">
62
+                    <div class="card-header<?= (bool) $answer->is_admin ? ' bg-success' : null ?>">
63 63
                         <strong><?= $answer->name ?> (<?= $answer->email ?>)</strong>,
64 64
                         <?= Date::convertToDatetime($answer->created_at, Date::FORMAT_TO_HOUR) ?>
65 65
                     </div>
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 <?php endif; ?>
74 74
 
75 75
 <br />
76
-<?php if (!(bool)$post->closed && $model): ?>
76
+<?php if (!(bool) $post->closed && $model): ?>
77 77
     <h3><?= __('Add answer') ?></h3>
78 78
     <?php $form = $this->form($model) ?>
79 79
     <?= $form->start() ?>
Please login to merge, or discard this patch.
Apps/View/Front/default/widgets/contenttag/default.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,5 +7,5 @@
 block discarded – undo
7 7
 ?>
8 8
 
9 9
 <?php foreach ($records as $row) {
10
-    echo Url::a(['content/tag', [$row['tag']]], $row['tag'], ['class' => 'badge badge-secondary']) . ' ';
10
+    echo Url::a(['content/tag', [$row['tag']]], $row['tag'], ['class' => 'badge badge-secondary']).' ';
11 11
 }
Please login to merge, or discard this patch.
Apps/View/Front/default/_core/javascript/submit_selectize_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,10 +7,10 @@
 block discarded – undo
7 7
 /** @var array $url */
8 8
 /** @var array $properties */
9 9
 
10
-$rndId = 'btn_selectize_submit_' . mt_rand(999, 999999);
10
+$rndId = 'btn_selectize_submit_'.mt_rand(999, 999999);
11 11
 $properties['id'] = $rndId;
12 12
 
13
-echo (new \Ffcms\Templex\Helper\Html\Dom())->button(function () use ($text) {
13
+echo (new \Ffcms\Templex\Helper\Html\Dom())->button(function() use ($text) {
14 14
     return $text;
15 15
 }, $properties);
16 16
 
Please login to merge, or discard this patch.
Apps/View/Front/default/_core/form/fieldset/multiselect.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
 }
19 19
 ?>
20 20
 <div class="form-group row">
21
-    <?= (new \Ffcms\Templex\Helper\Html\Dom())->label(function () use ($label) {
21
+    <?= (new \Ffcms\Templex\Helper\Html\Dom())->label(function() use ($label) {
22 22
     return $label;
23 23
 }, $labelProperties) ?>
24 24
     <div class="col-md-9">
Please login to merge, or discard this patch.
Apps/View/Front/default/_core/form/fieldset/text.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
 }
19 19
 ?>
20 20
 <div class="form-group row">
21
-    <?= (new \Ffcms\Templex\Helper\Html\Dom())->label(function () use ($label) {
21
+    <?= (new \Ffcms\Templex\Helper\Html\Dom())->label(function() use ($label) {
22 22
     return $label;
23 23
 }, $labelProperties) ?>
24 24
     <div class="col-md-9">
Please login to merge, or discard this patch.
Apps/View/Front/default/_core/form/fieldset/select.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
 }
19 19
 ?>
20 20
 <div class="form-group row">
21
-    <?= (new \Ffcms\Templex\Helper\Html\Dom())->label(function () use ($label) {
21
+    <?= (new \Ffcms\Templex\Helper\Html\Dom())->label(function() use ($label) {
22 22
     return $label;
23 23
 }, $labelProperties) ?>
24 24
     <div class="col-md-9">
Please login to merge, or discard this patch.
Apps/View/Front/default/_core/form/fieldset/file.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 $labelProperties['for'] = $field->getUniqueFieldId();
16 16
 ?>
17 17
 <div class="form-group row">
18
-    <?= (new \Ffcms\Templex\Helper\Html\Dom())->label(function () use ($label) {
18
+    <?= (new \Ffcms\Templex\Helper\Html\Dom())->label(function() use ($label) {
19 19
     return $label;
20 20
 }, $labelProperties) ?>
21 21
     <div class="col-md-9">
Please login to merge, or discard this patch.