Passed
Push — master ( 4e0c2f...af0465 )
by Prateek
04:42 queued 02:26
created
src/Commands/Generate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
         }
74 74
     }
75 75
 
76
-    protected function configToGenerators($array){
76
+    protected function configToGenerators($array) {
77 77
         $generators = [];
78 78
         foreach ($array as $ns => $items) {
79 79
             foreach ($items as $item) {
Please login to merge, or discard this patch.
src/Generators/Backend/View.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,15 +13,15 @@  discard block
 block discarded – undo
13 13
 		$generatedFiles = [];
14 14
 		
15 15
         foreach ($viewsToBeGenerated as $view) {
16
-            $viewTemplate = $this->buildTemplate('Backend/Views/' . $view, [
16
+            $viewTemplate = $this->buildTemplate('Backend/Views/'.$view, [
17 17
 				'{{headings}}' 			 => $this->getHeadings(),
18 18
                 '{{modelNameLowercase}}' => str_singular($this->module->getModuleName()),
19 19
                 '{{moduleName}}'         => $this->module->getModuleName()
20 20
             ]);
21 21
 
22
-            $fullFilePath = $this->getPath("resources/views/backend/" . $this->module->getModuleName()) . "/{$view}.blade.php";
22
+            $fullFilePath = $this->getPath("resources/views/backend/".$this->module->getModuleName())."/{$view}.blade.php";
23 23
             file_put_contents($fullFilePath, $viewTemplate);
24
-            $generatedFiles[] =  $fullFilePath;
24
+            $generatedFiles[] = $fullFilePath;
25 25
         }
26 26
 
27 27
         $mainMenuFile = $this->getPath("resources/views/backend/includes/")."main_menu.blade.php";
@@ -38,9 +38,9 @@  discard block
 block discarded – undo
38 38
         return $generatedFiles;
39 39
 	}
40 40
 
41
-	public function getHeadings(){
41
+	public function getHeadings() {
42 42
         $columns = $this->module->getBackendColumnTitles();
43
-        $headings= "";
43
+        $headings = "";
44 44
         foreach ($columns as $column) {
45 45
             $headings .= "<th>".$column."</th>";
46 46
         }
Please login to merge, or discard this patch.
src/Generators/Backend/Request.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
         return $fullFilePath;
20 20
 	}
21 21
 	
22
-	protected function getRules(){
22
+	protected function getRules() {
23 23
 		// Todo
24 24
 		return "";
25 25
 	}
Please login to merge, or discard this patch.
src/Generators/Common/Route.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
         $webRouteFile = $this->getPath("routes/frontend/")."web.php";
18 18
         $backendWebRouteFile = $this->getPath("routes/backend/")."web.php";
19 19
 
20
-        if(self::$initializeFlag++ == 0){
20
+        if (self::$initializeFlag++ == 0) {
21 21
             $this->initializeFiles([
22 22
                 $webRouteFile => "Route",
23 23
                 $backendAuthRouteFile => "Routes/Backend-auth",
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
         $this->insertIntoFile(
45 45
             $webRouteFile,
46
-            "/" . "* Insert your routes here */",
46
+            "/"."* Insert your routes here */",
47 47
             "\n".$this->getTabs(1)."Route::resource('".$this->module->getModuleName()."', ".$this->module->getModelName()."Controller::class);"
48 48
         );
49 49
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
         $this->insertIntoFile(
59 59
             $backendWebRouteFile,
60
-            "/" . "* Insert your routes here */",
60
+            "/"."* Insert your routes here */",
61 61
             "\n".$this->getTabs(1)."Route::resource('".$this->module->getModuleName()."', ".$this->module->getModelName()."Controller::class);"
62 62
         );
63 63
         
Please login to merge, or discard this patch.
src/Models/Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         $data = ['S.N.'];
35 35
         foreach ($this->data as $column => $optionString) {
36 36
             $optionArray = explode(':', $optionString);
37
-            if (in_array($optionArray[0], ['string', 'int'])&&in_array($column, ['title', 'firstname', 'lastname', 'name'])) {
37
+            if (in_array($optionArray[0], ['string', 'int']) && in_array($column, ['title', 'firstname', 'lastname', 'name'])) {
38 38
                 $data[] = ucwords($column);
39 39
             }
40 40
         }
Please login to merge, or discard this patch.