Passed
Push — develop ( 18e359...ca5759 )
by Jens
02:44
created
src/storage/Storage.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -150,9 +150,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.