@@ -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 |
@@ -22,13 +22,13 @@ |
||
22 | 22 | // widget is not founded, deny run |
23 | 23 | if ($wData === null) { |
24 | 24 | if (App::$Debug !== null) { |
25 | - App::$Debug->addMessage('Widget with name "' . App::$Security->strip_tags(self::$name) . '"[' . self::$class . '] is not founded!', 'error'); |
|
25 | + App::$Debug->addMessage('Widget with name "'.App::$Security->strip_tags(self::$name).'"['.self::$class.'] is not founded!', 'error'); |
|
26 | 26 | } |
27 | 27 | return null; |
28 | 28 | } |
29 | 29 | |
30 | 30 | // if widget is disabled - lets return nothing |
31 | - if ((int)$wData->disabled === 1) { |
|
31 | + if ((int) $wData->disabled === 1) { |
|
32 | 32 | return null; |
33 | 33 | } |
34 | 34 |
@@ -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'); |
@@ -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'); |
@@ -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'); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | <?php if ($useCaptcha === true) { |
32 | 32 | if (\App::$Captcha->isFull()) { |
33 | - echo '<div class="col-md-offset-3 col-md-9">' . \App::$Captcha->get() . '</div>'; |
|
33 | + echo '<div class="col-md-offset-3 col-md-9">'.\App::$Captcha->get().'</div>'; |
|
34 | 34 | } else { |
35 | 35 | echo $form->field('captcha', 'captcha', ['class' => 'form-control'], __('Enter data from security image to prove that you are human. If you can\'t read symbols - click on image to reload')); |
36 | 36 | } |
@@ -1,7 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | use Ffcms\Core\Helper\HTML\Form; |
3 | -use Ffcms\Core\Helper\Type\Str; |
|
4 | -use Ffcms\Core\Helper\Url; |
|
5 | 3 | |
6 | 4 | /** @var $useCaptcha bool */ |
7 | 5 | /** @var $model \Apps\Model\Front\User\FormLogin */ |
@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | <?php if ($useCaptcha === true) { |
32 | 32 | if (\App::$Captcha->isFull()) { |
33 | - echo '<div class="col-md-offset-3 col-md-9">' . \App::$Captcha->get() . '</div>'; |
|
33 | + echo '<div class="col-md-offset-3 col-md-9">'.\App::$Captcha->get().'</div>'; |
|
34 | 34 | } else { |
35 | 35 | echo $form->field('captcha', 'captcha', ['class' => 'form-control'], __('Enter data from security image to prove that you are human. If you can\'t read symbols - click on image to reload')); |
36 | 36 | } |