@@ -10,7 +10,7 @@ |
||
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'); |
@@ -10,7 +10,7 @@ |
||
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'); |
@@ -12,7 +12,7 @@ |
||
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'); |
@@ -25,7 +25,7 @@ |
||
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 | /** |
@@ -103,7 +103,7 @@ discard block |
||
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 |
||
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)) { |
@@ -2,4 +2,4 @@ |
||
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 |
@@ -26,7 +26,7 @@ discard block |
||
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 |
||
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; |
@@ -38,7 +38,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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'); |
@@ -62,7 +62,7 @@ |
||
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 |