@@ -150,9 +150,9 @@ discard block |
||
150 | 150 | { |
151 | 151 | $documentFolderObject = DocumentFolderFactory::createDocumentFolderFromPostValues($postValues); |
152 | 152 | if ($postValues['path'] === '/') { |
153 | - $documentFolderObject->path = $postValues['path'] . $documentFolderObject->slug; |
|
153 | + $documentFolderObject->path = $postValues['path'].$documentFolderObject->slug; |
|
154 | 154 | } else { |
155 | - $documentFolderObject->path = $postValues['path'] . '/' . $documentFolderObject->slug; |
|
155 | + $documentFolderObject->path = $postValues['path'].'/'.$documentFolderObject->slug; |
|
156 | 156 | } |
157 | 157 | $this->repository->saveDocument($documentFolderObject, 'published'); |
158 | 158 | $this->repository->saveDocument($documentFolderObject, 'unpublished'); |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | */ |
168 | 168 | public function deleteDocumentFolderBySlug($slug) |
169 | 169 | { |
170 | - $path = '/' . $slug; |
|
170 | + $path = '/'.$slug; |
|
171 | 171 | $this->repository->deleteDocumentByPath($path, 'published'); |
172 | 172 | $this->repository->deleteDocumentByPath($path, 'unpublished'); |
173 | 173 | $this->repository->cleanPublishedDeletedDocuments(); |
@@ -175,13 +175,13 @@ discard block |
||
175 | 175 | |
176 | 176 | public function publishDocumentBySlug($slug) |
177 | 177 | { |
178 | - $path = '/' . $slug; |
|
178 | + $path = '/'.$slug; |
|
179 | 179 | $this->repository->publishDocumentByPath($path); |
180 | 180 | } |
181 | 181 | |
182 | 182 | public function unpublishDocumentBySlug($slug) |
183 | 183 | { |
184 | - $path = '/' . $slug; |
|
184 | + $path = '/'.$slug; |
|
185 | 185 | $this->repository->unpublishDocumentByPath($path); |
186 | 186 | } |
187 | 187 | |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | */ |
196 | 196 | public function getDocumentFolderBySlug($slug) |
197 | 197 | { |
198 | - $path = '/' . $slug; |
|
198 | + $path = '/'.$slug; |
|
199 | 199 | |
200 | 200 | return $this->repository->getDocumentByPath($path); |
201 | 201 | } |