Passed
Push — master ( cc7747...d2190f )
by Mihail
10:36
created
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/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/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/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.