Passed
Pull Request — master (#1095)
by Iman
03:10
created
src/commands/CrudboosterInstallationCommand.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -59,19 +59,19 @@
 block discarded – undo
59 59
         $this->symlinkForAsset();
60 60
       
61 61
 
62
-		if($this->confirm('Do you have setting the database configuration at .env ?')) {
62
+        if($this->confirm('Do you have setting the database configuration at .env ?')) {
63 63
             $this->installCrudbooster();
64
-		}else{
65
-			$this->info('Setup Aborted !');
66
-			$this->info('Please setting the database configuration for first !');
67
-		}
64
+        }else{
65
+            $this->info('Setup Aborted !');
66
+            $this->info('Please setting the database configuration for first !');
67
+        }
68 68
 
69
-		$this->printFooter();
69
+        $this->printFooter();
70 70
         exit;
71
-	}
71
+    }
72 72
 
73
-	private function printHeader() {
74
-		$this->info("
73
+    private function printHeader() {
74
+        $this->info("
75 75
 
76 76
 #     __________  __  ______  ____                   __           
77 77
 #    / ____/ __ \/ / / / __ \/ __ )____  ____  _____/ /____  _____
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         $this->printHeader();
39 39
 
40 40
         $passes = (new RequirementChecker())->check();
41
-        if(!$passes) {
41
+        if (!$passes) {
42 42
             $this->info('Sorry unfortunately your system is not meet with our requirements !');
43 43
             $this->printFooter(false);
44 44
             $this->info('--');
@@ -59,9 +59,9 @@  discard block
 block discarded – undo
59 59
         $this->symlinkForAsset();
60 60
       
61 61
 
62
-		if($this->confirm('Do you have setting the database configuration at .env ?')) {
62
+		if ($this->confirm('Do you have setting the database configuration at .env ?')) {
63 63
             $this->installCrudbooster();
64
-		}else{
64
+		} else {
65 65
 			$this->info('Setup Aborted !');
66 66
 			$this->info('Please setting the database configuration for first !');
67 67
 		}
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
         if (!file_exists($vendorPath)) {
140 140
             $this->info('Creating public/vendor/crudbooster symlink...');
141 141
             app('files')->link(__DIR__.'/../assets', public_path('vendor/crudbooster'));
142
-            return ;
142
+            return;
143 143
         }
144 144
 
145 145
         $this->info('Vendor Path: '.$vendorPath);
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
         $this->info('Migrating database...');
176 176
         $this->call('migrate', ['--path'=> '\database\migrations\crudbooster']);
177 177
 
178
-        if (! class_exists('CBSeeder')) {
178
+        if (!class_exists('CBSeeder')) {
179 179
             require_once __DIR__.'/../database/seeds/CBSeeder.php';
180 180
         }
181 181
         $this->callSilent('db:seed', ['--class' => 'CBSeeder']);
@@ -188,11 +188,11 @@  discard block
 block discarded – undo
188 188
     private function createVendorAtPublic()
189 189
     {
190 190
         $this->info('Checking public/vendor directory...');
191
-        if (! file_exists(public_path('vendor'))) {
191
+        if (!file_exists(public_path('vendor'))) {
192 192
             mkdir(public_path('vendor'), 0777);
193 193
         }
194 194
 
195
-        if (! is_writable(public_path('vendor'))) {
195
+        if (!is_writable(public_path('vendor'))) {
196 196
             $this->info('Setup aborted !');
197 197
             $this->info('Please set public/vendor directory to writable 0777');
198 198
             exit;
Please login to merge, or discard this patch.
src/commands/RequirementChecker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
      */
64 64
     private function chechExtension($extension)
65 65
     {
66
-        if (! extension_loaded($extension)) {
66
+        if (!extension_loaded($extension)) {
67 67
             $this->info($extension.' extension: [Bad]');
68 68
             return $this->requirements = false;
69 69
         }
Please login to merge, or discard this patch.
src/CBCoreModule/Index/Order.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     function handle($result, $table)
23 23
     {
24 24
         $orderby = $this->ctrl->orderby;
25
-        if (! $orderby) {
25
+        if (!$orderby) {
26 26
             $result->orderby($table.'.'.$this->ctrl->primary_key, 'desc');
27 27
             return;
28 28
         }
Please login to merge, or discard this patch.