Passed
Push — master ( bda6ce...afc50f )
by Mihail
05:03
created
Apps/View/Admin/default/content/category_list.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 <hr />
24 24
 <div class="row">
25 25
     <div class="col-md-12">
26
-        <?= Url::link(['content/categoryupdate', 0], '<i class="fa fa-plus"></i> ' . __('Add category'), ['class' => 'btn btn-primary pull-right']) ?>
26
+        <?= Url::link(['content/categoryupdate', 0], '<i class="fa fa-plus"></i> '.__('Add category'), ['class' => 'btn btn-primary pull-right']) ?>
27 27
     </div>
28 28
 </div>
29 29
 <div class="table-responsive">
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
             <tr>
56 56
                 <td>
57 57
                     <div class="row">
58
-                        <div class="col-md-<?= $offset ?> col-xs-<?= $offset+2 ?>" style="padding-top: 8px;border-bottom: 2px solid #8a8a8a"></div>
59
-                        <div class="col-md-<?= $set ?> col-xs-<?= $set-2 ?>">
58
+                        <div class="col-md-<?= $offset ?> col-xs-<?= $offset + 2 ?>" style="padding-top: 8px;border-bottom: 2px solid #8a8a8a"></div>
59
+                        <div class="col-md-<?= $set ?> col-xs-<?= $set - 2 ?>">
60 60
                             <?= Serialize::getDecodeLocale($row->title) ?>
61 61
                             <sup>id: <?= $row->id ?></sup>
62 62
                             <span class="label label-info">/<?= $row->path ?></span>
Please login to merge, or discard this patch.
Apps/View/Admin/default/content/category_update.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
 foreach (\App::$Properties->get('languages') as $lang) {
33 33
     $items[] = [
34 34
         'type' => 'tab',
35
-        'text' => __('Lang') . ': ' . Str::upperCase($lang),
36
-        'content' => $form->field('title.' . $lang, 'text', ['class' => 'form-control'], __('Enter category title, visible for users')) .
37
-            $form->field('description.' . $lang, 'text', ['class' => 'form-control'], __('Enter category description')),
35
+        'text' => __('Lang').': '.Str::upperCase($lang),
36
+        'content' => $form->field('title.'.$lang, 'text', ['class' => 'form-control'], __('Enter category title, visible for users')).
37
+            $form->field('description.'.$lang, 'text', ['class' => 'form-control'], __('Enter category description')),
38 38
         'html' => true,
39 39
         'active' => $lang === \App::$Request->getLanguage(),
40 40
         '!secure' => true
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 $pathProperty = [
54 54
     'class' => 'form-control'
55 55
 ];
56
-if ((int)$model->id == '1') {
56
+if ((int) $model->id == '1') {
57 57
     $pathProperty['disabled'] = '';
58 58
 } else {
59 59
     echo $form->field('dependId', 'select', ['class' => 'form-control', 'options' => $model->categoryList(), 'optionsKey' => true], __('Select owner category for this category'));
Please login to merge, or discard this patch.
Apps/View/Admin/default/content/content_update.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -42,9 +42,9 @@  discard block
 block discarded – undo
42 42
 foreach (\App::$Properties->get('languages') as $lang) {
43 43
     $generalItems[] = [
44 44
         'type' => 'tab',
45
-        'text' => __('Lang') . ': ' . Str::upperCase($lang),
46
-        'content' => $form->field('title.' . $lang, 'text', ['class' => 'form-control'], __('Please, enter the title of your material for current language locale'), 'content/form/tab_content_update') .
47
-            $form->field('text.' . $lang, 'textarea', ['class' => 'form-control wysiwyg', 'rows' => 7, 'html' => true], null, 'content/form/tab_content_update'),
45
+        'text' => __('Lang').': '.Str::upperCase($lang),
46
+        'content' => $form->field('title.'.$lang, 'text', ['class' => 'form-control'], __('Please, enter the title of your material for current language locale'), 'content/form/tab_content_update').
47
+            $form->field('text.'.$lang, 'textarea', ['class' => 'form-control wysiwyg', 'rows' => 7, 'html' => true], null, 'content/form/tab_content_update'),
48 48
         'html' => true,
49 49
         'active' => $lang === \App::$Request->getLanguage(),
50 50
         '!secure' => true
@@ -52,10 +52,10 @@  discard block
 block discarded – undo
52 52
 
53 53
     $propertiesItems[] = [
54 54
         'type' => 'tab',
55
-        'text' => __('Lang') . ': ' . Str::upperCase($lang),
56
-        'content' => $form->field('metaTitle.' . $lang, 'text', ['class' => 'form-control'], __('Enter meta param title for page title. Recoomended: 50-70 characters')) .
57
-            $form->field('metaKeywords.' . $lang, 'text', ['class' => 'form-control'], __('Enter meta param keywords for this content, separated by comma. Example: home, door, dog')) .
58
-            $form->field('metaDescription.' . $lang, 'text', ['class' => 'form-control'], __('Enter meta param description for this content. Recommended is 100-150 characters')),
55
+        'text' => __('Lang').': '.Str::upperCase($lang),
56
+        'content' => $form->field('metaTitle.'.$lang, 'text', ['class' => 'form-control'], __('Enter meta param title for page title. Recoomended: 50-70 characters')).
57
+            $form->field('metaKeywords.'.$lang, 'text', ['class' => 'form-control'], __('Enter meta param keywords for this content, separated by comma. Example: home, door, dog')).
58
+            $form->field('metaDescription.'.$lang, 'text', ['class' => 'form-control'], __('Enter meta param description for this content. Recommended is 100-150 characters')),
59 59
         'html' => true,
60 60
         '!secure' => true,
61 61
         'active' => $lang === \App::$Request->getLanguage()
@@ -89,13 +89,13 @@  discard block
 block discarded – undo
89 89
 <div class="col-md-4">
90 90
             <span class="btn btn-success fileinput-button btn-block">
91 91
                 <i class="glyphicon glyphicon-plus"></i>
92
-                <span>' . __('Upload image') . '</span>
92
+                <span>' . __('Upload image').'</span>
93 93
                 <!-- The file input field used as target for the file upload widget -->
94 94
                 <input id="fileupload" type="file" name="gallery-files" multiple>
95 95
             </span>
96 96
 </div>
97 97
 <div class="col-md-8">
98
-    ' . $form->field('poster', 'select', ['options' => [__('Not selected...')], 'class' => 'form-control'], __('Select image from gallery as a poster for this content')) . '
98
+    ' . $form->field('poster', 'select', ['options' => [__('Not selected...')], 'class' => 'form-control'], __('Select image from gallery as a poster for this content')).'
99 99
 </div>
100 100
 </div><br/><br/>';
101 101
 ?>
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         ['type' => 'tab', 'text' => __('Gallery'), 'content' => $galleryTab, 'html' => true, '!secure' => true],
109 109
         ['type' => 'tab', 'text' => __('Other'), 'content' => $otherTab, 'html' => true, '!secure' => true]
110 110
     ]
111
-]);?>
111
+]); ?>
112 112
 
113 113
 <?= $form->field('galleryFreeId', 'hidden') ?>
114 114
 <?= $form->submitButton(__('Save'), ['class' => 'btn btn-primary']) ?>
@@ -117,15 +117,15 @@  discard block
 block discarded – undo
117 117
 
118 118
 <?php
119 119
 // load max length display plugin
120
-\App::$Alias->setCustomLibrary('js', \App::$Alias->currentViewUrl . '/assets/js/plugins/maxlength.js');
120
+\App::$Alias->setCustomLibrary('js', \App::$Alias->currentViewUrl.'/assets/js/plugins/maxlength.js');
121 121
 // load datapicker plugin
122
-\App::$Alias->setCustomLibrary('css', \App::$Alias->currentViewUrl . '/assets/css/plugins/datapick/datapick.css');
123
-\App::$Alias->setCustomLibrary('js', \App::$Alias->currentViewUrl . '/assets/js/plugins/datapick.js');
122
+\App::$Alias->setCustomLibrary('css', \App::$Alias->currentViewUrl.'/assets/css/plugins/datapick/datapick.css');
123
+\App::$Alias->setCustomLibrary('js', \App::$Alias->currentViewUrl.'/assets/js/plugins/datapick.js');
124 124
 // load jquery-upload plugin
125
-\App::$Alias->setCustomLibrary('css', \App::$Alias->scriptUrl . '/vendor/bower/blueimp-file-upload/css/jquery.fileupload.css');
126
-\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl . '/vendor/bower/blueimp-file-upload/js/vendor/jquery.ui.widget.js');
127
-\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl . '/vendor/bower/blueimp-file-upload/js/jquery.iframe-transport.js');
128
-\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl . '/vendor/bower/blueimp-file-upload/js/jquery.fileupload.js');
125
+\App::$Alias->setCustomLibrary('css', \App::$Alias->scriptUrl.'/vendor/bower/blueimp-file-upload/css/jquery.fileupload.css');
126
+\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl.'/vendor/bower/blueimp-file-upload/js/vendor/jquery.ui.widget.js');
127
+\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl.'/vendor/bower/blueimp-file-upload/js/jquery.iframe-transport.js');
128
+\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl.'/vendor/bower/blueimp-file-upload/js/jquery.fileupload.js');
129 129
 ?>
130 130
 
131 131
 <!-- dom model for gallery items -->
Please login to merge, or discard this patch.
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/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.