Passed
Push — master ( 66dd56...e66595 )
by Ferry
03:49
created
src/views/dev_layouts/modules/modules/edit.blade.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -149,21 +149,21 @@
 block discarded – undo
149 149
                     <?php
150 150
                     $font = new \crocodicstudio\crudbooster\helpers\FontAwesome();
151 151
                     $fontData = [
152
-                        ["data"=>$font->text(),"label"=>"Text"],
153
-                        ["data"=>$font->web(),"label"=>"Web"],
154
-                        ["data"=>$font->video(),"label"=>"Video"],
155
-                        ["data"=>$font->transportation(),"label"=>"Transportation"],
156
-                        ["data"=>$font->payment(),"label"=>"Payment"],
157
-                        ["data"=>$font->medical(),"label"=>"Medical"],
158
-                        ["data"=>$font->hand(),"label"=>"Hand"],
159
-                        ["data"=>$font->fileType(),"label"=>"File Type"],
160
-                        ["data"=>$font->directional(),"label"=>"Directional"],
161
-                        ["data"=>$font->currency(),"label"=>"Currency"],
162
-                        ["data"=>$font->chart(),"label"=>"Chart"],
163
-                        ["data"=>$font->brands(),"label"=>"Brand"],
164
-                        ["data"=>$font->gender(),"label"=>"Gender"],
165
-                        ["data"=>$font->form(),"label"=>"Form"],
166
-                        ["data"=>$font->spinner(),"label"=>"Spinner"]
152
+                        ["data"=>$font->text(), "label"=>"Text"],
153
+                        ["data"=>$font->web(), "label"=>"Web"],
154
+                        ["data"=>$font->video(), "label"=>"Video"],
155
+                        ["data"=>$font->transportation(), "label"=>"Transportation"],
156
+                        ["data"=>$font->payment(), "label"=>"Payment"],
157
+                        ["data"=>$font->medical(), "label"=>"Medical"],
158
+                        ["data"=>$font->hand(), "label"=>"Hand"],
159
+                        ["data"=>$font->fileType(), "label"=>"File Type"],
160
+                        ["data"=>$font->directional(), "label"=>"Directional"],
161
+                        ["data"=>$font->currency(), "label"=>"Currency"],
162
+                        ["data"=>$font->chart(), "label"=>"Chart"],
163
+                        ["data"=>$font->brands(), "label"=>"Brand"],
164
+                        ["data"=>$font->gender(), "label"=>"Gender"],
165
+                        ["data"=>$font->form(), "label"=>"Form"],
166
+                        ["data"=>$font->spinner(), "label"=>"Spinner"]
167 167
                     ];
168 168
                     ?>
169 169
                     @foreach($fontData as $f)
Please login to merge, or discard this patch.
src/configs/crudbooster.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,16 +26,16 @@
 block discarded – undo
26 26
     /*
27 27
      * For security reason we have limit the upload file formats bellow
28 28
      */
29
-    'UPLOAD_FILE_EXTENSION_ALLOWED' => ['jpg','jpeg','png','gif','pdf','xls','xlsx','doc','docx','txt','zip','rar','rtf'],
29
+    'UPLOAD_FILE_EXTENSION_ALLOWED' => ['jpg', 'jpeg', 'png', 'gif', 'pdf', 'xls', 'xlsx', 'doc', 'docx', 'txt', 'zip', 'rar', 'rtf'],
30 30
 
31
-    'UPLOAD_IMAGE_EXTENSION_ALLOWED' => ['jpg','jpeg','png','gif'],
31
+    'UPLOAD_IMAGE_EXTENSION_ALLOWED' => ['jpg', 'jpeg', 'png', 'gif'],
32 32
 
33 33
     /*
34 34
      * Data Migration table additional
35 35
      * You can define in this array what the tables you want to include in "php artisan crudbooster:data_migration"
36 36
      * The default is all cb_ prefix will be include in data migration
37 37
      */
38
-    'ADDITIONAL_DATA_MIGRATION'=>['users','migrations'],
38
+    'ADDITIONAL_DATA_MIGRATION'=>['users', 'migrations'],
39 39
 
40 40
     /*
41 41
      * Google FCM Server Key is used to send a notification via FireBase cloud message
Please login to merge, or discard this patch.
src/commands/MigrateData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     public function handle()
33 33
     {
34 34
         $this->info("== Data Migrate ==");
35
-        $this->call("db:seed",["--class"=>"CbMigrationSeeder"]);
35
+        $this->call("db:seed", ["--class"=>"CbMigrationSeeder"]);
36 36
         $this->info("== Data Migrate Finished ==");
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
src/commands/MigrationData.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,18 +41,18 @@  discard block
 block discarded – undo
41 41
         $php_string = "";
42 42
         $additional_tables = cbConfig("ADDITIONAL_DATA_MIGRATION");
43 43
 
44
-        foreach($tables as $table) {
45
-            if(substr($table,0,3) == "cb_" || in_array($table, $additional_tables)) {
44
+        foreach ($tables as $table) {
45
+            if (substr($table, 0, 3) == "cb_" || in_array($table, $additional_tables)) {
46 46
                 $this->info("Create seeder for table : ".$table);
47 47
                 $rows = DB::table($table)->get();
48 48
                 $data = [];
49
-                foreach($rows as $i=>$row) {
49
+                foreach ($rows as $i=>$row) {
50 50
                     $data[$i] = [];
51
-                    foreach($row as $key=>$val) {
51
+                    foreach ($row as $key=>$val) {
52 52
                         $data[$i][$key] = $val;
53 53
                     }
54 54
                 }
55
-                if(count($data)!=0) {
55
+                if (count($data) != 0) {
56 56
                     $php_string .= 'DB::table(\''.$table.'\')->delete();'."\n\t\t\t";
57 57
                     $php_string .= 'DB::table(\''.$table.'\')->insert('.min_var_export($data).');'."\n\t\t\t";
58 58
                 }
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         $composer_path = '';
83 83
         if (file_exists(getcwd().'/composer.phar')) {
84 84
             $composer_path = '"'.PHP_BINARY.'" '.getcwd().'/composer.phar';
85
-        }else{
85
+        } else {
86 86
             $composer_path = 'composer';
87 87
         }
88 88
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
         $composer_path = '';
83 83
         if (file_exists(getcwd().'/composer.phar')) {
84 84
             $composer_path = '"'.PHP_BINARY.'" '.getcwd().'/composer.phar';
85
-        }else{
85
+        } else{
86 86
             $composer_path = 'composer';
87 87
         }
88 88
 
Please login to merge, or discard this patch.