@@ -86,9 +86,9 @@ discard block |
||
86 | 86 | $this->executeWithoutLlum($output); |
87 | 87 | } else { |
88 | 88 | $llum = $this->findLlum(); |
89 | - $output->writeln('<info>'.$llum.' package '.$this->getDevOption().' AdminLTE'.'</info>'); |
|
89 | + $output->writeln('<info>' . $llum . ' package ' . $this->getDevOption() . ' AdminLTE' . '</info>'); |
|
90 | 90 | $this->useVendorPublish ? $package = 'AdminLTEVendorPublish' : $package = 'AdminLTE'; |
91 | - passthru($llum.' package '.$this->getDevOption().$package); |
|
91 | + passthru($llum . ' package ' . $this->getDevOption() . $package); |
|
92 | 92 | } |
93 | 93 | } |
94 | 94 | |
@@ -101,17 +101,17 @@ discard block |
||
101 | 101 | { |
102 | 102 | $composer = $this->findComposer(); |
103 | 103 | |
104 | - $process = new Process($composer.' require acacha/admin-lte-template-laravel'.$this->getDevSuffix(), |
|
104 | + $process = new Process($composer . ' require acacha/admin-lte-template-laravel' . $this->getDevSuffix(), |
|
105 | 105 | null, null, null, null); |
106 | 106 | |
107 | 107 | $output->writeln( |
108 | - '<info>Running composer require acacha/admin-lte-template-laravel'.$this->getDevSuffix().'</info>'); |
|
109 | - $process->run(function ($type, $line) use ($output) { |
|
108 | + '<info>Running composer require acacha/admin-lte-template-laravel' . $this->getDevSuffix() . '</info>'); |
|
109 | + $process->run(function($type, $line) use ($output) { |
|
110 | 110 | $output->write($line); |
111 | 111 | }); |
112 | 112 | |
113 | - $output->writeln('<info>Copying file '.__DIR__.'/stubs/app.php'.' into '.getcwd().'/config/app.php</info>'); |
|
114 | - copy(__DIR__.'/stubs/app.php', getcwd().'/config/app.php'); |
|
113 | + $output->writeln('<info>Copying file ' . __DIR__ . '/stubs/app.php' . ' into ' . getcwd() . '/config/app.php</info>'); |
|
114 | + copy(__DIR__ . '/stubs/app.php', getcwd() . '/config/app.php'); |
|
115 | 115 | |
116 | 116 | $this->useVendorPublish ? $this->publishWithVendor($output) : $this->publish($output); |
117 | 117 | } |
@@ -123,8 +123,8 @@ discard block |
||
123 | 123 | */ |
124 | 124 | private function findComposer() |
125 | 125 | { |
126 | - if (file_exists(getcwd().'/composer.phar')) { |
|
127 | - return '"'.PHP_BINARY.'" composer.phar"'; |
|
126 | + if (file_exists(getcwd() . '/composer.phar')) { |
|
127 | + return '"' . PHP_BINARY . '" composer.phar"'; |
|
128 | 128 | } |
129 | 129 | |
130 | 130 | return 'composer'; |
@@ -85,8 +85,8 @@ |
||
85 | 85 | /** |
86 | 86 | * Test if file has content. |
87 | 87 | * |
88 | - * @param $file |
|
89 | - * @param $content |
|
88 | + * @param string $file |
|
89 | + * @param string $content |
|
90 | 90 | * @return bool |
91 | 91 | */ |
92 | 92 | private function fileHasContent($file, $content) |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | $command = $application->find('install'); |
23 | 23 | $commandTester = new CommandTester($command); |
24 | 24 | $commandTester->execute([ |
25 | - 'command' => $command->getName(). |
|
25 | + 'command' => $command->getName() . |
|
26 | 26 | '--force', |
27 | 27 | ]); |
28 | 28 | |
@@ -91,6 +91,6 @@ discard block |
||
91 | 91 | */ |
92 | 92 | private function fileHasContent($file, $content) |
93 | 93 | { |
94 | - return strpos(file_get_contents(getcwd().$file), $content) != false; |
|
94 | + return strpos(file_get_contents(getcwd() . $file), $content) != false; |
|
95 | 95 | } |
96 | 96 | } |
@@ -1,3 +1,3 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require __DIR__.'/../vendor/autoload.php'; |
|
3 | +require __DIR__ . '/../vendor/autoload.php'; |