Passed
Push — develop ( b69567...61a0d8 )
by Jens
04:03
created
cloudcontrol/library/components/DocumentComponent.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 			if (isset($this->parameters['document'])) {
84 84
 				$this->runByDocumentParameter();
85 85
 			} else {
86
-				throw new \Exception('When not using a regex, you need to set the parameter `document` with the path to the document in this sitemap item: ' . $this->matchedSitemapItem->title);
86
+				throw new \Exception('When not using a regex, you need to set the parameter `document` with the path to the document in this sitemap item: '.$this->matchedSitemapItem->title);
87 87
 			}
88 88
 		}
89 89
 
@@ -100,9 +100,9 @@  discard block
 block discarded – undo
100 100
 				$relativeDocumentUri = current($this->matchedSitemapItem->matches[1]);
101 101
 				if (isset($this->parameters['folder'])) {
102 102
 					if (substr($this->parameters['folder'], -1) !== '/') {
103
-						$this->parameters['folder'] = $this->parameters['folder'] . '/';
103
+						$this->parameters['folder'] = $this->parameters['folder'].'/';
104 104
 					}
105
-					$relativeDocumentUri = $this->parameters['folder'] . $relativeDocumentUri;
105
+					$relativeDocumentUri = $this->parameters['folder'].$relativeDocumentUri;
106 106
 				}
107 107
 
108 108
 				$document = $this->storage->getDocumentBySlug($relativeDocumentUri);
Please login to merge, or discard this patch.