@@ -1,3 +1,3 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require __DIR__.'/../vendor/autoload.php'; |
|
3 | +require __DIR__ . '/../vendor/autoload.php'; |
@@ -90,6 +90,6 @@ |
||
90 | 90 | */ |
91 | 91 | private function fileHasContent($file, $content) |
92 | 92 | { |
93 | - return strpos(file_get_contents(getcwd().$file), $content) != false; |
|
93 | + return strpos(file_get_contents(getcwd() . $file), $content) != false; |
|
94 | 94 | } |
95 | 95 | } |
@@ -83,8 +83,8 @@ |
||
83 | 83 | /** |
84 | 84 | * Test if file has content. |
85 | 85 | * |
86 | - * @param $file |
|
87 | - * @param $content |
|
86 | + * @param string $file |
|
87 | + * @param string $content |
|
88 | 88 | * |
89 | 89 | * @return bool |
90 | 90 | */ |
@@ -48,8 +48,8 @@ |
||
48 | 48 | { |
49 | 49 | $llum = $this->findLlum(); |
50 | 50 | $package = $this->getPackageName(); |
51 | - $output->writeln('<info>'.$llum.' package '.$this->getDevOption()."$package".'</info>'); |
|
52 | - passthru($llum.' package '.$this->getDevOption().' '.$package); |
|
51 | + $output->writeln('<info>' . $llum . ' package ' . $this->getDevOption() . "$package" . '</info>'); |
|
52 | + passthru($llum . ' package ' . $this->getDevOption() . ' ' . $package); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
@@ -91,8 +91,8 @@ discard block |
||
91 | 91 | } else { |
92 | 92 | $llum = str_replace(' ', '\ ', $this->findLlum()); |
93 | 93 | $package = $this->getPackageName(); |
94 | - $output->writeln('<info>'.$llum.' package '.$this->getDevOption()."$package".'</info>'); |
|
95 | - passthru($llum.' package '.$this->getDevOption().' '.$package); |
|
94 | + $output->writeln('<info>' . $llum . ' package ' . $this->getDevOption() . "$package" . '</info>'); |
|
95 | + passthru($llum . ' package ' . $this->getDevOption() . ' ' . $package); |
|
96 | 96 | } |
97 | 97 | } |
98 | 98 | |
@@ -117,17 +117,17 @@ discard block |
||
117 | 117 | { |
118 | 118 | $composer = $this->findComposer(); |
119 | 119 | |
120 | - $process = new Process($composer.' require acacha/admin-lte-template-laravel'.$this->getDevSuffix(), |
|
120 | + $process = new Process($composer . ' require acacha/admin-lte-template-laravel' . $this->getDevSuffix(), |
|
121 | 121 | null, null, null, null); |
122 | 122 | |
123 | 123 | $output->writeln( |
124 | - '<info>Running composer require acacha/admin-lte-template-laravel'.$this->getDevSuffix().'</info>'); |
|
125 | - $process->run(function ($type, $line) use ($output) { |
|
124 | + '<info>Running composer require acacha/admin-lte-template-laravel' . $this->getDevSuffix() . '</info>'); |
|
125 | + $process->run(function($type, $line) use ($output) { |
|
126 | 126 | $output->write($line); |
127 | 127 | }); |
128 | 128 | |
129 | - $output->writeln('<info>Copying file '.__DIR__.'/stubs/app.php'.' into '.getcwd().'/config/app.php</info>'); |
|
130 | - copy(__DIR__.'/stubs/app.php', getcwd().'/config/app.php'); |
|
129 | + $output->writeln('<info>Copying file ' . __DIR__ . '/stubs/app.php' . ' into ' . getcwd() . '/config/app.php</info>'); |
|
130 | + copy(__DIR__ . '/stubs/app.php', getcwd() . '/config/app.php'); |
|
131 | 131 | |
132 | 132 | $this->useVendorPublish ? $this->publishWithVendor($output) : $this->publish($output); |
133 | 133 | } |
@@ -139,8 +139,8 @@ discard block |
||
139 | 139 | */ |
140 | 140 | private function findComposer() |
141 | 141 | { |
142 | - if (file_exists(getcwd().'/composer.phar')) { |
|
143 | - return '"'.PHP_BINARY.'" composer.phar"'; |
|
142 | + if (file_exists(getcwd() . '/composer.phar')) { |
|
143 | + return '"' . PHP_BINARY . '" composer.phar"'; |
|
144 | 144 | } |
145 | 145 | |
146 | 146 | return 'composer'; |