Passed
Push — master ( 6221c1...b56763 )
by Mihail
05:30
created
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/_rate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@
 block discarded – undo
7 7
 $numericRating = 0;
8 8
 if ($rating > 0) {
9 9
     $cssRatingClass = 'label-success';
10
-    $numericRating = '+' . $rating;
11
-} elseif($rating < 0) {
10
+    $numericRating = '+'.$rating;
11
+} elseif ($rating < 0) {
12 12
     $cssRatingClass = 'label-danger';
13 13
     $numericRating = $rating;
14 14
 }
Please login to merge, or discard this patch.
Apps/View/Install/default/native/macro/notify.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@
 block discarded – undo
30 30
 if (Obj::isArray($notify) && count($notify) > 0) {
31 31
     foreach ($notify as $type => $messages) {
32 32
         foreach ($messages as $message) {
33
-            echo '<p class="alert ' . type2html($type) . '">
33
+            echo '<p class="alert '.type2html($type).'">
34 34
             <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>'
35
-                . \Ffcms\Core\App::$Security->strip_tags($message) . '</p>';
35
+                . \Ffcms\Core\App::$Security->strip_tags($message).'</p>';
36 36
         }
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
Apps/View/Install/default/layout/main.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     <?php
17 17
     $customCssCode = \App::$View->showPlainCode('css');
18 18
     if ($customCssCode !== null) {
19
-        echo '<style>' . $customCssCode . '</style>';
19
+        echo '<style>'.$customCssCode.'</style>';
20 20
     } ?>
21 21
     <script>
22 22
         window.jQ = [];
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     <?php
63 63
     $customJsCode = \App::$View->showPlainCode('js');
64 64
     if ($customJsCode !== null) {
65
-        echo '<script>' . $customJsCode . '</script>';
65
+        echo '<script>'.$customJsCode.'</script>';
66 66
     }
67 67
     ?>
68 68
 </body>
Please login to merge, or discard this patch.
Apps/Model/Admin/User/FormUserDelete.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,9 +51,9 @@
 block discarded – undo
51 51
             ->orwhere('sender_id', '=', $this->_user->getParam('id'))
52 52
             ->delete();
53 53
         // delete avatars
54
-        File::remove('/upload/user/avatar/big/' . $this->_user->getParam('id') . '.jpg');
55
-        File::remove('/upload/user/avatar/medium/' . $this->_user->getParam('id') . '.jpg');
56
-        File::remove('/upload/user/avatar/small/' . $this->_user->getParam('id') . '.jpg');
54
+        File::remove('/upload/user/avatar/big/'.$this->_user->getParam('id').'.jpg');
55
+        File::remove('/upload/user/avatar/medium/'.$this->_user->getParam('id').'.jpg');
56
+        File::remove('/upload/user/avatar/small/'.$this->_user->getParam('id').'.jpg');
57 57
         // delete user profile and auth data
58 58
         $this->_user->getProfile()->delete();
59 59
         $this->_user->delete();
Please login to merge, or discard this patch.
Apps/Model/Admin/Application/FormUpdate.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
     public function before()
34 34
     {
35 35
         // get full name of update object
36
-        $class = 'Apps\Controller\Admin\\' . $this->_record->sys_name;
36
+        $class = 'Apps\Controller\Admin\\'.$this->_record->sys_name;
37 37
         if (class_exists($class)) {
38 38
             $this->_callback = $class;
39 39
         } else {
Please login to merge, or discard this patch.
Apps/Model/Admin/Application/FormInstall.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function before()
40 40
     {
41 41
         foreach ($this->_apps as $app) {
42
-            $this->_definedControllers[] = (string)$app->sys_name;
42
+            $this->_definedControllers[] = (string) $app->sys_name;
43 43
         }
44 44
 
45 45
         parent::before();
@@ -70,14 +70,14 @@  discard block
 block discarded – undo
70 70
     public function make()
71 71
     {
72 72
         $cName = ucfirst(Str::lowerCase($this->sysname));
73
-        $cPath = 'Apps\Controller\Admin\\' . $cName;
73
+        $cPath = 'Apps\Controller\Admin\\'.$cName;
74 74
         // if object class is not loaded - prevent install
75
-        if (!class_exists($cPath) || !defined($cPath . '::VERSION')) {
75
+        if (!class_exists($cPath) || !defined($cPath.'::VERSION')) {
76 76
             return false;
77 77
         }
78 78
 
79 79
         // get ext version
80
-        $cVersion = (float)constant($cPath . '::VERSION');
80
+        $cVersion = (float) constant($cPath.'::VERSION');
81 81
         if ($cVersion < 0.1) {
82 82
             $cVersion = 0.1;
83 83
         }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
         // callback to install method in extension
95 95
         if (method_exists($cPath, 'install')) {
96
-            call_user_func($cPath . '::install');
96
+            call_user_func($cPath.'::install');
97 97
         }
98 98
 
99 99
         return true;
Please login to merge, or discard this patch.