Passed
Push — master ( df5b6f...0d9957 )
by Mihail
05:31
created
Apps/View/Admin/default/user/user_update.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             <div class="text-right"><strong><?= __('Profile preview') ?></strong></div>
38 38
         </div>
39 39
         <div class="col-md-9">
40
-            <a href="<?= \App::$Alias->scriptUrl . '/profile/show/' . $model->_user->id ?>" target="_blank"><?= __('View profile on website') ?></a>
40
+            <a href="<?= \App::$Alias->scriptUrl.'/profile/show/'.$model->_user->id ?>" target="_blank"><?= __('View profile on website') ?></a>
41 41
         </div>
42 42
     </div>
43 43
     <div class="row mt-3 mb-3">
Please login to merge, or discard this patch.
Apps/View/Admin/default/_layouts/default.php 2 patches
Braces   +13 added lines, -5 removed lines patch added patch discarded remove patch
@@ -134,7 +134,8 @@  discard block
 block discarded – undo
134 134
                                     <span class="text-sm">No feedback queries found</span>
135 135
                                 </div>
136 136
                             </div>
137
-                            <?php else: ?>
137
+                            <?php else {
138
+    : ?>
138 139
                                 <?php foreach ($features->getFeedback() as $feed): ?>
139 140
                                     <div class="media">
140 141
                                         <div class="media-left">
@@ -145,7 +146,9 @@  discard block
 block discarded – undo
145 146
                                             <span class="text-sm"><?= Text::snippet($feed->message, 100) ?></span>
146 147
                                         </div>
147 148
                                     </div>
148
-                                <?php endforeach; ?>
149
+                                <?php endforeach;
150
+}
151
+?>
149 152
                             <?php endif; ?>
150 153
                         </div>
151 154
 
@@ -167,7 +170,8 @@  discard block
 block discarded – undo
167 170
                                     <span class="text-sm">No comments found</span>
168 171
                                 </div>
169 172
                             </div>
170
-                            <?php else: ?>
173
+                            <?php else {
174
+    : ?>
171 175
                                 <?php foreach ($features->getComments() as $comment): ?>
172 176
                                 <?php /** @var \Apps\ActiveRecord\CommentPost $comment */ ?>
173 177
                                     <div class="media">
@@ -175,6 +179,7 @@  discard block
 block discarded – undo
175 179
                                             <a href="<?= ($comment->user ? Url::link(['user/update', [$comment->user->id]]) : '#') ?>">
176 180
                                                 <?php
177 181
                                                 $commentAva = \App::$Alias->scriptUrl . '/upload/user/avatar/small/default.jpg';
182
+}
178 183
                                                 if ($comment->user && $comment->user->id > 0) {
179 184
                                                     $commentAva = $comment->user->profile->getAvatarUrl('small');
180 185
                                                 }
@@ -220,9 +225,12 @@  discard block
 block discarded – undo
220 225
                             <?php foreach ($breadcrumbs as $url => $text): ?>
221 226
                                 <?php if (\Ffcms\Core\Helper\Type\Any::isInt($url)): ?>
222 227
                                     <?= $text ?>
223
-                                <?php else: ?>
228
+                                <?php else {
229
+    : ?>
224 230
                                     <a href="<?= $url ?>"><?= $text ?></a> /
225
-                                <?php endif; ?>
231
+                                <?php endif;
232
+}
233
+?>
226 234
                             <?php endforeach; ?>
227 235
                         <?php endif; ?>
228 236
                         </h2>
Please login to merge, or discard this patch.
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
                                         <div class="media-left">
179 179
                                             <a href="<?= ($comment->user ? Url::link(['user/update', [$comment->user->id]]) : '#') ?>">
180 180
                                                 <?php
181
-                                                $commentAva = \App::$Alias->scriptUrl . '/upload/user/avatar/small/default.jpg';
181
+                                                $commentAva = \App::$Alias->scriptUrl.'/upload/user/avatar/small/default.jpg';
182 182
                                                 if ($comment->user && $comment->user->id > 0) {
183 183
                                                     $commentAva = $comment->user->profile->getAvatarUrl('small');
184 184
                                                 }
@@ -222,8 +222,8 @@  discard block
 block discarded – undo
222 222
                             $list = $this->listing('ul', ['class' => 'list-inline']);
223 223
                             foreach (\App::$Properties->get('languages') as $lang) {
224 224
                                 $list->li([
225
-                                    'text' => '<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="flag flag-' . $lang . '" alt="' . $lang . '">',
226
-                                    'link' => App::$Alias->baseUrlNoLang . '/' . $lang . App::$Request->getPathInfo(),
225
+                                    'text' => '<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="flag flag-'.$lang.'" alt="'.$lang.'">',
226
+                                    'link' => App::$Alias->baseUrlNoLang.'/'.$lang.App::$Request->getPathInfo(),
227 227
                                     'html' => true
228 228
                                 ], ['class' => 'list-inline-item']);
229 229
                             }
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
                         </li>
267 267
                         <li class="nav-item<?= (\App::$Request->getController() === 'Main' && \App::$Request->getAction() !== 'Index') ? ' active' : null ?>">
268 268
                             <?= Url::a(['#system-dropdown'],
269
-                                '<i class="fa fa-fire"></i> <span class="nav-text">' . __('System') . '</span>',
269
+                                '<i class="fa fa-fire"></i> <span class="nav-text">'.__('System').'</span>',
270 270
                                 [
271 271
                                     'class' => 'nav-container',
272 272
                                     'data-toggle' => 'collapse',
@@ -274,12 +274,12 @@  discard block
 block discarded – undo
274 274
                                 ])
275 275
                             ?>
276 276
 
277
-                            <?= $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse' . ((\App::$Request->getController() === 'Main' && \App::$Request->getAction() !== 'Index') ? 'in show' : null), 'id' => 'system-dropdown'])
278
-                                ->menu(['link' => ['main/settings'], 'text' => '<i class="fa fa-cogs"></i> ' . __('Settings'), 'html' => true])
279
-                                ->menu(['link' => ['main/files'], 'text' => '<i class="fa fa-file-o"></i> ' . __('Files'), 'html' => true])
280
-                                ->menu(['link' => ['main/antivirus'], 'text' => '<i class="fa fa-shield"></i> ' . __('Antivirus'), 'html' => true])
281
-                                ->menu(['link' => ['main/routing'], 'text' => '<i class="fa fa-code"></i> ' . __('Routing'), 'html' => true])
282
-                                ->menu(['link' => ['main/updates'], 'text' => '<i class="fa fa-gavel"></i> ' . __('Updates'), 'html' => true])
277
+                            <?= $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse'.((\App::$Request->getController() === 'Main' && \App::$Request->getAction() !== 'Index') ? 'in show' : null), 'id' => 'system-dropdown'])
278
+                                ->menu(['link' => ['main/settings'], 'text' => '<i class="fa fa-cogs"></i> '.__('Settings'), 'html' => true])
279
+                                ->menu(['link' => ['main/files'], 'text' => '<i class="fa fa-file-o"></i> '.__('Files'), 'html' => true])
280
+                                ->menu(['link' => ['main/antivirus'], 'text' => '<i class="fa fa-shield"></i> '.__('Antivirus'), 'html' => true])
281
+                                ->menu(['link' => ['main/routing'], 'text' => '<i class="fa fa-code"></i> '.__('Routing'), 'html' => true])
282
+                                ->menu(['link' => ['main/updates'], 'text' => '<i class="fa fa-gavel"></i> '.__('Updates'), 'html' => true])
283 283
                                 ->display();
284 284
                             ?>
285 285
                         </li>
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
                         ?>
298 298
                         <li class="nav-item<?= (array_key_exists(\App::$Request->getController(), $apps) || \App::$Request->getController() === 'Application') ? ' active' : null ?>">
299 299
                             <?= Url::a(['#apps-dropdown'],
300
-                                '<i class="fa fa-plug"></i> <span class="nav-text">' . __('Applications') . '</span>',
300
+                                '<i class="fa fa-plug"></i> <span class="nav-text">'.__('Applications').'</span>',
301 301
                                 [
302 302
                                     'class' => 'nav-container',
303 303
                                     'data-toggle' => 'collapse',
@@ -306,18 +306,18 @@  discard block
 block discarded – undo
306 306
                             ?>
307 307
 
308 308
                             <?php
309
-                            $appMenu = $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse' . ((array_key_exists(\App::$Request->getController(), $apps) || \App::$Request->getController() === 'Application') ? 'in show' : null), 'id' => 'apps-dropdown']);
309
+                            $appMenu = $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse'.((array_key_exists(\App::$Request->getController(), $apps) || \App::$Request->getController() === 'Application') ? 'in show' : null), 'id' => 'apps-dropdown']);
310 310
                             foreach ($apps as $app) {
311 311
                                 /** @var \Apps\ActiveRecord\App $app */
312
-                                $appMenu->menu(['link' => [Str::lowerCase($app->sys_name) . '/index'], 'text' => $app->getLocaleName()]);
312
+                                $appMenu->menu(['link' => [Str::lowerCase($app->sys_name).'/index'], 'text' => $app->getLocaleName()]);
313 313
                             }
314
-                            $appMenu->menu(['link' => 'application/index', 'text' => __('All apps') . '...']);
314
+                            $appMenu->menu(['link' => 'application/index', 'text' => __('All apps').'...']);
315 315
                             echo $appMenu->display();
316 316
                             ?>
317 317
                         </li>
318 318
                         <li class="nav-item<?= (array_key_exists(\App::$Request->getController(), $widgets) || \App::$Request->getController() === 'Widget') ? ' active' : null ?>">
319 319
                             <?= Url::a(['#widgets-dropdown'],
320
-                                '<i class="fa fa-puzzle-piece"></i> <span class="nav-text">' . __('Widgets') . '</span>',
320
+                                '<i class="fa fa-puzzle-piece"></i> <span class="nav-text">'.__('Widgets').'</span>',
321 321
                                 [
322 322
                                     'class' => 'nav-container',
323 323
                                     'data-toggle' => 'collapse',
@@ -326,12 +326,12 @@  discard block
 block discarded – undo
326 326
                             ?>
327 327
 
328 328
                             <?php
329
-                            $widgetMenu = $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse' . ((array_key_exists(\App::$Request->getController(), $widgets) || \App::$Request->getController() === 'Widget') ? 'in show' : null), 'id' => 'widgets-dropdown']);
329
+                            $widgetMenu = $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse'.((array_key_exists(\App::$Request->getController(), $widgets) || \App::$Request->getController() === 'Widget') ? 'in show' : null), 'id' => 'widgets-dropdown']);
330 330
                             foreach ($widgets as $widget) {
331 331
                                 /** @var \Apps\ActiveRecord\App $widget */
332
-                                $widgetMenu->menu(['link' => [Str::lowerCase($widget->sys_name) . '/index'], 'text' => $widget->getLocaleName()]);
332
+                                $widgetMenu->menu(['link' => [Str::lowerCase($widget->sys_name).'/index'], 'text' => $widget->getLocaleName()]);
333 333
                             }
334
-                            $widgetMenu->menu(['link' => 'widget/index', 'text' => __('All widgets') . '...']);
334
+                            $widgetMenu->menu(['link' => 'widget/index', 'text' => __('All widgets').'...']);
335 335
                             echo $widgetMenu->display();
336 336
                             ?>
337 337
                         </li>
Please login to merge, or discard this patch.
Apps/Model/Front/Content/EntityContentSearch.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
         $index = implode('-', $this->_skip);
63 63
         // try to get this slow query from cache
64
-        $cache = App::$Cache->getItem('entity.content.search.index.' . $index);
64
+        $cache = App::$Cache->getItem('entity.content.search.index.'.$index);
65 65
         if (!$cache->isHit()) {
66 66
             $cache->set($this->makeSearch());
67 67
             $cache->expiresAfter(static::CACHE_TIME);
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
                 'id' => $item->id,
96 96
                 'title' => $item->getLocaled('title'),
97 97
                 'snippet' => Text::snippet($text),
98
-                'uri' => '/content/read/' . $item->getPath(),
98
+                'uri' => '/content/read/'.$item->getPath(),
99 99
                 'thumb' => $item->getPosterThumbUri()
100 100
             ];
101 101
         }
Please login to merge, or discard this patch.
Apps/View/Admin/default/user/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     ]);
56 56
 
57 57
 foreach ($records as $user) {
58
-    $roleHtml = $user->role->color ? '<span class="badge badge-light" style="color: ' . $user->role->color . '">' . $user->role->name . '</span>' : $user->role->name;
58
+    $roleHtml = $user->role->color ? '<span class="badge badge-light" style="color: '.$user->role->color.'">'.$user->role->name.'</span>' : $user->role->name;
59 59
 
60 60
     $table->row([
61 61
         ['text' => $user->id],
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             ->add('<i class="fa fa-trash-o"></i>', ['user/delete', [$user->id]], ['class' => 'btn btn-danger', 'html' => true])
70 70
             ->display(),
71 71
             'properties' => ['class' => 'text-center'], 'html' => true],
72
-        'properties' => ['class' => 'checkbox-row' . ($user->approve_token !== null ? ' bg-warning' : null)]
72
+        'properties' => ['class' => 'checkbox-row'.($user->approve_token !== null ? ' bg-warning' : null)]
73 73
 
74 74
     ]);
75 75
 }
Please login to merge, or discard this patch.
Apps/View/Admin/default/user/user_clear.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
             ['text' => $model->getUser()->id],
35 35
             ['text' => $model->getUser()->email],
36 36
             ['text' => $model->getUser()->login],
37
-            ['text' => $model->getUser()->profile->nick ?? 'id' . $model->getUser()->id],
37
+            ['text' => $model->getUser()->profile->nick ?? 'id'.$model->getUser()->id],
38 38
             ['text' => Date::convertToDatetime($model->getUser()->created_at, Date::FORMAT_TO_HOUR)],
39 39
         ])->display() ?>
40 40
 </div>
Please login to merge, or discard this patch.
Apps/View/Admin/default/content/content_update.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -51,9 +51,9 @@  discard block
 block discarded – undo
51 51
             $langMenu->menu([
52 52
                 'text' => Str::upperCase($lang),
53 53
                 'tab' => function() use ($form, $lang) {
54
-                    return $form->fieldset()->text('title.' . $lang, null, __('Fill the title of the content for current language locale')) .
55
-                        '<strong>' . __('Content text') . '</strong><br />' .
56
-                        $form->field()->textarea('text.' . $lang, ['class' => 'form-control wysiwyg', 'rows' => 7]);
54
+                    return $form->fieldset()->text('title.'.$lang, null, __('Fill the title of the content for current language locale')).
55
+                        '<strong>'.__('Content text').'</strong><br />'.
56
+                        $form->field()->textarea('text.'.$lang, ['class' => 'form-control wysiwyg', 'rows' => 7]);
57 57
                 },
58 58
                 'tabActive' => $lang === \App::$Request->getLanguage()
59 59
             ]);
@@ -72,9 +72,9 @@  discard block
 block discarded – undo
72 72
             $langMenu->menu([
73 73
                 'text' => Str::upperCase($lang),
74 74
                 'tab' => function() use ($form, $lang) {
75
-                    return $form->fieldset()->text('metaTitle.' . $lang, null, __('Set meta title for content page (displayed in browser head). Recommended length: 50-70 chars')).
76
-                        $form->fieldset()->text('metaKeywords.' . $lang, ['class' => 'tag-selectize'], __('Set meta keywords for this content (for search engine crawlers) separated by comma')).
77
-                        $form->fieldset()->text('metaTitle.' . $lang, null, __('Set meta description for this content (for search engine crawlers). Recommended length: 200-250 chars'));
75
+                    return $form->fieldset()->text('metaTitle.'.$lang, null, __('Set meta title for content page (displayed in browser head). Recommended length: 50-70 chars')).
76
+                        $form->fieldset()->text('metaKeywords.'.$lang, ['class' => 'tag-selectize'], __('Set meta keywords for this content (for search engine crawlers) separated by comma')).
77
+                        $form->fieldset()->text('metaTitle.'.$lang, null, __('Set meta description for this content (for search engine crawlers). Recommended length: 200-250 chars'));
78 78
                 },
79 79
                 'tabActive' => $lang === \App::$Request->getLanguage()
80 80
             ]);
@@ -92,16 +92,16 @@  discard block
 block discarded – undo
92 92
             <div class="dropzone dropzone-previews" id="ffcms-dropzone"></div>
93 93
         </div>
94 94
         <div class="col-md-4">
95
-        ' . $form->fieldset()->select('poster', ['options' => [__('Not selected...')]], __("Select image from gallery as a poster for this content")) . '
95
+        ' . $form->fieldset()->select('poster', ['options' => [__('Not selected...')]], __("Select image from gallery as a poster for this content")).'
96 96
         </div>
97 97
     </div><br/><br/>';
98 98
     }])
99 99
     ->menu(['text' => __('Other'), 'tab' => function() use ($form, $model) {
100
-        return $form->fieldset()->boolean('display', null, __('Can users view this content or only available for administrators?')) .
101
-            $form->fieldset()->boolean('important', null, __('Make this material important and stack it on top of all news?')) .
102
-            $form->fieldset()->text('createdAt', ['class' => 'form-control datepick'], __('Set the date of creation or leave empty for current date')) .
103
-            $form->fieldset()->select('authorId', ['options' => $model->getUserIdName(), 'optionsKey' => true, 'class' => 'selectize-option'], __('Enter author user_id or leave empty to set current user as author')) .
104
-            $form->fieldset()->text('source', null, __('Set source URL if this content is copied from another website')) .
100
+        return $form->fieldset()->boolean('display', null, __('Can users view this content or only available for administrators?')).
101
+            $form->fieldset()->boolean('important', null, __('Make this material important and stack it on top of all news?')).
102
+            $form->fieldset()->text('createdAt', ['class' => 'form-control datepick'], __('Set the date of creation or leave empty for current date')).
103
+            $form->fieldset()->select('authorId', ['options' => $model->getUserIdName(), 'optionsKey' => true, 'class' => 'selectize-option'], __('Enter author user_id or leave empty to set current user as author')).
104
+            $form->fieldset()->text('source', null, __('Set source URL if this content is copied from another website')).
105 105
             $form->fieldset()->text('addRating', null, __('Add or reduce this content rating. Example: 5 gives +5 to total rating, -5 gives -5 to total'));
106 106
     }]);
107 107
 
@@ -128,11 +128,11 @@  discard block
 block discarded – undo
128 128
                 ['text' => $comment->id],
129 129
                 ['text' => Text::snippet(\App::$Security->strip_tags($comment->message), 100)],
130 130
                 ['text' => $comment->getAnswerCount()],
131
-                ['text' => Url::a(['user/update', [$comment->user_id]], ($comment->user->profile->nick ?? 'id' . $comment->user->id)), 'html' => true],
131
+                ['text' => Url::a(['user/update', [$comment->user_id]], ($comment->user->profile->nick ?? 'id'.$comment->user->id)), 'html' => true],
132 132
                 ['text' => $this->bootstrap()->btngroup(['class' => 'btn-group btn-group-sm'])
133 133
                     ->add('<i class="fa fa-pencil"></i>', ['comments/read', [$comment->id]], ['html' => true, 'class' => 'btn btn-primary', 'target' => '_blank'])
134 134
                     ->add('<i class="fa fa-trash-o"></i>', ['comments/delete', ['comment', $comment->id]], ['html' => true, 'class' => 'btn btn-danger', 'target' => '_blank'])
135
-                    ->display(),'properties' => ['class' => 'text-center'], 'html' => true
135
+                    ->display(), 'properties' => ['class' => 'text-center'], 'html' => true
136 136
                 ]
137 137
             ]);
138 138
         }
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
     var DropzoneFiles = [];
239 239
     $('#ffcms-dropzone').dropzone({
240 240
         url: script_url + '/api/content/galleryupload/<?= $model->galleryFreeId ?>?lang=' + script_lang,
241
-        dictDefaultMessage: '<?= __('Drop files here to upload in gallery') . '<br />' . __('(or click here)') ?>',
241
+        dictDefaultMessage: '<?= __('Drop files here to upload in gallery').'<br />'.__('(or click here)') ?>',
242 242
         acceptedFiles: ".jpeg,.jpg,.png,.gif,.webp",
243 243
         addRemoveLinks: true,
244 244
         removedfile: function (file) { // file remove click, lets try to remove file from server & make visual changes
Please login to merge, or discard this patch.
Apps/View/Admin/default/content/category_list.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 <h1><?= __('Category list') ?></h1>
26 26
 <div class="row">
27 27
     <div class="col-md-12">
28
-        <?= Url::a(['content/categoryupdate'], '<i class="fa fa-plus"></i> ' . __('Add category'), ['class' => 'btn btn-primary', 'html' => true]) ?>
28
+        <?= Url::a(['content/categoryupdate'], '<i class="fa fa-plus"></i> '.__('Add category'), ['class' => 'btn btn-primary', 'html' => true]) ?>
29 29
     </div>
30 30
 </div>
31 31
 <div class="table-responsive">
@@ -56,17 +56,17 @@  discard block
 block discarded – undo
56 56
             <tr>
57 57
                 <td>
58 58
                     <div class="row">
59
-                        <div class="d-none d-md-block col-md-<?= $offset ?> col-xs-<?= $offset+2 ?> " style="border-bottom: 2px solid #8a8a8a;height: 1px;padding-top: 10px;"></div>
60
-                        <div class="col-md-<?= $set ?> col-xs-<?= $set-2 ?>">
59
+                        <div class="d-none d-md-block col-md-<?= $offset ?> col-xs-<?= $offset + 2 ?> " style="border-bottom: 2px solid #8a8a8a;height: 1px;padding-top: 10px;"></div>
60
+                        <div class="col-md-<?= $set ?> col-xs-<?= $set - 2 ?>">
61 61
                             <?= $row->getLocaled('title') ?>
62 62
                             <sup>id: <?= $row->id ?></sup>
63
-                            <a href="<?= \App::$Alias->scriptUrl . '/content/list/' . $row->path ?>" target="_blank" class="badge badge-secondary">/<?= $row->path ?></a>
63
+                            <a href="<?= \App::$Alias->scriptUrl.'/content/list/'.$row->path ?>" target="_blank" class="badge badge-secondary">/<?= $row->path ?></a>
64 64
                         </div>
65 65
                     </div>
66 66
                 </td>
67 67
                 <td class="text-center">
68 68
                     <?php $btn = $this->bootstrap()->btngroup(['class' => 'btn-group btn-group-sm', 'dropdown' => ['class' => 'btn-group btn-group-sm'], 'role' => 'group'], 4)
69
-                        ->add('<i class="fa fa-eye"></i>', [\App::$Alias->scriptUrl . '/content/list/' . $row->path], ['html' => true, 'target' => '_blank'])
69
+                        ->add('<i class="fa fa-eye"></i>', [\App::$Alias->scriptUrl.'/content/list/'.$row->path], ['html' => true, 'target' => '_blank'])
70 70
                         ->add('<i class="fa fa-plus"></i>', ['content/categoryupdate', null, ['parent' => $row->id]], ['class' => 'btn btn-success', 'data-toggle' => 'tooltip', 'title' => __('Add subcategory'), 'html' => true])
71 71
                         ->add('<i class="fa fa-cog"></i>', ['content/categoryupdate', [$row->id]], ['class' => 'btn btn-primary', 'data-toggle' => 'tooltip', 'title' => __('Category configurations'), 'html' => true]);
72 72
                     if ($row->id > 1) {
Please login to merge, or discard this patch.
Apps/Model/Admin/User/FormUserClear.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -70,12 +70,12 @@  discard block
 block discarded – undo
70 70
      */
71 71
     public function make()
72 72
     {
73
-        if ((bool)$this->comments) {
73
+        if ((bool) $this->comments) {
74 74
             CommentPost::where('user_id', $this->_user->id)->delete();
75 75
             CommentAnswer::where('user_id', $this->_user->id)->delete();
76 76
         }
77 77
 
78
-        if ((bool)$this->content) {
78
+        if ((bool) $this->content) {
79 79
             $contents = Content::where('author_id', $this->_user->id);
80 80
             $ids = $contents->pluck('id')->toArray();
81 81
             if ($ids && count($ids) > 0) {
@@ -85,12 +85,12 @@  discard block
 block discarded – undo
85 85
             }
86 86
         }
87 87
 
88
-        if ((bool)$this->feedback) {
88
+        if ((bool) $this->feedback) {
89 89
             FeedbackPost::where('user_id', $this->_user->id)
90 90
                 ->update(['readed' => true, 'closed' => true]);
91 91
         }
92 92
 
93
-        if ((bool)$this->wall) {
93
+        if ((bool) $this->wall) {
94 94
             WallPost::where('sender_id', $this->_user->id)->delete();
95 95
             WallAnswer::where('user_id', $this->_user->id)->delete();
96 96
         }
Please login to merge, or discard this patch.
Apps/Model/Admin/User/FormUserDelete.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         foreach ($this->users as $user) {
80 80
             $uid = $user->id;
81 81
             // delete whole website info for this user
82
-            if ((bool)$this->delete) {
82
+            if ((bool) $this->delete) {
83 83
                 $model = new FormUserClear($user);
84 84
                 $model->comments = true;
85 85
                 $model->content = true;
@@ -89,10 +89,10 @@  discard block
 block discarded – undo
89 89
             }
90 90
 
91 91
             // delete avatars
92
-            File::remove('/upload/user/avatar/big/' . $uid . '.jpg');
93
-            File::remove('/upload/user/avatar/medium/' . $uid . '.jpg');
94
-            File::remove('/upload/user/avatar/small/' . $uid . '.jpg');
95
-            File::remove('/upload/user/avatar/original/' . $uid . '.jpg');
92
+            File::remove('/upload/user/avatar/big/'.$uid.'.jpg');
93
+            File::remove('/upload/user/avatar/medium/'.$uid.'.jpg');
94
+            File::remove('/upload/user/avatar/small/'.$uid.'.jpg');
95
+            File::remove('/upload/user/avatar/original/'.$uid.'.jpg');
96 96
             // delete user profile and auth data
97 97
             $user->profile()->delete();
98 98
             // delete user provider data
Please login to merge, or discard this patch.