Passed
Pull Request — master (#1112)
by Iman
04:03
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   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,25 +55,25 @@
 block discarded – undo
55 55
                 $input['type'] = 'password';
56 56
                 $input['validation'] = 'min:5|max:32|required';
57 57
                 $input['help'] = cbTrans("text_default_help_password");
58
-            }elseif (FieldDetector::isImage($colName)) {
58
+            } elseif (FieldDetector::isImage($colName)) {
59 59
                 $input['type'] = 'upload';
60 60
                 $input['validation'] = 'required|image';
61 61
                 $input['help'] = cbTrans('text_default_help_upload');
62
-            }elseif (FieldDetector::isGeographical($colName)) {
62
+            } elseif (FieldDetector::isGeographical($colName)) {
63 63
                 $input['type'] = 'hidden';
64 64
                 $input['validation'] = 'required|numeric';
65
-            }elseif (FieldDetector::isPhone($colName)) {
65
+            } elseif (FieldDetector::isPhone($colName)) {
66 66
                 $input['type'] = 'number';
67 67
                 $input['validation'] = 'required|numeric';
68 68
                 $input['placeholder'] = cbTrans('text_default_help_number');
69
-            }elseif (FieldDetector::isEmail($colName)) {
69
+            } elseif (FieldDetector::isEmail($colName)) {
70 70
                 $input['type'] = 'email';
71 71
                 $input['validation'] = 'require|email|unique:'.$table;
72 72
                 $input['placeholder'] = cbTrans('text_default_help_email');
73
-            }elseif ($input['type'] == 'text' && FieldDetector::isNameField($colName)) {
73
+            } elseif ($input['type'] == 'text' && FieldDetector::isNameField($colName)) {
74 74
                 $input['validation'] = 'required|string|min:3|max:70';
75 75
                 $input['placeholder'] = cbTrans('text_default_help_text');
76
-            }elseif ($input['type'] == 'text' && FieldDetector::isUrlField($colName)) {
76
+            } elseif ($input['type'] == 'text' && FieldDetector::isUrlField($colName)) {
77 77
                 $input['validation'] = 'required|url';
78 78
                 $input['placeholder'] = cbTrans('text_default_help_url');
79 79
             }
Please login to merge, or discard this patch.