@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | * |
193 | 193 | * @param string $path |
194 | 194 | * @param string $fileHead |
195 | - * @return mixed |
|
195 | + * @return string |
|
196 | 196 | */ |
197 | 197 | protected function _normalizeContent($path, $fileHead) |
198 | 198 | { |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | * Preg replace url. |
236 | 236 | * |
237 | 237 | * @param string $css |
238 | - * @return mixed |
|
238 | + * @return string |
|
239 | 239 | */ |
240 | 240 | protected function _replaceUrl($css) |
241 | 241 | { |
@@ -192,7 +192,7 @@ |
||
192 | 192 | /** |
193 | 193 | * Clear menu items. |
194 | 194 | * |
195 | - * @param $menu |
|
195 | + * @param string $menu |
|
196 | 196 | * @throws \UnexpectedValueException |
197 | 197 | */ |
198 | 198 | protected static function _clear($menu) |
@@ -179,7 +179,7 @@ |
||
179 | 179 | * @param string|array $path |
180 | 180 | * @param array $options |
181 | 181 | * @param string $type |
182 | - * @return bool|null|string |
|
182 | + * @return string|null |
|
183 | 183 | */ |
184 | 184 | protected function _include($path, array $options = [], $type = 'css') |
185 | 185 | { |
@@ -76,7 +76,7 @@ |
||
76 | 76 | |
77 | 77 | if (count($this->_buffers)) { |
78 | 78 | $scripts = $docEol . |
79 | - 'jQuery (function($) {' . $docEol . |
|
79 | + 'jQuery (function($) {' . $docEol . |
|
80 | 80 | implode($docEol, $this->_buffers) . $docEol . |
81 | 81 | '});' . $docEol; |
82 | 82 |
@@ -17,7 +17,6 @@ |
||
17 | 17 | |
18 | 18 | use JBZoo\Data\JSON; |
19 | 19 | use Cake\Event\Event; |
20 | -use Cake\Database\Type; |
|
21 | 20 | use Cake\ORM\Table as CakeTable; |
22 | 21 | |
23 | 22 | /** |
@@ -72,7 +72,7 @@ |
||
72 | 72 | * Emits an event. |
73 | 73 | * |
74 | 74 | * @param string $name |
75 | - * @param object|null $subject |
|
75 | + * @param \Cake\Controller\Controller $subject |
|
76 | 76 | * @param array|null $data |
77 | 77 | * @return Event |
78 | 78 | */ |
@@ -17,7 +17,6 @@ |
||
17 | 17 | |
18 | 18 | use Core\Plugin; |
19 | 19 | use Cake\Core\App; |
20 | -use Core\Controller\AppController; |
|
21 | 20 | use Cake\Event\EventManager as CakeEventManager; |
22 | 21 | |
23 | 22 | /** |
@@ -210,7 +210,7 @@ |
||
210 | 210 | * |
211 | 211 | * @param string $plugin |
212 | 212 | * @param string $aliasClass |
213 | - * @return bool|string |
|
213 | + * @return string|false |
|
214 | 214 | */ |
215 | 215 | protected function _getItemClassName($plugin, $aliasClass) |
216 | 216 | { |
@@ -16,8 +16,8 @@ |
||
16 | 16 | use Cake\Routing\Router; |
17 | 17 | use Cake\Routing\RouteBuilder; |
18 | 18 | |
19 | -Router::plugin('Core', ['path' => '/'], function (RouteBuilder $routeBuilder) { |
|
20 | - $routeBuilder->prefix('admin', function (RouteBuilder $routeBuilder) { |
|
19 | +Router::plugin('Core', ['path' => '/'], function(RouteBuilder $routeBuilder) { |
|
20 | + $routeBuilder->prefix('admin', function(RouteBuilder $routeBuilder) { |
|
21 | 21 | $routeBuilder->connect('/:controller/:action/*', []); |
22 | 22 | $routeBuilder->connect('/', ['controller' => 'Root', 'action' => 'dashboard']); |
23 | 23 | }); |
@@ -49,7 +49,7 @@ |
||
49 | 49 | * Merge configure values by key. |
50 | 50 | * |
51 | 51 | * @param string $key |
52 | - * @param array|string $config |
|
52 | + * @param string $config |
|
53 | 53 | * @return array|mixed |
54 | 54 | */ |
55 | 55 | public static function mergeConfig($key, $config) |
@@ -68,11 +68,11 @@ |
||
68 | 68 | */ |
69 | 69 | protected function _initialize() |
70 | 70 | { |
71 | - $this['path'] = function () { |
|
71 | + $this['path'] = function() { |
|
72 | 72 | return $this->_initPaths(); |
73 | 73 | }; |
74 | 74 | |
75 | - $this['helper'] = function () { |
|
75 | + $this['helper'] = function() { |
|
76 | 76 | return new HelperManager(); |
77 | 77 | }; |
78 | 78 | } |