@@ -26,7 +26,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -61,7 +61,7 @@ |
||
| 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) { |