File tree 2 files changed +13
-10
lines changed
2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -141,13 +141,15 @@ private function compile(string $name): BuildCommand
141
141
/** @phpstan-ignore-next-line This is an instance of `ConsoleOutputInterface` */
142
142
$ section = tap ($ this ->originalOutput ->section ())->write ('' );
143
143
144
- $ progressBar = tap (
145
- new ProgressBar (
146
- $ this ->output ->getVerbosity () > OutputInterface::VERBOSITY_NORMAL ? new NullOutput : $ section , 25
147
- )
148
- )->setProgressCharacter ("\xF0\x9F\x8D\xBA" );
144
+ $ progressBar = new ProgressBar (
145
+ $ this ->output ->getVerbosity () > OutputInterface::VERBOSITY_NORMAL ? new NullOutput : $ section , 25
146
+ );
147
+
148
+ $ progressBar ->setProgressCharacter ("\xF0\x9F\x8D\xBA" );
149
+
150
+ $ process ->start ();
149
151
150
- foreach (tap ( $ process)-> start () as $ type => $ data ) {
152
+ foreach ($ process as $ type => $ data ) {
151
153
$ progressBar ->advance ();
152
154
153
155
if ($ this ->output ->getVerbosity () > OutputInterface::VERBOSITY_NORMAL ) {
Original file line number Diff line number Diff line change 14
14
namespace LaravelZero \Framework \Commands ;
15
15
16
16
use LaravelZero \Framework \Components ;
17
+ use LaravelZero \Framework \Components \AbstractInstaller ;
17
18
use Symfony \Component \Console \Input \ArrayInput ;
18
19
19
20
final class InstallCommand extends Command
@@ -46,9 +47,6 @@ final class InstallCommand extends Command
46
47
'view ' => Components \View \Installer::class,
47
48
];
48
49
49
- /**
50
- * {@inheritdoc}
51
- */
52
50
public function handle ()
53
51
{
54
52
$ title = 'Laravel Zero - Component installer ' ;
@@ -63,7 +61,10 @@ public function handle()
63
61
}
64
62
65
63
if ($ option !== null && ! empty ($ this ->componentInstallers [$ option ])) {
66
- $ command = tap ($ this ->app [$ this ->componentInstallers [$ option ]])->setLaravel ($ this ->app );
64
+ /** @var AbstractInstaller $command */
65
+ $ command = $ this ->app [$ this ->componentInstallers [$ option ]];
66
+
67
+ $ command ->setLaravel ($ this ->app );
67
68
68
69
$ command ->setApplication ($ this ->getApplication ());
69
70
You can’t perform that action at this time.
0 commit comments