Passed
Push — master ( 67ec34...2ff9ea )
by Mihail
05:25
created
Apps/Controller/Admin/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         $query = new UserRecords();
40 40
 
41 41
         // set current page and offset
42
-        $page = (int)App::$Request->query->get('page', 0);
42
+        $page = (int) App::$Request->query->get('page', 0);
43 43
         $offset = $page * self::ITEM_PER_PAGE;
44 44
 
45 45
         // build pagination
Please login to merge, or discard this patch.
Apps/Controller/Admin/Contenttag.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         
32 32
         // render view output
33 33
         return App::$View->render('index', [
34
-           'model' => $model->filter()
34
+            'model' => $model->filter()
35 35
         ]);
36 36
     }
37 37
 }
38 38
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/View/Front/default/profile/show.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     $name = __('No name');
28 28
 }
29 29
 
30
-$this->title = __('Profile') . ': ' . $name;
30
+$this->title = __('Profile').': '.$name;
31 31
 
32 32
 $this->breadcrumbs = [
33 33
     Url::to('/') => __('Home'),
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         <?php
48 48
         if ($ratingOn):
49 49
             $rateClass = 'btn-default';
50
-            $rateValue = (int)$user->getProfile()->rating;
50
+            $rateValue = (int) $user->getProfile()->rating;
51 51
             if ($user->getProfile()->rating > 0) {
52 52
                 $rateClass = 'btn-info';
53 53
             } elseif ($user->getProfile()->rating < 0) {
@@ -85,19 +85,19 @@  discard block
 block discarded – undo
85 85
         $userMenu = null;
86 86
         if (true === $isSelf) {
87 87
             $userMenu = [
88
-                ['type' => 'link', 'link' => ['profile/avatar'], 'text' => '<i class="fa fa-camera"></i> ' . __('Avatar'), 'html' => true],
89
-                ['type' => 'link', 'link' => ['profile/messages'], 'text' => '<i class="fa fa-envelope"></i> ' . __('Messages') . ' <span class="badge pm-count-block">0</span>', 'html' => true],
90
-                ['type' => 'link', 'link' => ['profile/settings'], 'text' => '<i class="fa fa-cogs"></i> ' . __('Settings'), 'html' => true]
88
+                ['type' => 'link', 'link' => ['profile/avatar'], 'text' => '<i class="fa fa-camera"></i> '.__('Avatar'), 'html' => true],
89
+                ['type' => 'link', 'link' => ['profile/messages'], 'text' => '<i class="fa fa-envelope"></i> '.__('Messages').' <span class="badge pm-count-block">0</span>', 'html' => true],
90
+                ['type' => 'link', 'link' => ['profile/settings'], 'text' => '<i class="fa fa-cogs"></i> '.__('Settings'), 'html' => true]
91 91
             ];
92 92
         } elseif (\App::$User->isAuth()) {
93 93
             $userMenu = [
94 94
                 [
95 95
                     'type' => 'link', 'link' => Url::to('profile/messages', null, null, ['newdialog' => $user->id]),
96
-                    'text' => '<i class="fa fa-pencil-square-o"></i> ' . __('Write message'), 'html' => true
96
+                    'text' => '<i class="fa fa-pencil-square-o"></i> '.__('Write message'), 'html' => true
97 97
                 ],
98 98
                 [
99 99
                     'type' => 'link', 'link' => Url::to('profile/ignore', null, null, ['id' => $user->id]),
100
-                    'text' => '<i class="fa fa-user-times"></i> ' . __('Block'), 'html' => true, 'property' => ['class' => 'alert-danger']
100
+                    'text' => '<i class="fa fa-user-times"></i> '.__('Block'), 'html' => true, 'property' => ['class' => 'alert-danger']
101 101
                 ]
102 102
             ];
103 103
         }
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
                         foreach ($hobbyArray as $item) {
174 174
                             $item = \App::$Security->strip_tags($item);
175 175
                             if ($item !== null && Str::length($item) > 1) {
176
-                                echo Url::link(['profile/index', 'hobby', trim($item, ' ')], $item, ['class' => 'label label-success']) . ' ';
176
+                                echo Url::link(['profile/index', 'hobby', trim($item, ' ')], $item, ['class' => 'label label-success']).' ';
177 177
                             }
178 178
                         }
179 179
                         ?>
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
             <?= $form->field('message', 'textarea', ['class' => 'form-control']); ?>
220 220
             <div class="text-right"><?= $form->submitButton(__('Send'), ['class' => 'btn btn-default']); ?></div>
221 221
             <?= $form->finish(); ?>
222
-            <?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
+            <?php \App::$Alias->addPlainCode('js', "$('#".$wall->getFormName()."').on('change keyup keydown paste cut', 'textarea', function () { $(this).height(0).height(this.scrollHeight);}).find('textarea').change();") ?>
223 223
         <?php endif; ?>
224 224
         <?php
225 225
         if ($wallRecords !== null):
Please login to merge, or discard this patch.