argument('path') ?? '/'; $comment = sprintf('Validating %s', $path); if ($this->option('recursive')) { $comment .= ' and all sub-bundles'; } $this->line($comment); $this->output->write('Collecting bundles... '); if ($this->option('recursive')) { $bundles = Bundle::findBundles($this->sourceDisk, $path, true); } else { $bundles = [new Bundle($path, $this->sourceDisk)]; } $this->bundles = $bundles; $this->info('OK'); return $this; } }