Completed
Push — master ( df1638...a8ab16 )
by Mathieu
22s queued 15s
created
Blog/Factory/LibraryFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     public function __construct($postsDirectory, LibraryRegisterInterface $libraryRegister)
27 27
     {
28 28
         if (substr($postsDirectory, -1) !== '/') {
29
-            $postsDirectory = $postsDirectory . '/';
29
+            $postsDirectory = $postsDirectory.'/';
30 30
         }
31 31
 
32 32
         $this->validateDirectory($postsDirectory);
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     private function buildPost($filename)
71 71
     {
72
-        $filepath    = $this->postsDirectory . $filename;
72
+        $filepath    = $this->postsDirectory.$filename;
73 73
         $publishDate = $this->computeFilePublishDate($filepath);
74 74
         $name        = basename($filename, '.md');
75 75
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      */
87 87
     private function buildPostFromRegisterEntry($filename, RegisterEntry $entry)
88 88
     {
89
-        $filepath = $this->postsDirectory . $filename;
89
+        $filepath = $this->postsDirectory.$filename;
90 90
 
91 91
         if (null !== $entry->getPublishDate()) {
92 92
             $publishDate = $entry->getPublishDate();
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
         if (false === $creationTimestamp) {
159 159
             throw new \InvalidArgumentException("Could not get creation date of file $filepath");
160 160
         }
161
-        $creationDateTime = new \DateTime('@' . $creationTimestamp);
161
+        $creationDateTime = new \DateTime('@'.$creationTimestamp);
162 162
 
163 163
         return $creationDateTime->format('Y-m-d');
164 164
     }
Please login to merge, or discard this patch.
Blog/Register/YamlLibraryRegister.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
             throw new \InvalidArgumentException("File $registerFilepath does not exist");
62 62
         }
63 63
 
64
-        $yamlPattern = '#' . '(.*)\.yml$' . '#';
64
+        $yamlPattern = '#'.'(.*)\.yml$'.'#';
65 65
 
66 66
         $isAYamlFile = preg_match($yamlPattern, $registerFilepath);
67 67
         if (false === $isAYamlFile) {
Please login to merge, or discard this patch.