@@ -103,8 +103,8 @@ |
||
103 | 103 | |
104 | 104 | /** |
105 | 105 | * Display form field. Allowed type: text, password, textarea, checkbox, select, checkboxes, file, captcha, email, hidden |
106 | - * @param $object |
|
107 | - * @param $type |
|
106 | + * @param string $object |
|
107 | + * @param string $type |
|
108 | 108 | * @param null|array $property |
109 | 109 | * @param null|string $helper |
110 | 110 | * @param null|string $layerFile |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Ffcms\Core\Exception\NativeException; |
7 | 7 | use Ffcms\Core\Exception\SyntaxException; |
8 | 8 | use Ffcms\Core\Helper\HTML\System\NativeGenerator; |
9 | -use Ffcms\Core\Helper\Security; |
|
10 | 9 | use Ffcms\Core\Helper\Type\Arr; |
11 | 10 | use Ffcms\Core\Helper\FileSystem\File; |
12 | 11 | use Ffcms\Core\Helper\Type\Obj; |
@@ -42,7 +42,7 @@ |
||
42 | 42 | $options = $this->properties['options']; |
43 | 43 | unset($this->properties['options']); |
44 | 44 | if (!Obj::isArray($options) || count($options) < 1) { |
45 | - throw new SyntaxException('Radio field ' . self::nohtml($this->name) . ' have no options passed'); |
|
45 | + throw new SyntaxException('Radio field '.self::nohtml($this->name).' have no options passed'); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | // value is not used there |
@@ -39,11 +39,11 @@ discard block |
||
39 | 39 | // check if cache is enabled |
40 | 40 | if (App::$Cache !== null) { |
41 | 41 | // try to get bootable class map from cache, or initialize parsing |
42 | - if (App::$Cache->get('boot.' . env_name . '.class.map') !== null) { |
|
43 | - $this->objects = App::$Cache->get('boot.' . env_name . '.class.map'); |
|
42 | + if (App::$Cache->get('boot.'.env_name.'.class.map') !== null) { |
|
43 | + $this->objects = App::$Cache->get('boot.'.env_name.'.class.map'); |
|
44 | 44 | } else { |
45 | 45 | $this->compileBootableClasses(); |
46 | - App::$Cache->set('boot.' . env_name . '.class.map', $this->objects, static::CACHE_TREE_TIME); |
|
46 | + App::$Cache->set('boot.'.env_name.'.class.map', $this->objects, static::CACHE_TREE_TIME); |
|
47 | 47 | } |
48 | 48 | } |
49 | 49 | } |
@@ -89,11 +89,11 @@ discard block |
||
89 | 89 | { |
90 | 90 | // list app root's |
91 | 91 | foreach ($this->appRoots as $app) { |
92 | - $app .= '/Apps/Controller/' . env_name; |
|
92 | + $app .= '/Apps/Controller/'.env_name; |
|
93 | 93 | $files = File::listFiles($app, ['.php'], true); |
94 | 94 | foreach ($files as $file) { |
95 | 95 | // define full class name with namespace |
96 | - $class = 'Apps\Controller\\' . env_name . '\\' . Str::cleanExtension($file); |
|
96 | + $class = 'Apps\Controller\\'.env_name.'\\'.Str::cleanExtension($file); |
|
97 | 97 | // check if class exists (must be loaded over autoloader), boot method exist and this is controller instanceof |
98 | 98 | if (class_exists($class) && method_exists($class, 'boot') && is_a($class, 'Ffcms\Core\Arch\Controller', true)) { |
99 | 99 | $this->objects[] = $class; |
@@ -103,14 +103,14 @@ discard block |
||
103 | 103 | |
104 | 104 | // list widget root's |
105 | 105 | foreach ($this->widgetRoots as $widget) { |
106 | - $widget .= '/Widgets/' . env_name; |
|
106 | + $widget .= '/Widgets/'.env_name; |
|
107 | 107 | // widgets are packed in directory, classname should be the same with root directory name |
108 | 108 | $dirs = Directory::scan($widget, GLOB_ONLYDIR, true); |
109 | 109 | if (!Obj::isArray($dirs)) { |
110 | 110 | continue; |
111 | 111 | } |
112 | 112 | foreach ($dirs as $instance) { |
113 | - $class = 'Widgets\\' . env_name . '\\' . $instance . '\\' . $instance; |
|
113 | + $class = 'Widgets\\'.env_name.'\\'.$instance.'\\'.$instance; |
|
114 | 114 | if (class_exists($class) && method_exists($class, 'boot') && is_a($class, 'Ffcms\Core\Arch\Widget', true)) { |
115 | 115 | $this->objects[] = $class; |
116 | 116 | } |