@@ -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 | */ |
@@ -97,8 +97,8 @@ discard block |
||
97 | 97 | } else { |
98 | 98 | $llum = $this->findLlum(); |
99 | 99 | $package = $this->getPackageName(); |
100 | - $output->writeln('<info>'.$llum.' package '.$this->getDevOption()." $package".'</info>'); |
|
101 | - passthru($llum.' package '.$this->getDevOption().' '.$package); |
|
100 | + $output->writeln('<info>' . $llum . ' package ' . $this->getDevOption() . " $package" . '</info>'); |
|
101 | + passthru($llum . ' package ' . $this->getDevOption() . ' ' . $package); |
|
102 | 102 | } |
103 | 103 | } |
104 | 104 | |
@@ -123,17 +123,17 @@ discard block |
||
123 | 123 | { |
124 | 124 | $composer = $this->findComposer(); |
125 | 125 | |
126 | - $process = new Process($composer.' require acacha/admin-lte-template-laravel'.$this->getDevSuffix(), |
|
126 | + $process = new Process($composer . ' require acacha/admin-lte-template-laravel' . $this->getDevSuffix(), |
|
127 | 127 | null, null, null, null); |
128 | 128 | |
129 | 129 | $output->writeln( |
130 | - '<info>Running composer require acacha/admin-lte-template-laravel'.$this->getDevSuffix().'</info>'); |
|
131 | - $process->run(function ($type, $line) use ($output) { |
|
130 | + '<info>Running composer require acacha/admin-lte-template-laravel' . $this->getDevSuffix() . '</info>'); |
|
131 | + $process->run(function($type, $line) use ($output) { |
|
132 | 132 | $output->write($line); |
133 | 133 | }); |
134 | 134 | |
135 | - $output->writeln('<info>Copying file '.__DIR__.'/stubs/app.php'.' into '.getcwd().'/config/app.php</info>'); |
|
136 | - copy(__DIR__.'/stubs/app.php', getcwd().'/config/app.php'); |
|
135 | + $output->writeln('<info>Copying file ' . __DIR__ . '/stubs/app.php' . ' into ' . getcwd() . '/config/app.php</info>'); |
|
136 | + copy(__DIR__ . '/stubs/app.php', getcwd() . '/config/app.php'); |
|
137 | 137 | |
138 | 138 | $this->useVendorPublish ? $this->publishWithVendor($output) : $this->publish($output); |
139 | 139 | } |
@@ -145,8 +145,8 @@ discard block |
||
145 | 145 | */ |
146 | 146 | private function findComposer() |
147 | 147 | { |
148 | - if (file_exists(getcwd().'/composer.phar')) { |
|
149 | - return '"'.PHP_BINARY.'" composer.phar"'; |
|
148 | + if (file_exists(getcwd() . '/composer.phar')) { |
|
149 | + return '"' . PHP_BINARY . '" composer.phar"'; |
|
150 | 150 | } |
151 | 151 | |
152 | 152 | return 'composer'; |
@@ -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 | /** |