Passed
Pull Request — master (#1092)
by Iman
07:45 queued 01:54
created
src/controllers/CBController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
     private function checkHideForm()
90 90
     {
91
-        if (! count($this->hide_form)) {
91
+        if (!count($this->hide_form)) {
92 92
             return null;
93 93
         }
94 94
         foreach ($this->form as $i => $f) {
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
             DB::table('cms_settings')->where('name', 'default_paper_size')->update(['content' => $papersize]);
117 117
         }
118 118
         $format = request('fileformat');
119
-        if(in_array($format, ['pdf', 'xls', 'csv']))
119
+        if (in_array($format, ['pdf', 'xls', 'csv']))
120 120
         {
121 121
             return app(IndexExport::class)->{$format}($filename, $indexContent, $paperorientation, $papersize);
122 122
         }
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
             $type = $ro['type'] ?: 'text';
181 181
             $inputdata = request($name);
182 182
 
183
-            if (! $name || $ro['exception']) {
183
+            if (!$name || $ro['exception']) {
184 184
                 continue;
185 185
             }
186 186
 
@@ -281,12 +281,12 @@  discard block
 block discarded – undo
281 281
         $data['page_menu'] = Route::getCurrentRoute()->getActionName();
282 282
         $data['page_title'] = 'Import Data '.CB::getCurrentModule()->name;
283 283
 
284
-        if (! request('file') || request('import')) {
284
+        if (!request('file') || request('import')) {
285 285
             return $this->cbView('crudbooster::import', $data);
286 286
         }
287 287
 
288 288
         $file = 'storage'.DIRECTORY_SEPARATOR.'app'.DIRECTORY_SEPARATOR.base64_decode(request('file'));
289
-        $rows = Excel::load($file, function ($reader) {
289
+        $rows = Excel::load($file, function($reader) {
290 290
         })->get();
291 291
 
292 292
         session()->put('total_data_import', count($rows));
Please login to merge, or discard this patch.
src/controllers/CBController/IndexAjax.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
         $datatableWhere = urldecode(request('datatable_where'));
12 12
         $foreign_key_name = request('fk_name');
13 13
         $foreign_key_value = request('fk_value');
14
-        if (! $table || ! $label || ! $foreign_key_name || ! $foreign_key_value) {
14
+        if (!$table || !$label || !$foreign_key_name || !$foreign_key_value) {
15 15
             return response()->json([]);
16 16
         }
17 17
         $query = DB::table($table);
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
         $result = DB::table($data['table']);
35 35
         if (request('q')) {
36
-            $result->where(function ($where) use ($columns) {
36
+            $result->where(function($where) use ($columns) {
37 37
                 foreach ($columns as $c => $col) {
38 38
                     if ($c == 0) {
39 39
                         $where->where($col, 'like', '%'.request('q').'%');
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     public function getDataQuery()
62 62
     {
63 63
         $key = request('query');
64
-        if (! Cache::has($key)) {
64
+        if (!Cache::has($key)) {
65 65
             return response()->json(['items' => []]);
66 66
         }
67 67
         $query = Cache::get($key);
Please login to merge, or discard this patch.