Passed
Push — master ( 1cd2c2...fa1786 )
by Mihail
07:12
created
Apps/View/Admin/default/widget/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     <div class="row">
18 18
         <div class="col-md-12">
19 19
             <div class="pull-right">
20
-                <?= Url::link(['widget/install'], '<i class="fa fa-tasks"></i> ' . __('Install'), ['class' => 'btn btn-primary']) ?>
20
+                <?= Url::link(['widget/install'], '<i class="fa fa-tasks"></i> '.__('Install'), ['class' => 'btn btn-primary']) ?>
21 21
             </div>
22 22
         </div>
23 23
     </div>
@@ -25,10 +25,10 @@  discard block
 block discarded – undo
25 25
 $widgetTableItems = null;
26 26
 foreach ($widgets as $widget) {
27 27
     /** @var $widget Apps\ActiveRecord\App */
28
-    $route = $widget->sys_name . '/index';
28
+    $route = $widget->sys_name.'/index';
29 29
     $icoStatus = null;
30 30
     $actions = $this->render('native/macro/widget_actions', ['controller' => $widget->sys_name]);
31
-    if ((int)$widget->disabled !== 0) {
31
+    if ((int) $widget->disabled !== 0) {
32 32
         $icoStatus = ' <i class="fa fa-pause" style="color: #ff0000;"></i>';
33 33
     } elseif ($widget->checkVersion() !== true) {
34 34
         $icoStatus = ' <i class="fa fa-exclamation" style="color: #ffbd26;"></i>';
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     }
39 39
 
40 40
     $widgetTableItems[] = [
41
-        ['text' => $widget->id . $icoStatus, 'html' => true, '!secure' => true],
41
+        ['text' => $widget->id.$icoStatus, 'html' => true, '!secure' => true],
42 42
         ['text' => Url::link([$route], $widget->getLocaleName()), 'html' => true],
43 43
         ['text' => $widget->version],
44 44
         ['text' => Date::convertToDatetime($widget->updated_at, Date::FORMAT_TO_HOUR)],
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 ?>
50 50
 
51 51
 <?php if ($widgetTableItems === null || count($widgetTableItems) < 1) {
52
-    echo '<p class="alert alert-info">' . __('Installed widgets is not founded') . '</p>';
52
+    echo '<p class="alert alert-info">'.__('Installed widgets is not founded').'</p>';
53 53
 } ?>
54 54
 
55 55
 
Please login to merge, or discard this patch.
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/layout/main.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     <?php
19 19
     $customCssCode = \App::$View->showPlainCode('css');
20 20
     if ($customCssCode !== null) {
21
-        echo '<style>' . $customCssCode . '</style>';
21
+        echo '<style>'.$customCssCode.'</style>';
22 22
     } ?>
23 23
     <script>
24 24
         window.jQ = [];
@@ -38,18 +38,18 @@  discard block
 block discarded – undo
38 38
         if (\App::$User->isAuth()) {
39 39
             $userId = \App::$User->identity()->getId();
40 40
             $accountPanel = [
41
-                ['type' => 'link', 'link' => ['profile/show', $userId], 'text' => '<i class="fa fa-user"></i> ' . __('Profile'), 'html' => true, '!secure' => true],
42
-                ['type' => 'link', 'link' => ['profile/messages'], 'text' => '<i class="fa fa-envelope"></i> ' . __('Messages') . ' <span class="badge pm-count-block">0</span>', 'html' => true, '!secure' => true],
43
-                ['type' => 'link', 'link' => ['user/logout'], 'text' => '<i class="fa fa-user-secret"></i> ' . __('Logout'), 'html' => true, '!secure' => true]
41
+                ['type' => 'link', 'link' => ['profile/show', $userId], 'text' => '<i class="fa fa-user"></i> '.__('Profile'), 'html' => true, '!secure' => true],
42
+                ['type' => 'link', 'link' => ['profile/messages'], 'text' => '<i class="fa fa-envelope"></i> '.__('Messages').' <span class="badge pm-count-block">0</span>', 'html' => true, '!secure' => true],
43
+                ['type' => 'link', 'link' => ['user/logout'], 'text' => '<i class="fa fa-user-secret"></i> '.__('Logout'), 'html' => true, '!secure' => true]
44 44
             ];
45 45
 
46 46
             if (\App::$User->identity()->getRole()->can('Admin/Main/Index')) {
47
-                $accountPanel[] = ['type' => 'link', 'link' => \App::$Alias->scriptUrl . '/admin/', 'text' => '<i class="fa fa-cogs"></i> Admin', 'html' => true, '!secure' => true];
47
+                $accountPanel[] = ['type' => 'link', 'link' => \App::$Alias->scriptUrl.'/admin/', 'text' => '<i class="fa fa-cogs"></i> Admin', 'html' => true, '!secure' => true];
48 48
             }
49 49
         } else {
50 50
             $accountPanel = [
51
-                ['type' => 'link', 'link' => ['user/login'], 'text' => '<i class="fa fa-sign-in"></i> ' . __('Sign in'), 'html' => true, '!secure' => true],
52
-                ['type' => 'link', 'link' => ['user/signup'], 'text' => '<i class="fa fa-check-square-o"></i> ' . __('Sign up'), 'html' => true, '!secure' => true]
51
+                ['type' => 'link', 'link' => ['user/login'], 'text' => '<i class="fa fa-sign-in"></i> '.__('Sign in'), 'html' => true, '!secure' => true],
52
+                ['type' => 'link', 'link' => ['user/signup'], 'text' => '<i class="fa fa-check-square-o"></i> '.__('Sign up'), 'html' => true, '!secure' => true]
53 53
             ];
54 54
         }
55 55
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                 echo $body;
138 138
             } else {
139 139
                 \App::$Response->setStatusCode(404);
140
-                echo '<p>' . __('Page is not founded!') . '</p>';
140
+                echo '<p>'.__('Page is not founded!').'</p>';
141 141
             }
142 142
             ?>
143 143
         </div>
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 <?php
198 198
 $customJsCode = \App::$View->showPlainCode('js');
199 199
 if ($customJsCode !== null) {
200
-    echo '<script>' . $customJsCode . '</script>';
200
+    echo '<script>'.$customJsCode.'</script>';
201 201
 }
202 202
 // render google analytics code here
203 203
 echo \App::$View->render('blocks/googleanalytics');
Please login to merge, or discard this patch.
Apps/View/Front/default/profile/show.php 1 patch
Spacing   +10 added lines, -11 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     $name = __('No name');
27 27
 }
28 28
 
29
-$this->title = __('Profile') . ': ' . $name;
29
+$this->title = __('Profile').': '.$name;
30 30
 
31 31
 $this->breadcrumbs = [
32 32
     Url::to('/') => __('Home'),
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         <?php
47 47
         if ($ratingOn):
48 48
             $rateClass = 'btn-default';
49
-            $rateValue = (int)$user->getProfile()->rating;
49
+            $rateValue = (int) $user->getProfile()->rating;
50 50
             if ($user->getProfile()->rating > 0) {
51 51
                 $rateClass = 'btn-info';
52 52
             } elseif ($user->getProfile()->rating < 0) {
@@ -84,19 +84,19 @@  discard block
 block discarded – undo
84 84
         $userMenu = null;
85 85
         if (true === $isSelf) {
86 86
             $userMenu = [
87
-                ['type' => 'link', 'link' => ['profile/avatar'], 'text' => '<i class="fa fa-camera"></i> ' . __('Avatar'), 'html' => true],
88
-                ['type' => 'link', 'link' => ['profile/messages'], 'text' => '<i class="fa fa-envelope"></i> ' . __('Messages') . ' <span class="badge pm-count-block">0</span>', 'html' => true],
89
-                ['type' => 'link', 'link' => ['profile/settings'], 'text' => '<i class="fa fa-cogs"></i> ' . __('Settings'), 'html' => true]
87
+                ['type' => 'link', 'link' => ['profile/avatar'], 'text' => '<i class="fa fa-camera"></i> '.__('Avatar'), 'html' => true],
88
+                ['type' => 'link', 'link' => ['profile/messages'], 'text' => '<i class="fa fa-envelope"></i> '.__('Messages').' <span class="badge pm-count-block">0</span>', 'html' => true],
89
+                ['type' => 'link', 'link' => ['profile/settings'], 'text' => '<i class="fa fa-cogs"></i> '.__('Settings'), 'html' => true]
90 90
             ];
91 91
         } elseif (\App::$User->isAuth()) {
92 92
             $userMenu = [
93 93
                 [
94 94
                     'type' => 'link', 'link' => Url::to('profile/messages', null, null, ['newdialog' => $user->id]),
95
-                    'text' => '<i class="fa fa-pencil-square-o"></i> ' . __('Write message'), 'html' => true
95
+                    'text' => '<i class="fa fa-pencil-square-o"></i> '.__('Write message'), 'html' => true
96 96
                 ],
97 97
                 [
98 98
                     'type' => 'link', 'link' => Url::to('profile/ignore', null, null, ['id' => $user->id]),
99
-                    'text' => '<i class="fa fa-user-times"></i> ' . __('Block'), 'html' => true, 'property' => ['class' => 'alert-danger']
99
+                    'text' => '<i class="fa fa-user-times"></i> '.__('Block'), 'html' => true, 'property' => ['class' => 'alert-danger']
100 100
                 ]
101 101
             ];
102 102
         }
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
                         foreach ($hobbyArray as $item) {
173 173
                             $item = \App::$Security->strip_tags($item);
174 174
                             if ($item !== null && Str::length($item) > 1) {
175
-                                echo Url::link(['profile/index', 'hobby', trim($item, ' ')], $item, ['class' => 'label label-success']) . ' ';
175
+                                echo Url::link(['profile/index', 'hobby', trim($item, ' ')], $item, ['class' => 'label label-success']).' ';
176 176
                             }
177 177
                         }
178 178
                         ?>
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
             <?= $form->field('message', 'textarea', ['class' => 'form-control']); ?>
219 219
             <div class="text-right"><?= $form->submitButton(__('Send'), ['class' => 'btn btn-default']); ?></div>
220 220
             <?= $form->finish(); ?>
221
-            <?php \App::$Alias->addPlainCode('js', "$('#" . $wall->getFormName() . "').on('change keyup keydown paste cut', 'textarea', function () { $(this).height(0).height(this.scrollHeight);}).find('textarea').change();") ?>
221
+            <?php \App::$Alias->addPlainCode('js', "$('#".$wall->getFormName()."').on('change keyup keydown paste cut', 'textarea', function () { $(this).height(0).height(this.scrollHeight);}).find('textarea').change();") ?>
222 222
         <?php endif; ?>
223 223
         <?php
224 224
         if ($wallRecords !== null):
@@ -229,8 +229,7 @@  discard block
 block discarded – undo
229 229
                     continue;
230 230
                 }
231 231
                 $referNickname = ($referObject->getProfile()->nick == null ?
232
-                    __('No name') . ' <sup>id' . $referObject->getId() . '</sup>' :
233
-                    \App::$Security->strip_tags($referObject->getProfile()->nick));
232
+                    __('No name').' <sup>id'.$referObject->getId().'</sup>' : \App::$Security->strip_tags($referObject->getProfile()->nick));
234 233
                 ?>
235 234
                 <div class="row object-lightborder" id="wall-post-<?= $post->id ?>">
236 235
                     <div class="col-md-2">
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/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,13 +13,13 @@  discard block
 block discarded – undo
13 13
 $this->title = __('User list');
14 14
 
15 15
 if ($id === 'all') {
16
-    $this->title .= ': ' . __('All');
16
+    $this->title .= ': '.__('All');
17 17
 } elseif ($id === 'rating') {
18
-    $this->title .= ': ' . __('Rating');
18
+    $this->title .= ': '.__('Rating');
19 19
 } elseif ($id === 'city') {
20
-    $this->title .= ': ' . __('City') . ' ' . \App::$Security->strip_tags($add);
20
+    $this->title .= ': '.__('City').' '.\App::$Security->strip_tags($add);
21 21
 } elseif ($id === 'hobby') {
22
-    $this->title .= ': ' . __('Hobby') . ' ' . \App::$Security->strip_tags($add);
22
+    $this->title .= ': '.__('Hobby').' '.\App::$Security->strip_tags($add);
23 23
 }
24 24
 
25 25
 $this->breadcrumbs = [
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
 <?php
36 36
     if ($records === null || $records->count() < 1) {
37
-        echo '<div class="alert alert-danger">' . __('Users are not founded!') . '</div>';
37
+        echo '<div class="alert alert-danger">'.__('Users are not founded!').'</div>';
38 38
         return;
39 39
     }
40 40
 ?>
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/widgets/comments/show.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
                 </a>
29 29
             </i>
30 30
         </div>
31
-        <div id="comment-text" class="comment-text"><?= __('Loading') . ' ...' ?></div>
31
+        <div id="comment-text" class="comment-text"><?= __('Loading').' ...' ?></div>
32 32
     </div>
33 33
     <div id="comment-answers-0" class="hidden"></div>
34 34
     <div class="row hidden" id="add-replay-to">
@@ -51,12 +51,12 @@  discard block
 block discarded – undo
51 51
                 <span id="answer-date">00.00.00 00-00-00</span>
52 52
                 <span id="answer-user-name"><?= __('Unknown') ?></span>:
53 53
             </div>
54
-            <div id="answer-text" class="comment-text"><?= __('Loading') . ' ...' ?></div>
54
+            <div id="answer-text" class="comment-text"><?= __('Loading').' ...' ?></div>
55 55
         </div>
56 56
     </li>
57 57
 </ul>
58 58
 
59
-<?php if ((int)$configs['guestAdd'] === 1 || \App::$User->isAuth()): ?>
59
+<?php if ((int) $configs['guestAdd'] === 1 || \App::$User->isAuth()): ?>
60 60
 <!-- comment form -->
61 61
 <form name="comment-add-form" action="" method="post" style="padding-top: 15px;" class="form-horizontal">
62 62
     <input type="hidden" name="replay-to" value="0" />
Please login to merge, or discard this patch.
Apps/View/Front/default/widgets/newcontent/default.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -9,15 +9,15 @@
 block discarded – undo
9 9
     $title = Serialize::getDecodeLocale($record->title);
10 10
     $title = Text::snippet($title, 50);
11 11
     $date = Date::convertToDatetime($record->created_at, Date::FORMAT_TO_HOUR);
12
-    $categoryUrl = \App::$Alias->baseUrl . '/content/list/' . $record->cpath;
13
-    $categoryLink = '<a href="' . $categoryUrl . '">' . Serialize::getDecodeLocale($record->ctitle) . '</a>';
14
-    $newsLink = \App::$Alias->baseUrl . '/content/read/' . $record->cpath;
15
-    $newsLink = rtrim($newsLink, '/') . '/' . $record->path;
12
+    $categoryUrl = \App::$Alias->baseUrl.'/content/list/'.$record->cpath;
13
+    $categoryLink = '<a href="'.$categoryUrl.'">'.Serialize::getDecodeLocale($record->ctitle).'</a>';
14
+    $newsLink = \App::$Alias->baseUrl.'/content/read/'.$record->cpath;
15
+    $newsLink = rtrim($newsLink, '/').'/'.$record->path;
16 16
     
17 17
     echo '<div class="row"><div class="col-md-12">';
18
-    echo '<a href="' . $newsLink . '">&rarr; ' . $title . '</a><br />';
19
-    echo '<small class="pull-left">' . $categoryLink . '</small>';
20
-    echo '<small class="pull-right">' . $date . '</small>';
18
+    echo '<a href="'.$newsLink.'">&rarr; '.$title.'</a><br />';
19
+    echo '<small class="pull-left">'.$categoryLink.'</small>';
20
+    echo '<small class="pull-right">'.$date.'</small>';
21 21
     echo '</div></div>';
22 22
     echo '<hr class="pretty" />';
23 23
 }
Please login to merge, or discard this patch.