Passed
Push — master ( d36889...34a8e1 )
by Mihail
04:41
created
Widgets/Front/Comments/Comments.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     public function init(): void
20 20
     {
21 21
         if (App::$Request->getLanguage() !== 'en') {
22
-            App::$Translate->append('/i18n/Front/' . App::$Request->getLanguage() . '/CommentWidget.php');
22
+            App::$Translate->append('/i18n/Front/'.App::$Request->getLanguage().'/CommentWidget.php');
23 23
         }
24 24
 
25 25
         if (!$this->pathway) {
Please login to merge, or discard this patch.
Apps/View/Front/default/widgets/newcomment/default.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     <div class="row mb-1">
15 15
         <div class="col-md-6">
16 16
             <i class="fa fa-user"></i>
17
-            <?php if ((int)$comment['user']['id'] > 0): ?>
17
+            <?php if ((int) $comment['user']['id'] > 0): ?>
18 18
                 <?= Url::a(['profile/show', [$comment['user']['id']]], $comment['user']['name']) ?>
19 19
             <?php else: ?>
20 20
                 <?= $comment['user']['name'] ?>
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
     <div class="row">
31 31
         <div class="col">
32
-            <a href="<?= \App::$Alias->baseUrl . $comment['pathway'] . '#comment-list' ?>">
32
+            <a href="<?= \App::$Alias->baseUrl.$comment['pathway'].'#comment-list' ?>">
33 33
                 <?= Text::cut(\App::$Security->strip_tags($comment['text']), 0, $snippet) ?>
34 34
             </a>
35 35
         </div>
Please login to merge, or discard this patch.
Apps/View/Front/default/widgets/comments/show.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 /** @var \Ffcms\Templex\Template\Template $this */
4 4
 ?>
5 5
 
6
-<?php if ((bool)$configs['guestAdd'] && (bool)$configs['guestModerate'] && !\App::$User->isAuth()): ?>
6
+<?php if ((bool) $configs['guestAdd'] && (bool) $configs['guestModerate'] && !\App::$User->isAuth()): ?>
7 7
     <p class="alert alert-warning"><?= $this->bootstrap()->alert('warning', __('All guest comments will be moderated before display')) ?></p>
8 8
 <?php endif; ?>
9 9
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
                 </a>
36 36
             </i>
37 37
         </div>
38
-        <div id="comment-text" class="comment-text"><?= __('Loading') . ' ...' ?></div>
38
+        <div id="comment-text" class="comment-text"><?= __('Loading').' ...' ?></div>
39 39
     </div>
40 40
     <div id="comment-answers-0" class="d-none"></div>
41 41
     <div class="row d-none" id="add-replay-to">
@@ -58,12 +58,12 @@  discard block
 block discarded – undo
58 58
                 <span id="answer-date">00.00.00 00-00-00</span>
59 59
                 <span id="answer-user-name"><?= __('Unknown') ?></span>:
60 60
             </div>
61
-            <div id="answer-text" class="comment-text"><?= __('Loading') . ' ...' ?></div>
61
+            <div id="answer-text" class="comment-text"><?= __('Loading').' ...' ?></div>
62 62
         </div>
63 63
     </li>
64 64
 </ul>
65 65
 
66
-<?php if ((bool)$configs['guestAdd'] || \App::$User->isAuth()): ?>
66
+<?php if ((bool) $configs['guestAdd'] || \App::$User->isAuth()): ?>
67 67
     <!-- comment form -->
68 68
     <form name="comment-add-form" action="" method="post" style="padding-top: 15px;" class="form-horizontal">
69 69
         <input type="hidden" name="replay-to" value="0" />
Please login to merge, or discard this patch.