Passed
Push — master ( 4af99e...4a867a )
by Mihail
16:55 queued 03:08
created
Apps/View/Front/default/widgets/comments/show.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 
4 4
 ?>
5 5
 
6
-<?php if ((bool)$configs['guestAdd'] && (bool)$configs['guestModerate'] && !\App::$User->isAuth()): ?>
6
+<?php if ((bool) $configs['guestAdd'] && (bool) $configs['guestModerate'] && !\App::$User->isAuth()): ?>
7 7
 <p class="alert alert-warning"><?= __('All guest comments will be moderated before display') ?></p>
8 8
 <?php endif; ?>
9 9
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
                 </a>
36 36
             </i>
37 37
         </div>
38
-        <div id="comment-text" class="comment-text"><?= __('Loading') . ' ...' ?></div>
38
+        <div id="comment-text" class="comment-text"><?= __('Loading').' ...' ?></div>
39 39
     </div>
40 40
     <div id="comment-answers-0" class="hidden"></div>
41 41
     <div class="row hidden" id="add-replay-to">
@@ -58,12 +58,12 @@  discard block
 block discarded – undo
58 58
                 <span id="answer-date">00.00.00 00-00-00</span>
59 59
                 <span id="answer-user-name"><?= __('Unknown') ?></span>:
60 60
             </div>
61
-            <div id="answer-text" class="comment-text"><?= __('Loading') . ' ...' ?></div>
61
+            <div id="answer-text" class="comment-text"><?= __('Loading').' ...' ?></div>
62 62
         </div>
63 63
     </li>
64 64
 </ul>
65 65
 
66
-<?php if ((int)$configs['guestAdd'] === 1 || \App::$User->isAuth()): ?>
66
+<?php if ((int) $configs['guestAdd'] === 1 || \App::$User->isAuth()): ?>
67 67
 <!-- comment form -->
68 68
 <form name="comment-add-form" action="" method="post" style="padding-top: 15px;" class="form-horizontal">
69 69
     <input type="hidden" name="replay-to" value="0" />
Please login to merge, or discard this patch.
Apps/View/Front/default/widgets/newcomment/default.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 		<ul class="list-inline list-info">
17 17
 			<li><i class="glyphicon glyphicon-calendar"></i> <?= Date::humanize($comment['date']) ?></li>
18 18
 			<li><i class="glyphicon glyphicon-user"></i>
19
-			<?php if ((int)$comment['user']['id'] > 0): ?>
19
+			<?php if ((int) $comment['user']['id'] > 0): ?>
20 20
 				<?= Url::link(['profile/show', $comment['user']['id']], $comment['user']['name']) ?>
21 21
 			<?php else: ?>
22 22
 				<?= $comment['user']['name'] ?>
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
 			<img class="media-object img-responsive" src="<?= $comment['user']['avatar']?>" style="width: 64px; height: 64px;" alt="Picture of user <?= $comment['user']['name'] ?>">
30 30
 		</span>
31 31
 		<div class="media-body">
32
-			<a href="<?= \App::$Alias->baseUrl . $comment['pathway'] . '#comment-list' ?>">
33
-				<?= Text::cut(\App::$Security->strip_tags($comment['text']), 0, $snippet) . '...' ?>
32
+			<a href="<?= \App::$Alias->baseUrl.$comment['pathway'].'#comment-list' ?>">
33
+				<?= Text::cut(\App::$Security->strip_tags($comment['text']), 0, $snippet).'...' ?>
34 34
 			</a>
35 35
 		</div>
36 36
 	</li>
Please login to merge, or discard this patch.
Apps/View/Front/default/search/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 $results = $model->getRelevanceSortedResult();
32 32
 
33 33
 if (!Any::isArray($results) || count($results) < 1) {
34
-    echo '<p class="alert alert-warning">' . __('Matches not founded') . '</p>';
34
+    echo '<p class="alert alert-warning">'.__('Matches not founded').'</p>';
35 35
     return;
36 36
 }
37 37
 ?>
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     <div class="col-md-12">
42 42
         <div class="search-result">
43 43
             <div class="h4">
44
-                <a href="<?= \App::$Alias->baseUrl . $item['uri'] ?>"><?= $model->highlightText($item['title'], 'span', ['class' => 'search-highlight']) ?></a>
44
+                <a href="<?= \App::$Alias->baseUrl.$item['uri'] ?>"><?= $model->highlightText($item['title'], 'span', ['class' => 'search-highlight']) ?></a>
45 45
                 <small class="pull-right"><?= $item['date'] ?></small>
46 46
             </div>
47 47
             <small><?= $model->highlightText($item['snippet'], 'span', ['class' => 'search-highlight']) ?>...</small>
Please login to merge, or discard this patch.
Apps/View/Front/default/content/read.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 }
31 31
 
32 32
 // don't use breadcrumbs on injected pathway rule
33
-if (!\App::$Request->isPathInjected() && (bool)$model->getCategory()->getProperty('showCategory')) {
33
+if (!\App::$Request->isPathInjected() && (bool) $model->getCategory()->getProperty('showCategory')) {
34 34
     $breadcrumbs = [
35 35
             Url::to('/') => __('Home')
36 36
     ];
@@ -42,22 +42,22 @@  discard block
 block discarded – undo
42 42
                 $breadcrumbs[Url::to('content/list', $cat['path'], null, [], false)] = $cat['name'];
43 43
             }
44 44
         }
45
-        $breadcrumbs[] = __('Content') . ': ' . Str::sub($this->title, 0, 40);
45
+        $breadcrumbs[] = __('Content').': '.Str::sub($this->title, 0, 40);
46 46
     }
47 47
 
48 48
     $this->breadcrumbs = $breadcrumbs;
49 49
 }
50 50
 
51 51
 $properties = [
52
-    'date' => (bool)$model->getCategory()->getProperty('showDate'),
53
-    'author' => (bool)$model->getCategory()->getProperty('showAuthor'),
54
-    'views' => (bool)$model->getCategory()->getProperty('showViews'),
55
-    'category' => (bool)$model->getCategory()->getProperty('showCategory'),
56
-    'rating' => (bool)$model->getCategory()->getProperty('showRating'),
57
-    'tags' => (bool)$model->getCategory()->getProperty('showTags')
52
+    'date' => (bool) $model->getCategory()->getProperty('showDate'),
53
+    'author' => (bool) $model->getCategory()->getProperty('showAuthor'),
54
+    'views' => (bool) $model->getCategory()->getProperty('showViews'),
55
+    'category' => (bool) $model->getCategory()->getProperty('showCategory'),
56
+    'rating' => (bool) $model->getCategory()->getProperty('showRating'),
57
+    'tags' => (bool) $model->getCategory()->getProperty('showTags')
58 58
 ];
59
-$showComments = (bool)$model->getCategory()->getProperty('showComments');
60
-$showPoster = (bool)$model->getCategory()->getProperty('showPoster');
59
+$showComments = (bool) $model->getCategory()->getProperty('showComments');
60
+$showPoster = (bool) $model->getCategory()->getProperty('showPoster');
61 61
 
62 62
 ?>
63 63
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         <span class="spaced"><i class="glyphicon glyphicon-eye-open"></i> <?= $model->views ?></span>
83 83
         <?php endif ?>
84 84
         <?php if (\App::$User->isAuth() && \App::$User->identity()->role->can('Admin/Content/Update')): ?>
85
-        <span class="pull-right"><a href="<?= \App::$Alias->scriptUrl . '/admin/content/update/' . $model->id ?>" target="_blank"><i class="glyphicon glyphicon-pencil" style="color: #ff0000;"></i></a></span>
85
+        <span class="pull-right"><a href="<?= \App::$Alias->scriptUrl.'/admin/content/update/'.$model->id ?>" target="_blank"><i class="glyphicon glyphicon-pencil" style="color: #ff0000;"></i></a></span>
86 86
         <?php endif; ?>
87 87
     </div>
88 88
     <?php else: ?>
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     <div id="content-text">
98 98
         <?php if ($showPoster === true && $model->posterFull !== null && $model->posterThumb !== null): ?>
99 99
             <a href="#showPoster" data-toggle="modal" data-target="#showPoster">
100
-                <img alt="<?= __('Poster for') ?>: <?= Str::lowerCase($model->title) ?>" src="<?= \App::$Alias->scriptUrl . $model->posterThumb ?>" class="image_poster img-thumbnail" />
100
+                <img alt="<?= __('Poster for') ?>: <?= Str::lowerCase($model->title) ?>" src="<?= \App::$Alias->scriptUrl.$model->posterThumb ?>" class="image_poster img-thumbnail" />
101 101
             </a>
102 102
 
103 103
             <!-- Modal poster pop-up -->
@@ -109,12 +109,12 @@  discard block
 block discarded – undo
109 109
                             <h4 class="modal-title" id="myModalLabel"><?= __('View poster') ?></h4>
110 110
                         </div>
111 111
                         <div class="modal-body">
112
-                            <img class="img-responsive" src="<?= \App::$Alias->scriptUrl . $model->posterFull ?>" alt="<?= __('Poster image') ?>" style="margin: 0 auto;" />
112
+                            <img class="img-responsive" src="<?= \App::$Alias->scriptUrl.$model->posterFull ?>" alt="<?= __('Poster image') ?>" style="margin: 0 auto;" />
113 113
                         </div>
114 114
                     </div>
115 115
                 </div>
116 116
             </div>
117
-        <?php endif ;?>
117
+        <?php endif; ?>
118 118
         <?= $model->text ?>
119 119
     </div>
120 120
     <?php if ($model->galleryItems !== null && Any::isArray($model->galleryItems)): ?>
@@ -122,8 +122,8 @@  discard block
 block discarded – undo
122 122
         <?php $i = 1; ?>
123 123
         <?php foreach ($model->galleryItems as $thumbPic => $fullPic): ?>
124 124
             <div class="col-md-2 well">
125
-                <a href="#showGallery" class="modalGallery" content="<?= \App::$Alias->scriptUrl . $fullPic ?>" id="gallery-<?= $i ?>">
126
-                    <img src="<?= \App::$Alias->scriptUrl . $thumbPic ?>" class="img-responsive image-item" />
125
+                <a href="#showGallery" class="modalGallery" content="<?= \App::$Alias->scriptUrl.$fullPic ?>" id="gallery-<?= $i ?>">
126
+                    <img src="<?= \App::$Alias->scriptUrl.$thumbPic ?>" class="img-responsive image-item" />
127 127
                 </a>
128 128
             </div>
129 129
             <?php $i++ ?>
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                         <h4 class="modal-title" id="showModalLabel"><?= __('View picture') ?></h4>
138 138
                     </div>
139 139
                     <div class="modal-body" id="modal-gallery-body">
140
-                        <img class="img-responsive" src="<?= \App::$Alias->scriptUrl . $model->posterFull ?>" alt="<?= __('Gallery picture') ?>" style="margin: 0 auto;" />
140
+                        <img class="img-responsive" src="<?= \App::$Alias->scriptUrl.$model->posterFull ?>" alt="<?= __('Gallery picture') ?>" style="margin: 0 auto;" />
141 141
                     </div>
142 142
                 </div>
143 143
             </div>
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
                 </div>
159 159
                 <div id="similar<?= $idx ?>" class="panel-collapse collapse">
160 160
                     <div class="panel-body">
161
-                        <a href="<?= \App::$Alias->baseUrl . $item['uri'] ?>">
161
+                        <a href="<?= \App::$Alias->baseUrl.$item['uri'] ?>">
162 162
                             <?= $item['snippet'] ?>
163 163
                         </a>
164 164
                     </div>
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
                         echo '<i class="glyphicon glyphicon-tags hidden-xs"></i> ';
190 190
                         foreach ($model->metaKeywords as $tag) {
191 191
                             $tag = trim($tag);
192
-                            echo Url::link(['content/tag', $tag], $tag, ['class' => 'label label-default']) . "&nbsp;";
192
+                            echo Url::link(['content/tag', $tag], $tag, ['class' => 'label label-default'])."&nbsp;";
193 193
                         }
194 194
                     }
195 195
                     ?>
Please login to merge, or discard this patch.
Apps/View/Front/default/content/my.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@
 block discarded – undo
27 27
 }
28 28
 $items = [];
29 29
 foreach ($records as $record) {
30
-    $moderate = (int)$record->display === 0;
30
+    $moderate = (int) $record->display === 0;
31 31
     $title = $record->getLocaled('title');
32 32
     if ($moderate) {
33
-        $title = Url::link(['content/update', $record->id], $title) . ' <i class="glyphicon glyphicon-pencil"></i>';
33
+        $title = Url::link(['content/update', $record->id], $title).' <i class="glyphicon glyphicon-pencil"></i>';
34 34
     }
35 35
 
36 36
     $items[] = [
Please login to merge, or discard this patch.
Apps/View/Front/default/content/list.php 1 patch
Spacing   +8 added lines, -8 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 = [
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 <?php foreach ($model->items as $item): ?>
69 69
     <article class="article-item" itemscope="itemscope" itemtype="https://schema.org/NewsArticle">
70 70
         <h2 itemprop="name">
71
-            <a href="<?= \App::$Alias->baseUrl . $item['uri'] ?>">
71
+            <a href="<?= \App::$Alias->baseUrl.$item['uri'] ?>">
72 72
                 <?= $item['title'] ?>
73 73
             </a>
74 74
             <?php if ($item['important']): ?>
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                 <?php
99 99
                 $ownerNick = $item['author']->profile->getNickname();
100 100
                 if ($item['author']->getId() < 1) {
101
-                    echo '<s>' . $ownerNick . '</s>';
101
+                    echo '<s>'.$ownerNick.'</s>';
102 102
                 } else {
103 103
                     echo Url::link(['profile/show', $item['author']->getId()], $ownerNick, ['itemprop' => 'author']);
104 104
                 }
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         <div class="row">
116 116
             <div class="col-md-12">
117 117
                 <?php if ($catConfigs['showPoster'] === true && $item['thumb'] !== null): ?>
118
-                <img src="<?= \App::$Alias->scriptUrl . $item['thumb'] ?>" class="image_poster img-thumbnail hidden-xs" alt="<?= __('Poster for') ?>: <?= Str::lowerCase($item['title']) ?>" />
118
+                <img src="<?= \App::$Alias->scriptUrl.$item['thumb'] ?>" class="image_poster img-thumbnail hidden-xs" alt="<?= __('Poster for') ?>: <?= Str::lowerCase($item['title']) ?>" />
119 119
                 <?php endif; ?>
120 120
                 <div itemprop="text articleBody">
121 121
                     <?= $item['text'] ?>
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
             </div>
124 124
         </div>
125 125
         <div class="meta">
126
-        	<?php if ((int)$catConfigs['showRating'] === 1) {
126
+        	<?php if ((int) $catConfigs['showRating'] === 1) {
127 127
         	    echo \App::$View->render('content/_rate', [
128 128
         	        'id' => $item['id'],
129 129
         	        'canRate' => $item['canRate'],
@@ -132,15 +132,15 @@  discard block
 block discarded – undo
132 132
         	} ?>
133 133
 
134 134
         	<span class="spaced hidden-xs"><i class="glyphicon glyphicon-comment"></i>
135
-                <a href="<?= \App::$Alias->baseUrl . $item['uri'] ?>#comments-list"><?= __('Comments') ?>: <span itemprop="commentCount" id="comment-count-<?= $item['id'] ?>">0</span></a>
135
+                <a href="<?= \App::$Alias->baseUrl.$item['uri'] ?>#comments-list"><?= __('Comments') ?>: <span itemprop="commentCount" id="comment-count-<?= $item['id'] ?>">0</span></a>
136 136
             </span>
137 137
             <span class="pull-right">
138
-            <?php if ((int)$catConfigs['showTags'] === 1 && $item['tags'] !== null && Any::isArray($item['tags'])): ?>
138
+            <?php if ((int) $catConfigs['showTags'] === 1 && $item['tags'] !== null && Any::isArray($item['tags'])): ?>
139 139
                 <span class="spaced"><i class="glyphicon glyphicon-tags hidden-xs"></i>
140 140
                 <?php
141 141
                     foreach ($item['tags'] as $tag) {
142 142
                         $tag = trim($tag);
143
-                        echo Url::link(['content/tag', $tag], $tag, ['class' => 'label label-default']) . "&nbsp;";
143
+                        echo Url::link(['content/tag', $tag], $tag, ['class' => 'label label-default'])."&nbsp;";
144 144
                     }
145 145
                 ?>
146 146
                 </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
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     /** @var \Apps\ActiveRecord\Content $item*/
22 22
     $items[] = [
23 23
         'text' => $item->getLocaled('title'),
24
-        'link' => \App::$Alias->baseUrl . '/content/read/' . $item->getPath()
24
+        'link' => \App::$Alias->baseUrl.'/content/read/'.$item->getPath()
25 25
     ];
26 26
 }
27 27
 ?>
Please login to merge, or discard this patch.
Apps/View/Front/default/user/password_recovery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
 <?php
21 21
 if (\App::$Captcha->isFull()) {
22
-    echo '<div class="col-md-offset-3 col-md-9">' . \App::$Captcha->get() . '</div>';
22
+    echo '<div class="col-md-offset-3 col-md-9">'.\App::$Captcha->get().'</div>';
23 23
 } else {
24 24
     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'));
25 25
 }
Please login to merge, or discard this patch.
Apps/View/Front/default/user/signup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 <?= $form->field('repassword', 'password', ['class' => 'form-control'], __('Repeat your password to be sure it correct')); ?>
25 25
 <?php if ($useCaptcha) {
26 26
     if (\App::$Captcha->isFull()) {
27
-        echo '<div class="col-md-offset-3 col-md-9">' . \App::$Captcha->get() . '</div>';
27
+        echo '<div class="col-md-offset-3 col-md-9">'.\App::$Captcha->get().'</div>';
28 28
     } else {
29 29
         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'));
30 30
     }
Please login to merge, or discard this patch.