@@ -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 @@ 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 | } |
@@ -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 | { |