@@ -179,7 +179,7 @@ |
||
| 179 | 179 | */ |
| 180 | 180 | public function messageCallback(OutputInterface $output) |
| 181 | 181 | { |
| 182 | - return function ($code, $message = '', $itemsCount = 0, $itemsMax = 0) use ($output) { |
|
| 182 | + return function($code, $message = '', $itemsCount = 0, $itemsMax = 0) use ($output) { |
|
| 183 | 183 | if (strpos($code, '_PROGRESS') !== false) { |
| 184 | 184 | if ($output->isVerbose()) { |
| 185 | 185 | if ($itemsCount > 0) { |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | $output->writeln(sprintf('<info>%s/</info>', $contentDir)); |
| 50 | 50 | $pages = $this->getPagesTree($output, $contentDir); |
| 51 | 51 | if (!Plateform::isWindows()) { |
| 52 | - $unicodeTreePrefix = function (RecursiveTreeIterator $tree) { |
|
| 52 | + $unicodeTreePrefix = function(RecursiveTreeIterator $tree) { |
|
| 53 | 53 | $prefixParts = [ |
| 54 | 54 | RecursiveTreeIterator::PREFIX_LEFT => ' ', |
| 55 | 55 | RecursiveTreeIterator::PREFIX_MID_HAS_NEXT => '│ ', |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | $data = Finder::create() |
| 38 | 38 | ->files() |
| 39 | 39 | ->in($this->builder->getConfig()->getDataPath()) |
| 40 | - ->name('/\.(' . implode('|', $this->builder->getConfig()->get('data.ext')) . ')$/') |
|
| 40 | + ->name('/\.('.implode('|', $this->builder->getConfig()->get('data.ext')).')$/') |
|
| 41 | 41 | ->sortByName(true); |
| 42 | 42 | |
| 43 | 43 | $count = 0; |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | foreach ($data as $file) { |
| 48 | 48 | $count++; |
| 49 | 49 | set_error_handler( |
| 50 | - function ($severity, $message, $file, $line) { |
|
| 50 | + function($severity, $message, $file, $line) { |
|
| 51 | 51 | throw new \ErrorException($message, 0, $severity, $file, $line, null); |
| 52 | 52 | } |
| 53 | 53 | ); |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | $message = sprintf('"%s" loaded', $file->getBasename()); |
| 58 | 58 | $dataArray = array_merge_recursive( |
| 59 | 59 | $this->builder->getData(), |
| 60 | - [$file->getBasename('.' . $file->getExtension()) => $dataArray] |
|
| 60 | + [$file->getBasename('.'.$file->getExtension()) => $dataArray] |
|
| 61 | 61 | ); |
| 62 | 62 | $this->builder->setData($dataArray); |
| 63 | 63 | |