Completed
Push — master ( 2ad47c...163a33 )
by Cheren
44:31
created
src/ORM/Table.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.
src/View/Helper/FormHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.