Passed
Push — master ( 0d9957...3a195a )
by Mihail
04:49
created
Apps/View/Admin/default/profile/settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
 <?= $form->fieldset()->text('usersOnPage', null, __('How many users will be displayed per one list page?')) ?>
29 29
 <?= $form->fieldset()->boolean('guestView', null, __('Allow guests view user profiles?')) ?>
30
-<?= $form->fieldset()->text('wallPostOnPage', null,  __('How many wall posts must be displayed in one page of profile?')) ?>
30
+<?= $form->fieldset()->text('wallPostOnPage', null, __('How many wall posts must be displayed in one page of profile?')) ?>
31 31
 <?= $form->fieldset()->text('wallPostOnFeed', null, __('How many wall posts must be displayed on one page of feed list?')) ?>
32 32
 <?= $form->fieldset()->text('delayBetweenPost', null, __('Delay between 2 posts on wall from one user in seconds')) ?>
33 33
 <?= $form->fieldset()->boolean('rating', null, __('Enable user rating system?')) ?>
Please login to merge, or discard this patch.
Apps/View/Admin/default/profile/field_delete.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
             ['text' => $model->type]
33 33
         ])->row([
34 34
             ['text' => $model->getLabel('reg_exp')],
35
-            ['text' => ($model->reg_cond == 0 ? '!' : null) . 'preg_match("'.$model->reg_exp.'", $input)']
35
+            ['text' => ($model->reg_cond == 0 ? '!' : null).'preg_match("'.$model->reg_exp.'", $input)']
36 36
         ])->display();
37 37
     ?>
38 38
 </div>
Please login to merge, or discard this patch.
Apps/View/Admin/default/profile/field_update.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     $menu->menu([
36 36
         'text' => Str::upperCase($lang),
37 37
         'tab' => function() use ($form, $lang) {
38
-            return $form->fieldset()->text('name.' . $lang, null, __('Define field name, which be displayed for user for current language locale'));
38
+            return $form->fieldset()->text('name.'.$lang, null, __('Define field name, which be displayed for user for current language locale'));
39 39
         },
40 40
         'tabActive' => $lang === \App::$Request->getLanguage(),
41 41
     ]);
Please login to merge, or discard this patch.
Apps/Controller/Admin/Profile/ActionIndex.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         $query = Profile::with(['user']);
27 27
 
28 28
         // set current page and offset
29
-        $page = (int)$this->request->query->get('page');
29
+        $page = (int) $this->request->query->get('page');
30 30
         $offset = $page * self::ITEM_PER_PAGE;
31 31
 
32 32
         // count total items count for pagination builder
Please login to merge, or discard this patch.
Apps/View/Api/default/_core/javascript/submit_selectize_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 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 13
 echo (new \Ffcms\Templex\Helper\Html\Dom())->button(function() use ($text) {
Please login to merge, or discard this patch.
Apps/View/Admin/default/content/category_update.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
32 32
     $menu->menu([
33 33
         'text' => Str::upperCase($lang),
34 34
         'tab' => function() use ($form, $lang) {
35
-            return $form->fieldset()->text('title.' . $lang, null, __('Enter category title, visible for users')) .
36
-                $form->fieldset()->text('description.' . $lang, null, __('Enter category description'));
35
+            return $form->fieldset()->text('title.'.$lang, null, __('Enter category title, visible for users')).
36
+                $form->fieldset()->text('description.'.$lang, null, __('Enter category description'));
37 37
         },
38 38
         'tabActive' => $lang === \App::$Request->getLanguage()
39 39
     ]);
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
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 /** @var int $id */
6 6
 ?>
7 7
 
8
-<?php if ((bool)$configs['guestAdd'] && (bool)$configs['guestModerate'] && !\App::$User->isAuth()): ?>
8
+<?php if ((bool) $configs['guestAdd'] && (bool) $configs['guestModerate'] && !\App::$User->isAuth()): ?>
9 9
     <p class="alert alert-warning"><?= $this->bootstrap()->alert('warning', __('All guest comments will be moderated before display')) ?></p>
10 10
 <?php endif; ?>
11 11
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
                 </a>
38 38
             </i>
39 39
         </div>
40
-        <div id="comment-text" class="comment-text"><?= __('Loading') . ' ...' ?></div>
40
+        <div id="comment-text" class="comment-text"><?= __('Loading').' ...' ?></div>
41 41
     </div>
42 42
     <div id="comment-answers-0" class="d-none"></div>
43 43
     <div class="row d-none" id="add-replay-to">
@@ -60,12 +60,12 @@  discard block
 block discarded – undo
60 60
                 <span id="answer-date">00.00.00 00-00-00</span>
61 61
                 <span id="answer-user-name"><?= __('Unknown') ?></span>:
62 62
             </div>
63
-            <div id="answer-text" class="comment-text"><?= __('Loading') . ' ...' ?></div>
63
+            <div id="answer-text" class="comment-text"><?= __('Loading').' ...' ?></div>
64 64
         </div>
65 65
     </li>
66 66
 </ul>
67 67
 
68
-<?php if ((bool)$configs['guestAdd'] || \App::$User->isAuth()): ?>
68
+<?php if ((bool) $configs['guestAdd'] || \App::$User->isAuth()): ?>
69 69
     <!-- comment form -->
70 70
     <form name="comment-add-form" action="" method="post" style="padding-top: 15px;" class="form-horizontal">
71 71
         <input type="hidden" name="replay-to" value="0" />
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'], ['style' => 'color: #595959']) ?>
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 widget-comment-text">
32
-            <a href="<?= \App::$Alias->baseUrl . '/' . $comment['app_name'] . '/comments/' . $comment['app_id'] ?>">
32
+            <a href="<?= \App::$Alias->baseUrl.'/'.$comment['app_name'].'/comments/'.$comment['app_id'] ?>">
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/content/list.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 
15 15
 $catConfigs = [];
16 16
 foreach ($model->category['configs'] as $key=>$value) {
17
-    $catConfigs[$key] = (bool)$value;
17
+    $catConfigs[$key] = (bool) $value;
18 18
 }
19 19
 $catMeta = [
20 20
     'date' => $catConfigs['showDate'],
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             <?php if ($item['important']): ?>
75 75
                 <i class="fa fa-fire" style="color: #a50000"></i>
76 76
             <?php endif; ?>
77
-            <a href="<?= \App::$Alias->baseUrl . $item['uri'] ?>">
77
+            <a href="<?= \App::$Alias->baseUrl.$item['uri'] ?>">
78 78
                 <?= $item['title'] ?>
79 79
             </a>
80 80
         </h2>
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
                         <?php
102 102
                         $ownerNick = $item['author']->profile === null ? __('Unknown') : $item['author']->profile->getNickname();
103 103
                         if ($item['author']->getId() < 1) {
104
-                            echo '<s>' . $ownerNick . '</s>';
104
+                            echo '<s>'.$ownerNick.'</s>';
105 105
                         } else {
106 106
                             echo Url::a(['profile/show', [$item['author']->getId()]], $ownerNick, ['itemprop' => 'author']);
107 107
                         }
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         <div class="row">
119 119
             <div class="col-md-12">
120 120
                 <?php if ($catConfigs['showPoster'] === true && $item['thumb'] !== null): ?>
121
-                    <img src="<?= \App::$Alias->scriptUrl . $item['thumb'] ?>" class="image_poster img-thumbnail d-none d-sm-block" alt="<?= __('Poster for') ?>: <?= Str::lowerCase($item['title']) ?>" />
121
+                    <img src="<?= \App::$Alias->scriptUrl.$item['thumb'] ?>" class="image_poster img-thumbnail d-none d-sm-block" alt="<?= __('Poster for') ?>: <?= Str::lowerCase($item['title']) ?>" />
122 122
                 <?php endif; ?>
123 123
                 <div itemprop="text articleBody">
124 124
                     <?= $item['text'] ?>
@@ -135,15 +135,15 @@  discard block
 block discarded – undo
135 135
             }*/ ?>
136 136
 
137 137
             <span class="spaced"><i class="fa fa-comment-o"></i>
138
-                <a href="<?= \App::$Alias->baseUrl . $item['uri'] ?>#comments-list"><?= __('Comments') ?>: <span itemprop="commentCount" id="comment-count-<?= $item['id'] ?>">0</span></a>
138
+                <a href="<?= \App::$Alias->baseUrl.$item['uri'] ?>#comments-list"><?= __('Comments') ?>: <span itemprop="commentCount" id="comment-count-<?= $item['id'] ?>">0</span></a>
139 139
             </span>
140 140
             <span class="float-right">
141
-            <?php if ((int)$catConfigs['showTags'] === 1 && $item['tags'] !== null && Any::isArray($item['tags'])): ?>
141
+            <?php if ((int) $catConfigs['showTags'] === 1 && $item['tags'] !== null && Any::isArray($item['tags'])): ?>
142 142
                 <span class="spaced"><i class="fa fa-tags"></i>
143 143
                     <?php
144 144
                     foreach ($item['tags'] as $tag) {
145 145
                         $tag = trim($tag);
146
-                        echo Url::a(['content/tag', [urlencode($tag)]], $tag, ['class' => 'badge badge-secondary']) . "&nbsp;";
146
+                        echo Url::a(['content/tag', [urlencode($tag)]], $tag, ['class' => 'badge badge-secondary'])."&nbsp;";
147 147
                     }
148 148
                     ?>
149 149
                 </span>
Please login to merge, or discard this patch.