@@ -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 | |
@@ -88,9 +88,9 @@ |
||
| 88 | 88 | /** |
| 89 | 89 | * Get meta data by key. |
| 90 | 90 | * |
| 91 | - * @param string|int $key |
|
| 92 | - * @param mixed $default |
|
| 93 | - * @param mixed $filter |
|
| 91 | + * @param string $key |
|
| 92 | + * @param boolean $default |
|
| 93 | + * @param string $filter |
|
| 94 | 94 | * @return mixed |
| 95 | 95 | */ |
| 96 | 96 | public function getMetaData($key, $default = null, $filter = null) |
@@ -142,7 +142,7 @@ |
||
| 142 | 142 | * Finds an partial filename, returns false on failure. |
| 143 | 143 | * |
| 144 | 144 | * @param string $name |
| 145 | - * @return bool|string |
|
| 145 | + * @return string|false |
|
| 146 | 146 | */ |
| 147 | 147 | protected function _getLayoutPartialPath($name) |
| 148 | 148 | { |
@@ -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 | /** |
@@ -151,7 +151,7 @@ |
||
| 151 | 151 | /** |
| 152 | 152 | * Load list plugin. |
| 153 | 153 | * |
| 154 | - * @param array $plugins |
|
| 154 | + * @param string[] $plugins |
|
| 155 | 155 | * @return void |
| 156 | 156 | */ |
| 157 | 157 | public static function loadList(array $plugins) |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | * Get name by prefix. |
| 53 | 53 | * |
| 54 | 54 | * @param string|null $prefix |
| 55 | - * @return mixed |
|
| 55 | + * @return string |
|
| 56 | 56 | */ |
| 57 | 57 | public static function name($prefix = null) |
| 58 | 58 | { |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | */ |
| 152 | 152 | protected function _addDefaultContextProviders() |
| 153 | 153 | { |
| 154 | - $this->addContextProvider('orm', function ($request, $data) { |
|
| 154 | + $this->addContextProvider('orm', function($request, $data) { |
|
| 155 | 155 | if (is_array($data['entity']) || $data['entity'] instanceof \Traversable) { |
| 156 | 156 | $pass = (new Collection($data['entity']))->first() !== null; |
| 157 | 157 | if ($pass) { |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | */ |
| 192 | 192 | protected function _addFormContextProvider() |
| 193 | 193 | { |
| 194 | - $this->addContextProvider('form', function ($request, $data) { |
|
| 194 | + $this->addContextProvider('form', function($request, $data) { |
|
| 195 | 195 | if ($data['entity'] instanceof Form) { |
| 196 | 196 | return new FormContext($request, $data); |
| 197 | 197 | } |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | */ |
| 206 | 206 | protected function _addFormArrayProvider() |
| 207 | 207 | { |
| 208 | - $this->addContextProvider('array', function ($request, $data) { |
|
| 208 | + $this->addContextProvider('array', function($request, $data) { |
|
| 209 | 209 | if (is_array($data['entity']) && isset($data['entity']['schema'])) { |
| 210 | 210 | return new ArrayContext($request, $data['entity']); |
| 211 | 211 | } |