@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | // build path and check is file exists on disk |
| 98 | - $path = '/upload/gallery/' . $this->id . '/orig/' . $pName; |
|
| 98 | + $path = '/upload/gallery/'.$this->id.'/orig/'.$pName; |
|
| 99 | 99 | if (!File::exist($path)) { |
| 100 | 100 | return null; |
| 101 | 101 | } |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | |
| 117 | 117 | // remove extension, thumbs always in jpeg ;D |
| 118 | 118 | $pName = Str::cleanExtension($pName); |
| 119 | - $path = '/upload/gallery/' . $this->id . '/thumb/' . $pName . '.jpg'; |
|
| 119 | + $path = '/upload/gallery/'.$this->id.'/thumb/'.$pName.'.jpg'; |
|
| 120 | 120 | |
| 121 | 121 | if (!File::exist($path)) { |
| 122 | 122 | return null; |
@@ -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)) { |
@@ -50,8 +50,8 @@ |
||
| 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(); |
@@ -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 |
@@ -24,7 +24,7 @@ discard block |
||
| 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 |
||
| 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; |
@@ -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; |