Passed
Push — master ( 9c82b2...472045 )
by Prateek
07:54 queued 04:44
created
src/Models/FileSystem.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -5,19 +5,19 @@
 block discarded – undo
5 5
 
6 6
 class FileSystem extends SymphonyFilesystem
7 7
 {
8
-	public function clone($src, $dest){
9
-		$src = $this->getFullSourcePath($src);
8
+    public function clone($src, $dest){
9
+        $src = $this->getFullSourcePath($src);
10 10
 
11
-		$dest = base_path($dest);
11
+        $dest = base_path($dest);
12 12
 
13
-		if (is_dir($src)) {
14
-			$this->mirror($src, $dest."/".basename($src));
15
-		}else{
16
-			$this->copy($src, $dest);
17
-		}
18
-	}
13
+        if (is_dir($src)) {
14
+            $this->mirror($src, $dest."/".basename($src));
15
+        }else{
16
+            $this->copy($src, $dest);
17
+        }
18
+    }
19 19
 
20
-	public function getFullSourcePath($path){
21
-		return realpath(__DIR__ . "/../resources/" . $path);
22
-	}
20
+    public function getFullSourcePath($path){
21
+        return realpath(__DIR__ . "/../resources/" . $path);
22
+    }
23 23
 }
Please login to merge, or discard this patch.
src/Generators/Common/Route.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
         $this->insertIntoFile(
39 39
             $webRouteFile,
40 40
             "<?php\n",
41
-			"use App\\Http\\Controllers\\".$this->module->getModelName()."Controller;\n"
42
-		);
41
+            "use App\\Http\\Controllers\\".$this->module->getModelName()."Controller;\n"
42
+        );
43 43
 
44 44
         $this->insertIntoFile(
45 45
             $webRouteFile,
@@ -47,13 +47,13 @@  discard block
 block discarded – undo
47 47
             "\n".$this->getTabs(1)."Route::resource('".$this->module->getModuleName()."', ".$this->module->getModelName()."Controller::class);"
48 48
         );
49 49
 
50
-		$generatedFiles[] = $webRouteFile;
50
+        $generatedFiles[] = $webRouteFile;
51 51
 		
52 52
         $this->insertIntoFile(
53 53
             $backendWebRouteFile,
54 54
             "<?php\n",
55
-			"use App\\Http\\Controllers\\Backend\\".$this->module->getModelName()."Controller;\n"
56
-		);
55
+            "use App\\Http\\Controllers\\Backend\\".$this->module->getModelName()."Controller;\n"
56
+        );
57 57
 
58 58
         $this->insertIntoFile(
59 59
             $backendWebRouteFile,
Please login to merge, or discard this patch.
config/options.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@
 block discarded – undo
1 1
 <?php
2 2
 return [
3
-	'items_to_generate' => [
4
-		'Common' => [
5
-			'Migration',
6
-			'Model',
7
-			'Seeder',
8
-			'Route'
9
-		],
10
-		'Frontend' => [
11
-			'Controller',
12
-			'View'
13
-		],
14
-		'Backend' => [
15
-			'Controller',
16
-			'Request',
17
-			'View'
18
-		]
19
-	],
20
-	'skip_generators' => [],
21
-	'override' => true
3
+    'items_to_generate' => [
4
+        'Common' => [
5
+            'Migration',
6
+            'Model',
7
+            'Seeder',
8
+            'Route'
9
+        ],
10
+        'Frontend' => [
11
+            'Controller',
12
+            'View'
13
+        ],
14
+        'Backend' => [
15
+            'Controller',
16
+            'Request',
17
+            'View'
18
+        ]
19
+    ],
20
+    'skip_generators' => [],
21
+    'override' => true
22 22
 ];
23 23
\ No newline at end of file
Please login to merge, or discard this patch.
src/resources/Helpers/laragen_helpers.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-  /**
2
+    /**
3 3
      * Helper Functions for Lagaren
4 4
      * Autoloads via LaragenServiceProvider
5 5
      */
Please login to merge, or discard this patch.
src/LaragenServiceProvider.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,10 +36,10 @@
 block discarded – undo
36 36
     public function register()
37 37
     {
38 38
         // Register Intervention Provider and Facade
39
-		$this->app->register(ImageServiceProvider::class);
39
+        $this->app->register(ImageServiceProvider::class);
40 40
         AliasLoader::getInstance()->alias('Image', Image::class);
41 41
         
42
-		$this->app->register("\App\Providers\LaragenRouteServiceProvider");
42
+        $this->app->register("\App\Providers\LaragenRouteServiceProvider");
43 43
 
44 44
         $this->app->bind('command.laragen:make', Generate::class);
45 45
 
Please login to merge, or discard this patch.
src/Generators/Backend/Request.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
         $fullFilePath = $this->getPath("app/Http/Requests/Backend/").$this->module->getModelName()."Request".".php";
20 20
         file_put_contents($fullFilePath, $controllerTemplate);
21 21
         return $fullFilePath;
22
-	}
22
+    }
23 23
 	
24 24
     protected function getRules()
25 25
     {
@@ -53,5 +53,5 @@  discard block
 block discarded – undo
53 53
         }
54 54
         $delimiter = ",\n{$columnOptions->getTabs(3)}";
55 55
         return (implode($delimiter, $validation));
56
-	}
56
+    }
57 57
 }
Please login to merge, or discard this patch.
src/Generators/Backend/View.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@  discard block
 block discarded – undo
13 13
     public function generate()
14 14
     {
15 15
         
16
-		$viewsToBeGenerated = ['index', 'create', 'edit'];
16
+        $viewsToBeGenerated = ['index', 'create', 'edit'];
17 17
 
18
-		$generatedFiles = [];
18
+        $generatedFiles = [];
19 19
 		
20 20
         foreach ($viewsToBeGenerated as $view) {
21 21
             $viewTemplate = $this->buildTemplate('backend/views/' . $view, [
@@ -44,26 +44,26 @@  discard block
 block discarded – undo
44 44
         $this->insertIntoFile(
45 45
             $mainMenuFile,
46 46
             '{{-- Main Menu --}}',
47
-			"\n".'<li class="nav-item dropdown">
47
+            "\n".'<li class="nav-item dropdown">
48 48
                     <a href="#" class="nav-link has-dropdown" data-toggle="dropdown"><i class="fas fa-columns"></i> <span> '.str_plural($this->module->getModelName()).' </span></a>
49 49
                     <ul class="dropdown-menu">
50 50
                         <li><a class="nav-link" href="{{ route("backend.'.$this->module->getModuleName().'.create") }}"> Add new '.str_plural($this->module->getModelName()).'</a></li>
51 51
                         <li><a class="nav-link" href="{{ route("backend.'.$this->module->getModuleName().'.index") }}">All '.str_plural($this->module->getModelName()).'</a></li>
52 52
                     </ul>
53 53
                 </li>'
54
-		);
54
+        );
55 55
         $generatedFiles = array_merge($generatedFiles, $this->formGenerateCreate());
56 56
         return $generatedFiles;
57
-	}
57
+    }
58 58
 
59
-	public function getHeadings(){
59
+    public function getHeadings(){
60 60
         $columns = $this->module->getBackendColumnTitles();
61 61
         $headings= "";
62 62
         foreach ($columns as $column) {
63 63
             $headings .= "<th>".$column."</th>";
64 64
         }
65
-		return $headings;
66
-	}
65
+        return $headings;
66
+    }
67 67
 
68 68
     public function formGenerateCreate()
69 69
     {
Please login to merge, or discard this patch.