Passed
Push — master ( 95ee3f...dda09b )
by Mihail
06:49
created
Loader/Admin/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 define('env_no_uri', false);
11 11
 define('env_type', 'html');
12 12
 
13
-require_once(root . '/Loader/Autoload.php');
13
+require_once(root.'/Loader/Autoload.php');
14 14
 
15 15
 // make fast-access alias \App::$Object
16 16
 // class_alias('Ffcms\Core\App', 'App');
Please login to merge, or discard this patch.
Loader/Front/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 define('env_no_uri', true);
11 11
 define('env_type', 'html');
12 12
 
13
-require_once(root . '/Loader/Autoload.php');
13
+require_once(root.'/Loader/Autoload.php');
14 14
 
15 15
 // make fast-access alias \App::$Object
16 16
 // class_alias('Ffcms\Core\App', 'App');
Please login to merge, or discard this patch.
Loader/Api/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 // this environment is based on json response type
13 13
 define('env_type', 'json');
14 14
 
15
-require_once(root . '/Loader/Autoload.php');
15
+require_once(root.'/Loader/Autoload.php');
16 16
 
17 17
 // make fast-access alias \App::$Object
18 18
 // class_alias('Ffcms\Core\App', 'App');
Please login to merge, or discard this patch.
Extend/Core/Captcha/Gregwar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public function get()
27 27
     {
28
-        return App::$Alias->scriptUrl . '/api/captcha/gregwar?time=' . microtime(true) . '&lang=' . App::$Request->getLanguage();
28
+        return App::$Alias->scriptUrl.'/api/captcha/gregwar?time='.microtime(true).'&lang='.App::$Request->getLanguage();
29 29
     }
30 30
 
31 31
     /**
Please login to merge, or discard this patch.
Apps/Model/Api/Comments/CommentPostAdd.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     public function check()
58 58
     {
59 59
         // check if user is auth'd or guest name is defined
60
-        if (!App::$User->isAuth() && ((int)$this->_configs['guestAdd'] !== 1 || Str::length($this->guestName) < 2)) {
60
+        if (!App::$User->isAuth() && ((int) $this->_configs['guestAdd'] !== 1 || Str::length($this->guestName) < 2)) {
61 61
             throw new JsonException(__('Guest name is not defined'));
62 62
         }
63 63
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         }
68 68
 
69 69
         // check if message length is correct
70
-        if (Str::length($this->message) < (int)$this->_configs['minLength'] || Str::length($this->message) > (int)$this->_configs['maxLength']) {
70
+        if (Str::length($this->message) < (int) $this->_configs['minLength'] || Str::length($this->message) > (int) $this->_configs['maxLength']) {
71 71
             throw new JsonException(__('Message length is incorrect. Current: %cur%, min - %min%, max - %max%', [
72 72
                 'cur' => Str::length($this->message),
73 73
                 'min' => $this->_configs['minLength'],
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         }
77 77
 
78 78
         // guest moderation
79
-        if (!App::$User->isAuth() && (bool)$this->_configs['guestModerate']) {
79
+        if (!App::$User->isAuth() && (bool) $this->_configs['guestModerate']) {
80 80
             $captcha = App::$Request->request->get('captcha');
81 81
             if (!App::$Captcha->validate($captcha)) {
82 82
                 throw new JsonException(__('Captcha is incorrect! Click on image to refresh and try again'));
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
         $record->message = $this->message;
115 115
         $record->lang = App::$Request->getLanguage();
116 116
         // check if premoderation is enabled and user is guest
117
-        if ((int)$this->_configs['guestModerate'] === 1 && $this->_userId < 1) {
117
+        if ((int) $this->_configs['guestModerate'] === 1 && $this->_userId < 1) {
118 118
             $record->moderate = 1;
119 119
         }
120 120
         $record->save();
Please login to merge, or discard this patch.
Apps/Model/Admin/Main/FormSettings.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function getAvailableThemes($env_name)
105 105
     {
106
-        $path = root . '/Apps/View/' . $env_name . '/';
106
+        $path = root.'/Apps/View/'.$env_name.'/';
107 107
         if (!Directory::exist($path)) {
108 108
             return [];
109 109
         }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
     public function makeSave()
125 125
     {
126 126
         $toSave = App::$Security->strip_php_tags($this->getAllProperties());
127
-        $stringSave = '<?php return ' . Arr::exportVar($toSave, null, true) . ';';
127
+        $stringSave = '<?php return '.Arr::exportVar($toSave, null, true).';';
128 128
 
129 129
         $cfgPath = '/Private/Config/Default.php';
130 130
         if (File::exist($cfgPath) && File::writable($cfgPath)) {
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,8 @@
 block discarded – undo
50 50
     public $trustedProxy;
51 51
 
52 52
     /**
53
-    * Set property values from configurations
54
-    */
53
+     * Set property values from configurations
54
+     */
55 55
     public function before()
56 56
     {
57 57
         $properties = App::$Properties->getAll();
Please login to merge, or discard this patch.
cron.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,4 +2,4 @@
 block discarded – undo
2 2
 define('root', __DIR__);
3 3
 error_reporting(E_ALL ^ E_NOTICE);
4 4
 
5
-require_once(root . '/Loader/Cron/index.php');
6 5
\ No newline at end of file
6
+require_once(root.'/Loader/Cron/index.php');
7 7
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/Model/Front/Search/SearchContent.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     public function __construct($query, $limit = 10)
25 25
     {
26 26
         $this->query = $query;
27
-        $this->limit = (int)$limit;
27
+        $this->limit = (int) $limit;
28 28
         if ($this->limit < 1) {
29 29
             $this->limit = 1;
30 30
         }
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
             $res->setTitle($title);
65 65
             $res->setSnippet($snippet);
66 66
             $res->setDate($item->created_at);
67
-            $res->setRelevance((int)$item->relevance);
68
-            $res->setUri('/content/read/' . $item->getPath());
67
+            $res->setRelevance((int) $item->relevance);
68
+            $res->setUri('/content/read/'.$item->getPath());
69 69
 
70 70
             // accumulate response var
71 71
             $result[] = $res;
Please login to merge, or discard this patch.
Apps/Model/Front/Search/SearchComments.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     public function __construct($query, $limit = 10)
27 27
     {
28 28
         $this->query = $query;
29
-        $this->limit = (int)$limit;
29
+        $this->limit = (int) $limit;
30 30
         if ($this->limit < 1) {
31 31
             $this->limit = 1;
32 32
         }
@@ -61,9 +61,9 @@  discard block
 block discarded – undo
61 61
             $instance = new AbstractSearchResult();
62 62
             $instance->setTitle(App::$Translate->get('Search', 'Comment on the page'));
63 63
             $instance->setSnippet($snippet);
64
-            $instance->setUri($item->pathway . '#comments-list');
64
+            $instance->setUri($item->pathway.'#comments-list');
65 65
             $instance->setDate($item->created_at);
66
-            $instance->setRelevance((int)$item->relevance);
66
+            $instance->setRelevance((int) $item->relevance);
67 67
 
68 68
             // add instance to result set
69 69
             $result[] = $instance;
Please login to merge, or discard this patch.