Test Failed
Push — master ( 9fd3a6...5e09f6 )
by Mihail
10:11 queued 04:20
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/Admin/Main/FormSettings.php 1 patch
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.
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/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.
Apps/Model/Front/User/FormSocialAuth.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function __construct($provider, $identity)
40 40
     {
41
-        $this->_provider_name = (string)$provider;
41
+        $this->_provider_name = (string) $provider;
42 42
         $this->_identity = $identity;
43 43
         parent::__construct(false);
44 44
     }
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
             }
126 126
             // set birthday if available
127 127
             if ($this->_identity->birthDay !== null && $this->_identity->birthMonth !== null && $this->_identity->birthYear !== null) {
128
-                $profile->birthday = $this->_identity->birthYear . '-' . $this->_identity->birthMonth . '-' . $this->_identity->birthDay;
128
+                $profile->birthday = $this->_identity->birthYear.'-'.$this->_identity->birthMonth.'-'.$this->_identity->birthDay;
129 129
             }
130 130
 
131 131
             // try to parse avatar from remote service
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
     protected function parseAvatar($url, $userId)
149 149
     {
150 150
         // check if user is defined
151
-        if ((int)$userId < 1) {
151
+        if ((int) $userId < 1) {
152 152
             return;
153 153
         }
154 154
 
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         }
166 166
 
167 167
         // write image to filesystem
168
-        $imagePath = '/upload/user/avatar/original/' . $userId . '.' . $imageExtension;
168
+        $imagePath = '/upload/user/avatar/original/'.$userId.'.'.$imageExtension;
169 169
         $write = File::write($imagePath, $imageContent);
170 170
         if ($write === false) {
171 171
             return;
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 
174 174
         // try to write and resize file
175 175
         try {
176
-            $fileObject = new FileObject(root . $imagePath);
176
+            $fileObject = new FileObject(root.$imagePath);
177 177
             $avatarUpload = new FormAvatarUpload();
178 178
             $avatarUpload->resizeAndSave($fileObject, $userId, 'small');
179 179
             $avatarUpload->resizeAndSave($fileObject, $userId, 'medium');
Please login to merge, or discard this patch.
Apps/Model/Front/Profile/FormWallPost.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         // add user notification
63 63
         if ($target->id !== $viewer->id) {
64 64
             $notify = new EntityAddNotification($target->id);
65
-            $notify->add('profile/show/' . $target->id . '#wall-post-' . $record->id, EntityAddNotification::MSG_ADD_WALLPOST, ['snippet' => Text::snippet($this->message, 50)]);
65
+            $notify->add('profile/show/'.$target->id.'#wall-post-'.$record->id, EntityAddNotification::MSG_ADD_WALLPOST, ['snippet' => Text::snippet($this->message, 50)]);
66 66
         }
67 67
 
68 68
         // cleanup message
Please login to merge, or discard this patch.