Completed
Pull Request — master (#4)
by Eliurkis
01:41
created
src/CrudController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 
117 117
     public function edit($id)
118 118
     {
119
-        if (! $this->entityInstance) {
119
+        if (!$this->entityInstance) {
120 120
             $this->entityInstance = $this->entity->findOrFail($id);
121 121
         }
122 122
 
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
         if ($request->get('q') != '') {
242 242
             $searchableCols = isset($this->searchable['columns']) ? $this->searchable['columns'] : $this->searchable;
243 243
 
244
-            $entity = $entity->where(function ($query) use ($request, $searchableCols) {
244
+            $entity = $entity->where(function($query) use ($request, $searchableCols) {
245 245
                 foreach ($searchableCols as $field) {
246 246
                     $query->orWhere($field, 'like', '%'.$request->get('q').'%');
247 247
                 }
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
         $config['options'] = isset($config['options']) ? $config['options'] : [];
299 299
         $config['cols'] = isset($config['cols']) ? $config['cols'] : 1;
300 300
 
301
-        if (! count($config['options']) && isset($config['entity'])) {
301
+        if (!count($config['options']) && isset($config['entity'])) {
302 302
             $config['options'] = $config['entity']::get()
303 303
                 ->lists($config['field_value'], $config['field_key'])
304 304
                 ->toArray();
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
         $links = ['index', 'create', 'store'];
336 336
 
337 337
         foreach ($links as $link) {
338
-            if (! isset($this->links[$link])) {
338
+            if (!isset($this->links[$link])) {
339 339
                 $this->links[$link] = route($this->route.'.'.$link);
340 340
             }
341 341
         }
Please login to merge, or discard this patch.