Completed
Push — feature-data-files ( f34d72 )
by Arnaud
03:53
created
src/Command/Command.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Command/ShowContent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
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 => '│ ',
Please login to merge, or discard this patch.
src/Step/DataLoad.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.