Passed
Push — master ( f2c1fd...66552f )
by Mihail
04:43
created
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.
Apps/View/Front/default/feedback/read.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@  discard block
 block discarded – undo
27 27
 ?>
28 28
 
29 29
 <?php
30
-if ((int)$post->closed === 0 && \App::$User->isAuth()) {
30
+if ((int) $post->closed === 0 && \App::$User->isAuth()) {
31 31
     $user = App::$User->identity();
32
-    if ($user->getId() === (int)$post->user_id) {
33
-        echo '<div class="pull-right">' .
34
-            Url::link(['feedback/close', $post->id, $post->hash], __('Close request'), ['class' => 'btn btn-danger']) .
32
+    if ($user->getId() === (int) $post->user_id) {
33
+        echo '<div class="pull-right">'.
34
+            Url::link(['feedback/close', $post->id, $post->hash], __('Close request'), ['class' => 'btn btn-danger']).
35 35
             '</div>';
36 36
     }
37 37
 }
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 </div>
53 53
 <h3><?= __('Answers') ?></h3>
54 54
 <hr />
55
-<?php if ((int)$post->readed === 0 && ($answers === null || $answers->count() < 1)): ?>
55
+<?php if ((int) $post->readed === 0 && ($answers === null || $answers->count() < 1)): ?>
56 56
     <p class="alert alert-warning"><?= __('This message is not properly readed by website administrators') ?></p>
57 57
 <?php endif; ?>
58 58
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     <?php foreach ($answers as $answer): ?>
61 61
         <div class="row">
62 62
             <div class="col-md-12">
63
-                <div class="panel <?= (int)$answer->is_admin === 1 ? 'panel-success' : 'panel-default' ?>">
63
+                <div class="panel <?= (int) $answer->is_admin === 1 ? 'panel-success' : 'panel-default' ?>">
64 64
                     <div class="panel-heading">
65 65
                         <strong><?= $answer->name ?> (<?= $answer->email ?>)</strong>,
66 66
                         <?= Date::convertToDatetime($answer->created_at, Date::FORMAT_TO_HOUR) ?>
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 <?php endif; ?>
76 76
 
77 77
 <br />
78
-<?php if ((int)$post->closed === 0 && $model !== null): ?>
78
+<?php if ((int) $post->closed === 0 && $model !== null): ?>
79 79
     <h3><?= __('Add answer') ?></h3>
80 80
     <?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post']) ?>
81 81
     <?= $form->start() ?>
Please login to merge, or discard this patch.
Apps/View/Front/default/feedback/create.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
 <?php if ($useCaptcha === true) {
32 32
     if (\App::$Captcha->isFull()) {
33
-        echo '<div class="col-md-offset-3 col-md-9">' . \App::$Captcha->get() . '</div>';
33
+        echo '<div class="col-md-offset-3 col-md-9">'.\App::$Captcha->get().'</div>';
34 34
     } else {
35 35
         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'));
36 36
     }
Please login to merge, or discard this patch.
Apps/View/Front/default/content/list.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
 $catConfigs = [];
17 17
 foreach ($model->category['configs'] as $key=>$value) {
18
-    $catConfigs[$key] = (int)$value === 1;
18
+    $catConfigs[$key] = (int) $value === 1;
19 19
 }
20 20
 
21 21
 $catMeta = [
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 <?php foreach ($model->items as $item): ?>
57 57
     <article class="article-item" itemscope="itemscope" itemtype="https://schema.org/NewsArticle">
58 58
         <h2 itemprop="name">
59
-            <a href="<?= \App::$Alias->baseUrl . $item['uri'] ?>">
59
+            <a href="<?= \App::$Alias->baseUrl.$item['uri'] ?>">
60 60
                 <?= $item['title'] ?>
61 61
             </a>
62 62
         </h2>
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
                 <?php
84 84
                 $ownerNick = $item['author']->getProfile()->getNickname();
85 85
                 if ($item['author']->getId() < 1) {
86
-                    echo '<s>' . $ownerNick . '</s>';
86
+                    echo '<s>'.$ownerNick.'</s>';
87 87
                 } else {
88 88
                     echo Url::link(['profile/show', $item['author']->getId()], $ownerNick, ['itemprop' => 'author']);
89 89
                 }
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         <div class="row">
101 101
             <div class="col-md-12">
102 102
                 <?php if ($catConfigs['showPoster'] === true && $item['thumb'] !== null): ?>
103
-                <img src="<?= \App::$Alias->scriptUrl . $item['thumb'] ?>" class="image_poster img-thumbnail hidden-xs" alt="<?= __('Poster for') ?>: <?= Str::lowerCase($item['title']) ?>" />
103
+                <img src="<?= \App::$Alias->scriptUrl.$item['thumb'] ?>" class="image_poster img-thumbnail hidden-xs" alt="<?= __('Poster for') ?>: <?= Str::lowerCase($item['title']) ?>" />
104 104
                 <?php endif; ?>
105 105
                 <div itemprop="text articleBody">
106 106
                     <?= $item['text'] ?>
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             </div>
109 109
         </div>
110 110
         <div class="meta">
111
-        	<?php if ((int)$catConfigs['showRating'] === 1) {
111
+        	<?php if ((int) $catConfigs['showRating'] === 1) {
112 112
         	    echo \App::$View->render('content/_rate', [
113 113
         	        'id' => $item['id'],
114 114
         	        'canRate' => $item['canRate'],
@@ -120,12 +120,12 @@  discard block
 block discarded – undo
120 120
                 <a href="#"><?= __('Comments') ?>: <span itemprop="commentCount" id="comment-count-<?= $item['id'] ?>">0</span></a>
121 121
             </span>
122 122
             <span class="pull-right">
123
-            <?php if ((int)$configs['keywordsAsTags'] === 1 && $item['tags'] !== null && Obj::isArray($item['tags'])): ?>
123
+            <?php if ((int) $configs['keywordsAsTags'] === 1 && $item['tags'] !== null && Obj::isArray($item['tags'])): ?>
124 124
                 <span class="spaced"><i class="fa fa-tags hidden-xs"></i>
125 125
                 <?php
126 126
                     foreach ($item['tags'] as $tag) {
127 127
                         $tag = \App::$Security->strip_tags(trim($tag));
128
-                        echo Url::link(['content/tag', $tag], $tag, ['class' => 'label label-default']) . "&nbsp;";
128
+                        echo Url::link(['content/tag', $tag], $tag, ['class' => 'label label-default'])."&nbsp;";
129 129
                     }
130 130
                 ?>
131 131
                 </span>
Please login to merge, or discard this patch.
Apps/View/Front/default/content/tag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     /** @var \Apps\ActiveRecord\Content $item*/
24 24
     $items[] = [
25 25
         'text' => Serialize::getDecodeLocale($item->title),
26
-        'link' => \App::$Alias->baseUrl . '/content/read/' . $item->getPath()
26
+        'link' => \App::$Alias->baseUrl.'/content/read/'.$item->getPath()
27 27
     ];
28 28
 }
29 29
 ?>
Please login to merge, or discard this patch.
Apps/View/Front/default/content/read.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -35,21 +35,21 @@  discard block
 block discarded – undo
35 35
                 $breadcrumbs[Url::to('content/list', $cat['path'], null, [], false)] = $cat['name'];
36 36
             }
37 37
         }
38
-        $breadcrumbs[] = __('Content') . ': ' . Str::sub($this->title, 0, 40);
38
+        $breadcrumbs[] = __('Content').': '.Str::sub($this->title, 0, 40);
39 39
     }
40 40
 
41 41
     $this->breadcrumbs = $breadcrumbs;
42 42
 }
43 43
 
44 44
 $properties = [
45
-    'date' => (int)$model->getCategory()->getProperty('showDate') === 1,
46
-    'author' => (int)$model->getCategory()->getProperty('showAuthor') === 1,
47
-    'views' => (int)$model->getCategory()->getProperty('showViews') === 1,
48
-    'category' => (int)$model->getCategory()->getProperty('showCategory') === 1,
49
-    'rating' => (int)$model->getCategory()->getProperty('showRating') === 1
45
+    'date' => (int) $model->getCategory()->getProperty('showDate') === 1,
46
+    'author' => (int) $model->getCategory()->getProperty('showAuthor') === 1,
47
+    'views' => (int) $model->getCategory()->getProperty('showViews') === 1,
48
+    'category' => (int) $model->getCategory()->getProperty('showCategory') === 1,
49
+    'rating' => (int) $model->getCategory()->getProperty('showRating') === 1
50 50
 ];
51
-$showComments = (int)$model->getCategory()->getProperty('showComments') === 1;
52
-$showPoster = (int)$model->getCategory()->getProperty('showPoster') === 1;
51
+$showComments = (int) $model->getCategory()->getProperty('showComments') === 1;
52
+$showPoster = (int) $model->getCategory()->getProperty('showPoster') === 1;
53 53
 
54 54
 \App::$Cache->set('test.me.baby.1', ['key' => 'value']);
55 55
 ?>
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         <span class="spaced"><i class="fa fa-eye"></i><?= $model->views ?></span>
76 76
         <?php endif ?>
77 77
         <?php if (\App::$User->isAuth() && \App::$User->identity()->getRole()->can('Admin/Content/Update')): ?>
78
-        <span class="pull-right"><a href="<?= \App::$Alias->scriptUrl . '/admin/content/update/' . $model->id ?>" target="_blank"><i class="fa fa-pencil" style="color: #ff0000;"></i></a></span>
78
+        <span class="pull-right"><a href="<?= \App::$Alias->scriptUrl.'/admin/content/update/'.$model->id ?>" target="_blank"><i class="fa fa-pencil" style="color: #ff0000;"></i></a></span>
79 79
         <?php endif; ?>
80 80
     </div>
81 81
     <?php else: ?>
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     <div id="content-text">
88 88
         <?php if ($showPoster === true && $model->posterFull !== null && $model->posterThumb !== null): ?>
89 89
             <a href="#showPoster" data-toggle="modal" data-target="#showPoster">
90
-                <img alt="<?= __('Poster for') ?>: <?= Str::lowerCase(\App::$Security->strip_tags($model->title)) ?>" src="<?= \App::$Alias->scriptUrl . $model->posterThumb ?>" class="image_poster img-thumbnail" />
90
+                <img alt="<?= __('Poster for') ?>: <?= Str::lowerCase(\App::$Security->strip_tags($model->title)) ?>" src="<?= \App::$Alias->scriptUrl.$model->posterThumb ?>" class="image_poster img-thumbnail" />
91 91
             </a>
92 92
 
93 93
             <!-- Modal poster pop-up -->
@@ -99,19 +99,19 @@  discard block
 block discarded – undo
99 99
                             <h4 class="modal-title" id="myModalLabel"><?= __('View poster') ?></h4>
100 100
                         </div>
101 101
                         <div class="modal-body">
102
-                            <img class="img-responsive" src="<?= \App::$Alias->scriptUrl . $model->posterFull ?>" alt="<?= __('Poster image') ?>" style="margin: 0 auto;" />
102
+                            <img class="img-responsive" src="<?= \App::$Alias->scriptUrl.$model->posterFull ?>" alt="<?= __('Poster image') ?>" style="margin: 0 auto;" />
103 103
                         </div>
104 104
                     </div>
105 105
                 </div>
106 106
             </div>
107
-        <?php endif ;?>
107
+        <?php endif; ?>
108 108
         <?= $model->text ?>
109 109
     </div>
110 110
     <?php if ($model->galleryItems !== null && Obj::isArray($model->galleryItems)): ?>
111 111
         <div class="row">
112 112
         <?php foreach ($model->galleryItems as $thumbPic => $fullPic): ?>
113 113
             <div class="col-md-2 well">
114
-                <a href="#showGallery" class="modalGallery" content="<?= \App::$Alias->scriptUrl . $fullPic ?>"><img src="<?= \App::$Alias->scriptUrl . $thumbPic ?>" class="img-responsive image-item" /></a>
114
+                <a href="#showGallery" class="modalGallery" content="<?= \App::$Alias->scriptUrl.$fullPic ?>"><img src="<?= \App::$Alias->scriptUrl.$thumbPic ?>" class="img-responsive image-item" /></a>
115 115
             </div>
116 116
         <?php endforeach; ?>
117 117
         </div>
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
                         <h4 class="modal-title" id="showModalLabel"><?= __('View picture') ?></h4>
124 124
                     </div>
125 125
                     <div class="modal-body" id="modal-gallery-body">
126
-                        <img class="img-responsive" src="<?= \App::$Alias->scriptUrl . $model->posterFull ?>" alt="<?= __('Gallery picture') ?>" style="margin: 0 auto;" />
126
+                        <img class="img-responsive" src="<?= \App::$Alias->scriptUrl.$model->posterFull ?>" alt="<?= __('Gallery picture') ?>" style="margin: 0 auto;" />
127 127
                     </div>
128 128
                 </div>
129 129
             </div>
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
                 </div>
145 145
                 <div id="similar<?= $idx ?>" class="panel-collapse collapse">
146 146
                     <div class="panel-body">
147
-                        <a href="<?= \App::$Alias->baseUrl . $item['uri'] ?>">
147
+                        <a href="<?= \App::$Alias->baseUrl.$item['uri'] ?>">
148 148
                             <?= $item['snippet'] ?>
149 149
                         </a>
150 150
                     </div>
@@ -168,14 +168,14 @@  discard block
 block discarded – undo
168 168
         	<?= \App::$View->render('content/_rateJs') ?>
169 169
     		</div>
170 170
     		<div class="pull-right">
171
-    		    <?php if ((int)$configs['keywordsAsTags'] === 1): ?>
171
+    		    <?php if ((int) $configs['keywordsAsTags'] === 1): ?>
172 172
                 <div id="content-tags">
173 173
                     <?php
174 174
                     if (Obj::isArray($model->metaKeywords) && count($model->metaKeywords) > 0 && Str::length($model->metaKeywords[0]) > 0) {
175 175
                         echo '<i class="fa fa-tags hidden-xs"></i> ';
176 176
                         foreach ($model->metaKeywords as $tag) {
177 177
                             $tag = \App::$Security->strip_tags(trim($tag));
178
-                            echo Url::link(['content/tag', $tag], $tag, ['class' => 'label label-default']) . "&nbsp;";
178
+                            echo Url::link(['content/tag', $tag], $tag, ['class' => 'label label-default'])."&nbsp;";
179 179
                         }
180 180
                     }
181 181
                     ?>
Please login to merge, or discard this patch.