@@ -88,7 +88,7 @@ |
||
| 88 | 88 | */ |
| 89 | 89 | public function messageCallback(OutputInterface $output) |
| 90 | 90 | { |
| 91 | - return function ($code, $message = '', $itemsCount = 0, $itemsMax = 0) use ($output) { |
|
| 91 | + return function($code, $message = '', $itemsCount = 0, $itemsMax = 0) use ($output) { |
|
| 92 | 92 | if ($this->quiet) { |
| 93 | 93 | return; |
| 94 | 94 | } else { |
@@ -88,7 +88,6 @@ |
||
| 88 | 88 | * |
| 89 | 89 | * @param OutputInterface $output |
| 90 | 90 | * @param array $config |
| 91 | - * @param array $options |
|
| 92 | 91 | * |
| 93 | 92 | * @return Builder |
| 94 | 93 | */ |
@@ -47,15 +47,15 @@ |
||
| 47 | 47 | exit(0); |
| 48 | 48 | } |
| 49 | 49 | }*/ |
| 50 | - $root = __DIR__ . '/../../'; |
|
| 50 | + $root = __DIR__.'/../../'; |
|
| 51 | 51 | if (Plateform::isPhar()) { |
| 52 | - $root = Plateform::getPharPath() . '/'; |
|
| 52 | + $root = Plateform::getPharPath().'/'; |
|
| 53 | 53 | } |
| 54 | 54 | $output->writeln('<info>Creating a new website...</info>'); |
| 55 | - $this->fs->copy($root . 'res/skeleton/config.yml', $this->getPath() . '/' . self::CONFIG_FILE, true); |
|
| 56 | - $this->fs->mirror($root . 'res/skeleton/content', $this->getPath() . '/content'); |
|
| 57 | - $this->fs->mirror($root . 'res/skeleton/layouts', $this->getPath() . '/layouts'); |
|
| 58 | - $this->fs->mirror($root . 'res/skeleton/static', $this->getPath() . '/static'); |
|
| 55 | + $this->fs->copy($root.'res/skeleton/config.yml', $this->getPath().'/'.self::CONFIG_FILE, true); |
|
| 56 | + $this->fs->mirror($root.'res/skeleton/content', $this->getPath().'/content'); |
|
| 57 | + $this->fs->mirror($root.'res/skeleton/layouts', $this->getPath().'/layouts'); |
|
| 58 | + $this->fs->mirror($root.'res/skeleton/static', $this->getPath().'/static'); |
|
| 59 | 59 | $output->writeln('Done!'); |
| 60 | 60 | } catch (\Exception $e) { |
| 61 | 61 | throw new \Exception(sprintf($e->getMessage())); |