Passed
Push — develop ( b69567...61a0d8 )
by Jens
04:03
created
cloudcontrol/library/components/LanguageComponent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
 
97 97
         if ($this->forceRedirect === true) {
98 98
             if (substr($request::$relativeUri, 0, 2) !== $lang && $lang !== $this->defaultLanguage) { // if default language detected, no redirect
99
-                header('Location: ' . $request::$subfolders . $lang . '/' . $request::$relativeUri);
99
+                header('Location: '.$request::$subfolders.$lang.'/'.$request::$relativeUri);
100 100
                 exit;
101 101
             }
102 102
         }
Please login to merge, or discard this patch.
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.