Passed
Push — master ( 6221c1...b56763 )
by Mihail
05:30
created
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/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/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.
Apps/View/Front/default/feedback/list.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
 <?php
23 23
 if ($records->count() < 1) {
24
-    echo '<p class="alert alert-warning">' . __('No requests is founded') . '</p>';
24
+    echo '<p class="alert alert-warning">'.__('No requests is founded').'</p>';
25 25
     return;
26 26
 }
27 27
 $items = [];
@@ -30,9 +30,8 @@  discard block
 block discarded – undo
30 30
         ['text' => $item->id],
31 31
         ['text' => Url::link(['feedback/read', $item->id, $item->hash], Text::cut($item->message, 0, 40)), 'html' => true],
32 32
         ['text' =>
33
-            (int)$item->closed === 1 ?
34
-                '<span class="label label-danger">' . __('Closed') . '</span>' :
35
-                '<span class="label label-success">' . __('Opened') . '</span>',
33
+            (int) $item->closed === 1 ?
34
+                '<span class="label label-danger">'.__('Closed').'</span>' : '<span class="label label-success">'.__('Opened').'</span>',
36 35
             'html' => true, '!secure' => true],
37 36
         ['text' => Date::convertToDatetime($item->created_at, Date::FORMAT_TO_HOUR)],
38 37
         ['text' => Date::convertToDatetime($item->updated_at, Date::FORMAT_TO_HOUR)]
Please login to merge, or discard this patch.
Apps/View/Front/default/feedback/mail/created.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
                 <tbody>
34 34
                 <tr>
35 35
                     <td align="left" style="font-family:Helvetica Neue,Arial,Helvetica,sans-serif;padding-left:9px;font-size:14px;">
36
-                        <a href="<?= \App::$Alias->scriptUrl ?>/feedback/read/<?= $record->id . '/' . $record->hash ?>">
36
+                        <a href="<?= \App::$Alias->scriptUrl ?>/feedback/read/<?= $record->id.'/'.$record->hash ?>">
37 37
                             <?= __('View request') ?>
38 38
                         </a>
39 39
                     </td>
Please login to merge, or discard this patch.