@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | * Get current form view. |
| 128 | 128 | * |
| 129 | 129 | * @param null|string $view |
| 130 | - * @return null |
|
| 130 | + * @return string|null |
|
| 131 | 131 | */ |
| 132 | 132 | protected function _getFormView($view = null) |
| 133 | 133 | { |
@@ -142,7 +142,7 @@ discard block |
||
| 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 | { |
@@ -78,11 +78,11 @@ |
||
| 78 | 78 | |
| 79 | 79 | $classes = [ |
| 80 | 80 | $prefix, |
| 81 | - 'theme-' . Str::low($this->_View->theme), |
|
| 82 | - 'plugin-' . Str::low($this->_View->plugin), |
|
| 83 | - 'view-' . Str::low($this->_View->name), |
|
| 84 | - 'tmpl-' . Str::low($this->_View->template), |
|
| 85 | - 'layout-' . Str::low($this->_View->layout), |
|
| 81 | + 'theme-' . Str::low($this->_View->theme), |
|
| 82 | + 'plugin-' . Str::low($this->_View->plugin), |
|
| 83 | + 'view-' . Str::low($this->_View->name), |
|
| 84 | + 'tmpl-' . Str::low($this->_View->template), |
|
| 85 | + 'layout-' . Str::low($this->_View->layout), |
|
| 86 | 86 | ]; |
| 87 | 87 | |
| 88 | 88 | $pass = (array) $this->request->param('pass'); |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | */ |
| 174 | 174 | protected function _addDefaultContextProviders() |
| 175 | 175 | { |
| 176 | - $this->addContextProvider('orm', function ($request, $data) { |
|
| 176 | + $this->addContextProvider('orm', function($request, $data) { |
|
| 177 | 177 | if (is_array($data['entity']) || $data['entity'] instanceof \Traversable) { |
| 178 | 178 | $pass = (new Collection($data['entity']))->first() !== null; |
| 179 | 179 | if ($pass) { |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | */ |
| 214 | 214 | protected function _addFormArrayProvider() |
| 215 | 215 | { |
| 216 | - $this->addContextProvider('array', function ($request, $data) { |
|
| 216 | + $this->addContextProvider('array', function($request, $data) { |
|
| 217 | 217 | if (is_array($data['entity']) && isset($data['entity']['schema'])) { |
| 218 | 218 | return new ArrayContext($request, $data['entity']); |
| 219 | 219 | } |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | */ |
| 228 | 228 | protected function _addFormContextProvider() |
| 229 | 229 | { |
| 230 | - $this->addContextProvider('form', function ($request, $data) { |
|
| 230 | + $this->addContextProvider('form', function($request, $data) { |
|
| 231 | 231 | if ($data['entity'] instanceof Form) { |
| 232 | 232 | return new FormContext($request, $data); |
| 233 | 233 | } |
@@ -213,7 +213,7 @@ |
||
| 213 | 213 | * Create and merge actual process options. |
| 214 | 214 | * |
| 215 | 215 | * @param array $options |
| 216 | - * @param int|string $count |
|
| 216 | + * @param integer $count |
|
| 217 | 217 | * @return array |
| 218 | 218 | */ |
| 219 | 219 | protected function _getOptions(array $options, $count) |
@@ -16,7 +16,6 @@ |
||
| 16 | 16 | namespace Core\Event; |
| 17 | 17 | |
| 18 | 18 | use Cake\Event\Event as CakeEvent; |
| 19 | - |
|
| 20 | 19 | use JBZoo\Data\Data; |
| 21 | 20 | |
| 22 | 21 | /** |
@@ -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 | */ |