Completed
Push — master ( f5108b...8bf2dd )
by Iman
20s
created
src/Modules/ApiGeneratorModule/AdminApiGeneratorController.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
 
76 76
             if (strtolower($api->method_type) == 'get' && $httpbuilder) {
77 77
                 $httpbuilder = "?".http_build_query($httpbuilder);
78
-            }else{
78
+            } else{
79 79
                 $httpbuilder = '';
80 80
             }
81 81
 
Please login to merge, or discard this patch.
src/Modules/ModuleGenerator/Step1Handler.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 
39 39
         if (file_exists(controller_path($row->controller))) {
40 40
             $response = FileManipulator::readCtrlContent(str_replace('.', '', $row->controller));
41
-        }else{
41
+        } else{
42 42
             $response = file_get_contents(__DIR__.'Step1Handler.php/'.str_replace('.', '', $row->controller).'.php');
43 43
         }
44 44
 
Please login to merge, or discard this patch.
src/helpers/Mailer.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,6 @@
 block discarded – undo
47 47
      * @param $template
48 48
      * @param $subject
49 49
      * @param $html
50
-
51 50
      * @return bool
52 51
      */
53 52
     private function putInQueue($config, $template, $subject, $html)
Please login to merge, or discard this patch.
src/commands/CrudboosterInstallationCommand.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 
56 56
 		if($this->confirm('Do you have setting the database configuration at .env ?')) {
57 57
             $this->installCrudbooster();
58
-		}else{
58
+		} else{
59 59
 			$this->info('Setup Aborted !');
60 60
 			$this->info('Please setting the database configuration for first !');
61 61
 		}
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -60,16 +60,16 @@
 block discarded – undo
60 60
         $this->symlinkForAsset();
61 61
       
62 62
 
63
-		if($this->confirm('Do you have setting the database configuration at .env ?')) {
63
+        if($this->confirm('Do you have setting the database configuration at .env ?')) {
64 64
             $this->installCrudbooster();
65
-		}else{
66
-			$this->info('Setup Aborted !');
67
-			$this->info('Please setting the database configuration for first !');
68
-		}
65
+        }else{
66
+            $this->info('Setup Aborted !');
67
+            $this->info('Please setting the database configuration for first !');
68
+        }
69 69
 
70 70
         $printer->printFooter();
71 71
         exit;
72
-	}
72
+    }
73 73
 
74 74
     /**
75 75
      * Get the composer command for the environment.
Please login to merge, or discard this patch.
src/Modules/ModuleGenerator/ControllerGenerator/FormConfigGenerator.php 1 patch
Braces   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
             if (FieldDetector::isForeignKey($colName)) {
42 42
                 list($input['type'], $input['options']) = self::handleForeignKey($colName);
43
-            }elseif (substr($colName, 0, 3) == 'is_') {
43
+            } elseif (substr($colName, 0, 3) == 'is_') {
44 44
                 $input['type'] = 'radio_dataenum';
45 45
                 $label = ucwords(substr($colName, 3));
46 46
                 $input['options'] = [
@@ -53,25 +53,25 @@  discard block
 block discarded – undo
53 53
                 $input['type'] = 'password';
54 54
                 $input['validation'] = 'min:5|max:32|required';
55 55
                 $input['help'] = cbTrans("text_default_help_password");
56
-            }elseif (FieldDetector::isImage($colName)) {
56
+            } elseif (FieldDetector::isImage($colName)) {
57 57
                 $input['type'] = 'upload';
58 58
                 $input['validation'] = 'required|image';
59 59
                 $input['help'] = cbTrans('text_default_help_upload');
60
-            }elseif (FieldDetector::isGeographical($colName)) {
60
+            } elseif (FieldDetector::isGeographical($colName)) {
61 61
                 $input['type'] = 'hidden';
62 62
                 $input['validation'] = 'required|numeric';
63
-            }elseif (FieldDetector::isPhone($colName)) {
63
+            } elseif (FieldDetector::isPhone($colName)) {
64 64
                 $input['type'] = 'number';
65 65
                 $input['validation'] = 'required|numeric';
66 66
                 $input['placeholder'] = cbTrans('text_default_help_number');
67
-            }elseif (FieldDetector::isEmail($colName)) {
67
+            } elseif (FieldDetector::isEmail($colName)) {
68 68
                 $input['type'] = 'email';
69 69
                 $input['validation'] = 'require|email|unique:'.$table;
70 70
                 $input['placeholder'] = cbTrans('text_default_help_email');
71
-            }elseif ($input['type'] == 'text' && FieldDetector::isNameField($colName)) {
71
+            } elseif ($input['type'] == 'text' && FieldDetector::isNameField($colName)) {
72 72
                 $input['validation'] = 'required|string|min:3|max:70';
73 73
                 $input['placeholder'] = cbTrans('text_default_help_text');
74
-            }elseif ($input['type'] == 'text' && FieldDetector::isUrlField($colName)) {
74
+            } elseif ($input['type'] == 'text' && FieldDetector::isUrlField($colName)) {
75 75
                 $input['validation'] = 'required|url';
76 76
                 $input['placeholder'] = cbTrans('text_default_help_url');
77 77
             }
Please login to merge, or discard this patch.