@@ -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; |
@@ -33,7 +33,7 @@ |
||
33 | 33 | foreach (App::$Translate->getAvailableLangs() as $lang) { |
34 | 34 | $items[] = [ |
35 | 35 | 'type' => 'link', |
36 | - 'link' => App::$Alias->baseUrlNoLang . '/' . $lang . App::$Request->getPathInfo(), |
|
36 | + 'link' => App::$Alias->baseUrlNoLang.'/'.$lang.App::$Request->getPathInfo(), |
|
37 | 37 | 'text' => '<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="flag flag-'.$lang.'" />', |
38 | 38 | 'html' => true, |
39 | 39 | '!secure' => true |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | $uriRequest = $_SERVER['REQUEST_URI']; |
13 | 13 | |
14 | 14 | // get configs to prepare posible route to switch environment |
15 | -$configs = require(root . '/Private/Config/Default.php'); |
|
15 | +$configs = require(root.'/Private/Config/Default.php'); |
|
16 | 16 | // remove base path |
17 | 17 | $uriRequest = substr($uriRequest, strlen($configs['basePath'])); |
18 | 18 | $uriArray = explode('/', $uriRequest); |
@@ -23,8 +23,8 @@ discard block |
||
23 | 23 | $uriLoader = ucfirst(strtolower(str_replace('.', '', $uriLoader))); |
24 | 24 | |
25 | 25 | // if loader of interface is available - require it |
26 | -if (in_array($uriLoader, $loaderList, true) && file_exists(root . '/Loader/' . $uriLoader . '/index.php')) { |
|
27 | - require_once (root . '/Loader/' . $uriLoader . '/index.php'); |
|
26 | +if (in_array($uriLoader, $loaderList, true) && file_exists(root.'/Loader/'.$uriLoader.'/index.php')) { |
|
27 | + require_once (root.'/Loader/'.$uriLoader.'/index.php'); |
|
28 | 28 | } else { // else - try to load default interface |
29 | - require_once (root . '/Loader/Front/index.php'); |
|
29 | + require_once (root.'/Loader/Front/index.php'); |
|
30 | 30 | } |
31 | 31 | \ No newline at end of file |
@@ -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'); |
@@ -8,9 +8,9 @@ |
||
8 | 8 | } |
9 | 9 | |
10 | 10 | // load composer packages |
11 | -$loader = require root . '/vendor/autoload.php'; |
|
11 | +$loader = require root.'/vendor/autoload.php'; |
|
12 | 12 | // enable autoload for general namespaces user apps |
13 | 13 | $loader->add('Apps\\', root); |
14 | -$loader->add('Apps\\', root . '/vendor/phpffcms/demo-app-package/src'); // todo: remove me |
|
14 | +$loader->add('Apps\\', root.'/vendor/phpffcms/demo-app-package/src'); // todo: remove me |
|
15 | 15 | $loader->add('Extend\\', root); |
16 | 16 | $loader->add('Widgets\\', root); |
@@ -3,4 +3,4 @@ |
||
3 | 3 | define('root', __DIR__); |
4 | 4 | error_reporting(E_ALL ^ E_NOTICE); |
5 | 5 | |
6 | -require_once(root . '/Loader/Console/index.php'); |
|
7 | 6 | \ No newline at end of file |
7 | +require_once(root.'/Loader/Console/index.php'); |
|
8 | 8 | \ No newline at end of file |
@@ -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 | /** |
@@ -39,9 +39,9 @@ discard block |
||
39 | 39 | public function get() |
40 | 40 | { |
41 | 41 | // build google captcha ;) |
42 | - $html = '<div class="g-recaptcha" data-sitekey="' . self::$siteKey . '"></div> |
|
42 | + $html = '<div class="g-recaptcha" data-sitekey="'.self::$siteKey.'"></div> |
|
43 | 43 | <script type="text/javascript" |
44 | - src="https://www.google.com/recaptcha/api.js?hl=' . App::$Request->getLanguage() . '"> |
|
44 | + src="https://www.google.com/recaptcha/api.js?hl=' . App::$Request->getLanguage().'"> |
|
45 | 45 | </script>'; |
46 | 46 | return $html; |
47 | 47 | } |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | ]); |
65 | 65 | |
66 | 66 | // make request and parse response |
67 | - $url = $request->getSchemeAndHttpHost() . $request->getRequestUri(); |
|
67 | + $url = $request->getSchemeAndHttpHost().$request->getRequestUri(); |
|
68 | 68 | $response = Url::getRemoteContent($url); |
69 | 69 | $object = json_decode($response); |
70 | 70 |
@@ -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'); |