Completed
Push — master ( b7290a...f2cd13 )
by Mihail
04:20
created
src/Ffcms/Core/Helper/HTML/Form.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,8 +103,8 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Ffcms/Core/Helper/HTML/Form/RadioField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Ffcms/Core/Managers/BootManager.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -39,11 +39,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.