Passed
Pull Request — master (#1093)
by Iman
06:16
created
src/controllers/CBController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
     private function checkHideForm()
86 86
     {
87
-        if (! count($this->hide_form)) {
87
+        if (!count($this->hide_form)) {
88 88
             return null;
89 89
         }
90 90
         foreach ($this->form as $i => $f) {
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
             $type = $ro['type'] ?: 'text';
153 153
             $inputdata = request($name);
154 154
 
155
-            if (! $name || $ro['exception']) {
155
+            if (!$name || $ro['exception']) {
156 156
                 continue;
157 157
             }
158 158
 
Please login to merge, or discard this patch.
src/controllers/CBController/ExportData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
             $this->table('cms_settings')->where('name', 'default_paper_size')->update(['content' => $papersize]);
20 20
         }
21 21
         $format = request('fileformat');
22
-        if(in_array($format, ['pdf', 'xls', 'csv']))
22
+        if (in_array($format, ['pdf', 'xls', 'csv']))
23 23
         {
24 24
             return app(IndexExport::class)->{$format}($filename, $indexContent, $paperorientation, $papersize);
25 25
         }
Please login to merge, or discard this patch.
src/controllers/CBController/ImportData.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,12 +17,12 @@
 block discarded – undo
17 17
         $data['page_menu'] = Route::getCurrentRoute()->getActionName();
18 18
         $data['page_title'] = 'Import Data '.CB::getCurrentModule()->name;
19 19
 
20
-        if (! request('file') || request('import')) {
20
+        if (!request('file') || request('import')) {
21 21
             return $this->cbView('crudbooster::import', $data);
22 22
         }
23 23
 
24 24
         $file = 'storage'.DIRECTORY_SEPARATOR.'app'.DIRECTORY_SEPARATOR.base64_decode(request('file'));
25
-        $rows = Excel::load($file, function ($reader) {
25
+        $rows = Excel::load($file, function($reader) {
26 26
         })->get();
27 27
 
28 28
         session()->put('total_data_import', count($rows));
Please login to merge, or discard this patch.