Completed
Push — feature-newpage-date-prefix ( 5ec592 )
by Arnaud
01:55
created
src/Command/NewPage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,11 +66,11 @@  discard block
 block discarded – undo
66 66
             $fileRelativePath = sprintf(
67 67
                 '%s/%s%s%s.md',
68 68
                 $this->getBuilder($output)->getConfig()->get('content.dir'),
69
-                !$dirname ?: $dirname . '/',
69
+                !$dirname ?: $dirname.'/',
70 70
                 $datePrefix,
71 71
                 $filename
72 72
             );
73
-            $filePath = $this->getPath() . '/' . $fileRelativePath;
73
+            $filePath = $this->getPath().'/'.$fileRelativePath;
74 74
 
75 75
             // file already exists?
76 76
             if ($this->fs->exists($filePath) && !$force) {
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             $fileContent = str_replace(
89 89
                 ['%title%', '%date%'],
90 90
                 [$title, $date],
91
-                $this->findModel(sprintf('%s%s', !$dirname ?: $dirname . '/', $filename))
91
+                $this->findModel(sprintf('%s%s', !$dirname ?: $dirname.'/', $filename))
92 92
             );
93 93
             $this->fs->dumpFile($filePath, $fileContent);
94 94
             $output->writeln(sprintf('File "%s" created.', $fileRelativePath));
Please login to merge, or discard this patch.