Completed
Branch master (1e4726)
by Sergi Tur
09:12
created
Category
src/Console/InstallCommand.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -89,9 +89,9 @@  discard block
 block discarded – undo
89 89
             $this->executeWithoutLlum($output);
90 90
         } else {
91 91
             $llum = $this->findLlum();
92
-            $output->writeln("<info>" . $llum." package " . $this->getDevOption() . " AdminLTE" ."</info>");
92
+            $output->writeln("<info>" . $llum . " package " . $this->getDevOption() . " AdminLTE" . "</info>");
93 93
             $this->useVendorPublish ? $package = 'AdminLTEVendorPublish' : $package = 'AdminLTE';
94
-            passthru($llum." package " . $this->getDevOption() . $package);
94
+            passthru($llum . " package " . $this->getDevOption() . $package);
95 95
         }
96 96
     }
97 97
 
@@ -104,19 +104,19 @@  discard block
 block discarded – undo
104 104
     {
105 105
         $composer = $this->findComposer();
106 106
 
107
-        $process = new Process($composer.' require acacha/admin-lte-template-laravel' . $this->getDevSuffix(),
107
+        $process = new Process($composer . ' require acacha/admin-lte-template-laravel' . $this->getDevSuffix(),
108 108
             null, null, null, null);
109 109
 
110 110
         $output->writeln(
111 111
             '<info>Running composer require acacha/admin-lte-template-laravel' . $this->getDevSuffix() . '</info>');
112
-        $process->run(function ($type, $line) use ($output) {
112
+        $process->run(function($type, $line) use ($output) {
113 113
             $output->write($line);
114 114
         });
115 115
 
116
-        $output->writeln('<info>Copying file ' . __DIR__. '/stubs/app.php' . ' into ' . getcwd().'/config/app.php</info>');
117
-        copy(__DIR__.'/stubs/app.php', getcwd().'/config/app.php');
116
+        $output->writeln('<info>Copying file ' . __DIR__ . '/stubs/app.php' . ' into ' . getcwd() . '/config/app.php</info>');
117
+        copy(__DIR__ . '/stubs/app.php', getcwd() . '/config/app.php');
118 118
 
119
-        $this->useVendorPublish ? $this->publishWithVendor($output) : $this->publish($output) ;
119
+        $this->useVendorPublish ? $this->publishWithVendor($output) : $this->publish($output);
120 120
     }
121 121
 
122 122
     /**
@@ -126,8 +126,8 @@  discard block
 block discarded – undo
126 126
      */
127 127
     private function findComposer()
128 128
     {
129
-        if (file_exists(getcwd().'/composer.phar')) {
130
-            return '"'.PHP_BINARY.'" composer.phar"';
129
+        if (file_exists(getcwd() . '/composer.phar')) {
130
+            return '"' . PHP_BINARY . '" composer.phar"';
131 131
         }
132 132
 
133 133
         return 'composer';
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
      */
188 188
     private function getDevOption()
189 189
     {
190
-        return $this->installDev ? "--dev"  : "";
190
+        return $this->installDev ? "--dev" : "";
191 191
     }
192 192
 
193 193
     /*
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
      */
198 198
     private function getDevSuffix()
199 199
     {
200
-        return $this->installDev ? ":dev-master"  : "";
200
+        return $this->installDev ? ":dev-master" : "";
201 201
     }
202 202
 
203 203
     /**
Please login to merge, or discard this patch.