Passed
Push — develop ( 6305d1...602320 )
by Jens
02:48
created
cloudcontrol/library/components/DocumentComponent.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 				if (isset($this->parameters['document'])) {
21 21
 					$this->parameters['document'] = $storage->getDocumentBySlug($this->parameters['document']);
22 22
 				} else {
23
-					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);
23
+					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);
24 24
 				}
25 25
 			} else {
26 26
 				if (isset($this->parameters['document'])) {
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
 					$relativeDocumentUri = current($this->matchedSitemapItem->matches[1]);
30 30
 					if (isset($this->parameters['folder'])) {
31 31
 						if (substr($this->parameters['folder'], -1) !== '/') {
32
-							$this->parameters['folder'] = $this->parameters['folder'] . '/';
32
+							$this->parameters['folder'] = $this->parameters['folder'].'/';
33 33
 						}
34
-						$relativeDocumentUri = $this->parameters['folder'] . $relativeDocumentUri;
34
+						$relativeDocumentUri = $this->parameters['folder'].$relativeDocumentUri;
35 35
 					}
36 36
 
37 37
 					$document = $storage->getDocumentBySlug($relativeDocumentUri);
Please login to merge, or discard this patch.
cloudcontrol/library/cc/Application.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -65,12 +65,12 @@  discard block
 block discarded – undo
65 65
 		 */
66 66
 		private function config()
67 67
 		{
68
-			$configPath = __DIR__ . '/../../config.json';
68
+			$configPath = __DIR__.'/../../config.json';
69 69
 			if (realpath($configPath) !== false) {
70 70
 				$json = file_get_contents($configPath);
71 71
 				$this->config = json_decode($json);
72 72
 			} else {
73
-				throw new \Exception('Couldn\'t find config file in path ' . $configPath);
73
+				throw new \Exception('Couldn\'t find config file in path '.$configPath);
74 74
 			}
75 75
 		}
76 76
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 		private function sitemapMatching($request)
94 94
 		{
95 95
 			$sitemap = $this->storage->getSitemap();
96
-			$relativeUri = '/' . $request::$relativeUri;
96
+			$relativeUri = '/'.$request::$relativeUri;
97 97
 
98 98
 			foreach ($sitemap as $sitemapItem) {
99 99
 				if ($sitemapItem->regex) {
@@ -156,17 +156,17 @@  discard block
 block discarded – undo
156 156
 		 * @return mixed
157 157
 		 * @throws \Exception
158 158
 		 */
159
-		private function getComponentObject($class='', $template='', $parameters=array(), $matchedSitemapItem)
159
+		private function getComponentObject($class = '', $template = '', $parameters = array(), $matchedSitemapItem)
160 160
 		{
161
-			$libraryComponentName = '\\library\\components\\' . $class;
162
-			$userComponentName = '\\components\\' . $class;
161
+			$libraryComponentName = '\\library\\components\\'.$class;
162
+			$userComponentName = '\\components\\'.$class;
163 163
 			
164 164
 			if (\autoLoad($libraryComponentName, false)) {
165 165
 				$component = new $libraryComponentName($template, $this->request, $parameters, $matchedSitemapItem);
166 166
 			} elseif (\autoLoad($userComponentName, false)) {
167 167
 				$component = new $userComponentName($template, $this->request, $parameters, $matchedSitemapItem);
168 168
 			} else {
169
-				throw new \Exception('Could not load component ' . $class);
169
+				throw new \Exception('Could not load component '.$class);
170 170
 			}
171 171
 			
172 172
 			if (!$component instanceof Component) {
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
 		{
194 194
 			foreach ($this->matchedSitemapItems as $sitemapItem) {
195 195
 				header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time() + (60 * 60 * 24 * 2))); // 2 days
196
-				header("Cache-Control: max-age=" . (60 * 60 * 24 * 2));
196
+				header("Cache-Control: max-age=".(60 * 60 * 24 * 2));
197 197
 				$sitemapItem->object->render();
198 198
 				ob_clean();
199 199
 				echo $sitemapItem->object->get();
Please login to merge, or discard this patch.
cloudcontrol/library/components/BaseComponent.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 		 * @param array   $parameters
41 41
 		 * @param         $matchedSitemapItem
42 42
 		 */
43
-		public function __construct($template='', Request $request, $parameters=array(), $matchedSitemapItem)
43
+		public function __construct($template = '', Request $request, $parameters = array(), $matchedSitemapItem)
44 44
 		{
45 45
 			$this->template = $template;
46 46
 			$this->request = $request;
@@ -87,9 +87,9 @@  discard block
 block discarded – undo
87 87
 		 * @return string
88 88
 		 * @throws \Exception
89 89
 		 */
90
-		public function renderTemplate($template='', $obClean = true)
90
+		public function renderTemplate($template = '', $obClean = true)
91 91
 		{
92
-			$templatePath = __DIR__ . '/../../templates/' . $template . '.php';
92
+			$templatePath = __DIR__.'/../../templates/'.$template.'.php';
93 93
 			if (realpath($templatePath) !== false) {
94 94
 				if ($obClean) {
95 95
 					ob_clean();
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 				return ob_get_contents();
101 101
 			} else {
102 102
 				if ($template !== null) { // If template is null, its a application component, which doesnt have a template
103
-					throw new \Exception('Couldnt find template ' . $templatePath);
103
+					throw new \Exception('Couldnt find template '.$templatePath);
104 104
 				}
105 105
 			}
106 106
 		}
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 		 * @return string
116 116
 		 * @throws \Exception
117 117
 		 */
118
-		public function includeTemplate($template='', $parameters = array())
118
+		public function includeTemplate($template = '', $parameters = array())
119 119
 		{
120 120
 			if (is_array($parameters)) {
121 121
 				foreach ($parameters as $name => $value) {
Please login to merge, or discard this patch.
cloudcontrol/library/components/CmsComponent.php 1 patch
Spacing   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 				$this->parameters['mainNavClass'] = 'documents';
125 125
 				if (isset($request::$post['title'], $request::$post['path'])) {
126 126
 					$this->storage->addDocumentFolder($request::$post);
127
-					header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/documents');
127
+					header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/documents');
128 128
 					exit;
129 129
 				}
130 130
 			} elseif ($relativeCmsUri == '/documents/new-document' && isset($request::$get['path']) && in_array('documents', $userRights)) {
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 				if (isset($request::$get['documentType'])) {
135 135
 					if (isset($request::$post['title'], $request::$get['documentType'], $request::$get['path'])) {
136 136
 						$this->storage->addDocument($request::$post);
137
-						header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/documents');
137
+						header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/documents');
138 138
 						exit;
139 139
 					}
140 140
 					$this->parameters['documentType'] = $this->storage->getDocumentTypeBySlug($request::$get['documentType'], true);
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 				$this->parameters['smallestImage'] = $this->storage->getSmallestImageSet()->slug;
149 149
 				if (isset($request::$post['title'], $request::$get['slug'])) {
150 150
 					$this->storage->saveDocument($request::$post);
151
-					header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/documents');
151
+					header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/documents');
152 152
 					exit;
153 153
 				}
154 154
 				$this->parameters['document'] = $this->storage->getDocumentBySlug($request::$get['slug']);
@@ -179,11 +179,11 @@  discard block
 block discarded – undo
179 179
 				array_pop($path);
180 180
 				$path = implode('/', $path);
181 181
 
182
-				$request::$get['path'] = '/' . $path;
182
+				$request::$get['path'] = '/'.$path;
183 183
 
184 184
 				if (isset($request::$post['title'], $request::$post['content'])) {
185 185
 					$this->storage->saveDocumentFolder($request::$post);
186
-					header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/documents');
186
+					header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/documents');
187 187
 					exit;
188 188
 				}
189 189
 
@@ -191,11 +191,11 @@  discard block
 block discarded – undo
191 191
 				$this->parameters['folder'] = $folder;
192 192
 			} else if ($relativeCmsUri == '/documents/delete-document' && isset($request::$get['slug']) && in_array('documents', $userRights)) {
193 193
 				$this->storage->deleteDocumentBySlug($request::$get['slug']);
194
-				header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/documents');
194
+				header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/documents');
195 195
 				exit;
196 196
 			} else if ($relativeCmsUri == '/documents/delete-folder' && isset($request::$get['slug']) && in_array('documents', $userRights)) {
197 197
 				$this->storage->deleteDocumentFolderBySlug($request::$get['slug']);
198
-				header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/documents');
198
+				header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/documents');
199 199
 				exit;
200 200
 			} elseif ($relativeCmsUri == '/sitemap' && in_array('sitemap', $userRights)) {
201 201
 				$template = 'cms/sitemap';
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 				$this->parameters['mainNavClass'] = 'sitemap';
210 210
 				if (isset($request::$post['title'], $request::$post['template'], $request::$post['component'])) {
211 211
 					$this->storage->addSitemapItem($request::$post);
212
-					header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/sitemap');
212
+					header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/sitemap');
213 213
 					exit;
214 214
 				}
215 215
 			} elseif ($relativeCmsUri == '/sitemap/edit' && isset($request::$get['slug']) && in_array('sitemap', $userRights)) {
@@ -218,13 +218,13 @@  discard block
 block discarded – undo
218 218
 				$sitemapItem = $this->storage->getSitemapItemBySlug($request::$get['slug']);
219 219
 				if (isset($request::$post['title'], $request::$post['template'], $request::$post['component'])) {
220 220
 					$this->storage->saveSitemapItem($request::$get['slug'], $request::$post);
221
-					header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/sitemap');
221
+					header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/sitemap');
222 222
 					exit;
223 223
 				}
224 224
 				$this->parameters['sitemapItem'] = $sitemapItem;
225 225
 			} elseif ($relativeCmsUri == '/sitemap/delete' && isset($request::$get['slug']) && in_array('sitemap', $userRights)) {
226 226
 				$this->storage->deleteSitemapItemBySlug($request::$get['slug']);
227
-				header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/sitemap');
227
+				header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/sitemap');
228 228
 				exit;
229 229
 			} elseif ($relativeCmsUri == '/images' && in_array('images', $userRights)) {
230 230
 				$template = 'cms/images';
@@ -239,12 +239,12 @@  discard block
 block discarded – undo
239 239
 				$this->parameters['mainNavClass'] = 'images';
240 240
 				if (isset($_FILES['file'])) {
241 241
 					$this->storage->addImage($_FILES['file']);
242
-					header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/images');
242
+					header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/images');
243 243
 					exit;
244 244
 				}
245 245
 			} elseif ($relativeCmsUri == '/images/delete' && isset($request::$get['file']) && in_array('images', $userRights)) {
246 246
 				$this->storage->deleteImageByName($request::$get['file']);
247
-				header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/images');
247
+				header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/images');
248 248
 				exit;
249 249
 			} elseif ($relativeCmsUri == '/images/show' && isset($request::$get['file']) && in_array('images', $userRights)) {
250 250
 				$template = 'cms/images/show';
@@ -262,30 +262,30 @@  discard block
 block discarded – undo
262 262
 				$this->parameters['mainNavClass'] = 'files';
263 263
 				if (isset($_FILES['file'])) {
264 264
 					$this->storage->addFile($_FILES['file']);
265
-					header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/files');
265
+					header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/files');
266 266
 					exit;
267 267
 				}
268 268
 			} elseif ($relativeCmsUri == '/files/get' && isset($request::$get['file']) && in_array('files', $userRights)) {
269 269
 				$file = $this->storage->getFileByName($request::$get['file']);
270
-				$path = realpath(__DIR__ . '/../../www/files/');
271
-				$quoted = sprintf('"%s"', addcslashes(basename($path . '/' . $file->file), '"\\'));
272
-				$size   = filesize($path . '/' . $file->file);
270
+				$path = realpath(__DIR__.'/../../www/files/');
271
+				$quoted = sprintf('"%s"', addcslashes(basename($path.'/'.$file->file), '"\\'));
272
+				$size   = filesize($path.'/'.$file->file);
273 273
 
274 274
 				header('Content-Description: File Transfer');
275
-				header('Content-Type: ' . $file->type);
276
-				header('Content-Disposition: attachment; filename=' . $quoted);
275
+				header('Content-Type: '.$file->type);
276
+				header('Content-Disposition: attachment; filename='.$quoted);
277 277
 				header('Content-Transfer-Encoding: binary');
278 278
 				header('Connection: Keep-Alive');
279 279
 				header('Expires: 0');
280 280
 				header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
281 281
 				header('Pragma: public');
282
-				header('Content-Length: ' . $size);
282
+				header('Content-Length: '.$size);
283 283
 
284
-				readfile($path . '/' . $file->file);
284
+				readfile($path.'/'.$file->file);
285 285
 				exit;
286 286
 			} elseif ($relativeCmsUri == '/files/delete' && isset($request::$get['file']) && in_array('files', $userRights)) {
287 287
 				$this->storage->deleteFileByName($request::$get['file']);
288
-				header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/files');
288
+				header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/files');
289 289
 				exit;
290 290
 			} elseif ($relativeCmsUri == '/configuration' && in_array('configuration', $userRights)) {
291 291
 				$template = 'cms/configuration';
@@ -299,12 +299,12 @@  discard block
 block discarded – undo
299 299
 				$this->parameters['mainNavClass'] = 'configuration';
300 300
 				if (isset($_POST['username'])) {
301 301
 					$this->storage->addUser($request::$post);
302
-					header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/configuration/users');
302
+					header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/configuration/users');
303 303
 					exit;
304 304
 				}
305 305
 			} elseif ($relativeCmsUri == '/configuration/users/delete' && isset($request::$get['slug']) && in_array('configuration', $userRights)) {
306 306
 				$this->storage->deleteUserBySlug($request::$get['slug']);
307
-				header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/configuration/users');
307
+				header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/configuration/users');
308 308
 				exit;
309 309
 			} elseif ($relativeCmsUri == '/configuration/users/edit' && isset($request::$get['slug']) && in_array('configuration', $userRights)) {
310 310
 				$template = 'cms/configuration/users-form';
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
 				$this->parameters['user'] = $this->storage->getUserBySlug($request::$get['slug']);
313 313
 				if (isset($_POST['username'])) {
314 314
 					$this->storage->saveUser($request::$get['slug'], $request::$post);
315
-					header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/configuration/users');
315
+					header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/configuration/users');
316 316
 					exit;
317 317
 				}
318 318
 			} elseif ($relativeCmsUri == '/configuration/document-types' && in_array('configuration', $userRights)) {
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
 				$bricks = $this->storage->getBricks();
326 326
 				if (isset($request::$post['title'])) {
327 327
 					$this->storage->addDocumentType($request::$post);
328
-					header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/configuration/document-types');
328
+					header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/configuration/document-types');
329 329
 					exit;
330 330
 				}
331 331
 				$this->parameters['bricks'] = $bricks;
@@ -336,14 +336,14 @@  discard block
 block discarded – undo
336 336
 				$bricks = $this->storage->getBricks();
337 337
 				if (isset($request::$post['title'])) {
338 338
 					$this->storage->saveDocumentType($request::$get['slug'], $request::$post);
339
-					header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/configuration/document-types');
339
+					header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/configuration/document-types');
340 340
 					exit;
341 341
 				}
342 342
 				$this->parameters['documentType'] = $documentType;
343 343
 				$this->parameters['bricks'] = $bricks;
344 344
 			} elseif ($relativeCmsUri == '/configuration/document-types/delete' && isset($request::$get['slug']) && in_array('configuration', $userRights)) {
345 345
 				$this->storage->deleteDocumentTypeBySlug($request::$get['slug']);
346
-				header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/configuration/document-types');
346
+				header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/configuration/document-types');
347 347
 				exit;
348 348
 			} elseif ($relativeCmsUri == '/configuration/bricks' && in_array('configuration', $userRights)) {
349 349
 				$template = 'cms/configuration/bricks';
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
 				$this->parameters['mainNavClass'] = 'configuration';
355 355
 				if (isset($request::$post['title'])) {
356 356
 					$this->storage->addBrick($request::$post);
357
-					header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/configuration/bricks');
357
+					header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/configuration/bricks');
358 358
 					exit;
359 359
 				}
360 360
 			} elseif ($relativeCmsUri == '/configuration/bricks/edit' && isset($request::$get['slug']) && in_array('configuration', $userRights)) {
@@ -363,13 +363,13 @@  discard block
 block discarded – undo
363 363
 				$brick = $this->storage->getBrickBySlug($request::$get['slug']);
364 364
 				if (isset($request::$post['title'])) {
365 365
 					$this->storage->saveBrick($request::$get['slug'], $request::$post);
366
-					header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/configuration/bricks');
366
+					header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/configuration/bricks');
367 367
 					exit;
368 368
 				}
369 369
 				$this->parameters['brick'] = $brick;
370 370
 			} elseif ($relativeCmsUri == '/configuration/bricks/delete' && isset($request::$get['slug']) && in_array('configuration', $userRights)) {
371 371
 				$this->storage->deleteBrickBySlug($request::$get['slug']);
372
-				header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/configuration/bricks');
372
+				header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/configuration/bricks');
373 373
 				exit;
374 374
 			} elseif ($relativeCmsUri == '/configuration/image-set' && in_array('configuration', $userRights)) {
375 375
 				$template = 'cms/configuration/image-set';
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
 				$imageSet = $this->storage->getImageSetBySlug($request::$get['slug']);
382 382
 				if (isset($request::$post['title'])) {
383 383
 					$this->storage->saveImageSet($request::$get['slug'], $request::$post);
384
-					header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/configuration/image-set');
384
+					header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/configuration/image-set');
385 385
 					exit;
386 386
 				}
387 387
 				$this->parameters['imageSet'] = $imageSet;
@@ -390,12 +390,12 @@  discard block
 block discarded – undo
390 390
 				$this->parameters['mainNavClass'] = 'configuration';
391 391
 				if (isset($request::$post['title'])) {
392 392
 					$this->storage->addImageSet($request::$post);
393
-					header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/configuration/image-set');
393
+					header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/configuration/image-set');
394 394
 					exit;
395 395
 				}
396 396
 			} elseif ($relativeCmsUri == '/configuration/image-set/delete' && isset($request::$get['slug']) && in_array('configuration', $userRights)) {
397 397
 				$this->storage->deleteImageSetBySlug($request::$get['slug']);
398
-				header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/configuration/image-set');
398
+				header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/configuration/image-set');
399 399
 				exit;
400 400
 			} elseif ($relativeCmsUri == '/configuration/application-components' && in_array('configuration', $userRights)) {
401 401
 				$template = 'cms/configuration/application-components';
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
 				$this->parameters['mainNavClass'] = 'configuration';
407 407
 				if (isset($request::$post['title'])) {
408 408
 					$this->storage->addApplicationComponent($request::$post);
409
-					header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/configuration/application-components');
409
+					header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/configuration/application-components');
410 410
 					exit;
411 411
 				}
412 412
 			} elseif ($relativeCmsUri == '/configuration/application-components/edit' && isset($request::$get['slug']) && in_array('configuration', $userRights)) {
@@ -415,18 +415,18 @@  discard block
 block discarded – undo
415 415
 				$applicationComponent = $this->storage->getApplicationComponentBySlug($request::$get['slug']);
416 416
 				if (isset($request::$post['title'])) {
417 417
 					$this->storage->saveApplicationComponent($request::$get['slug'], $request::$post);
418
-					header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/configuration/application-components');
418
+					header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/configuration/application-components');
419 419
 					exit;
420 420
 				}
421 421
 				$this->parameters['applicationComponent'] = $applicationComponent;
422 422
 			} elseif ($relativeCmsUri == '/configuration/application-components/delete' && isset($request::$get['slug']) && in_array('configuration', $userRights)) {
423 423
 				$this->storage->deleteApplicationComponentBySlug($request::$get['slug']);
424
-				header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix'] . '/configuration/application-components');
424
+				header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix'].'/configuration/application-components');
425 425
 				exit;
426 426
 			} elseif ($relativeCmsUri == '/log-off') {
427 427
 				$_SESSION['cloudcontrol'] = null;
428 428
 				unset($_SESSION['cloudcontrol']);
429
-				header('Location: ' . $request::$subfolders . $this->parameters['cmsPrefix']);
429
+				header('Location: '.$request::$subfolders.$this->parameters['cmsPrefix']);
430 430
 				exit;
431 431
 			}
432 432
 
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
 				$whitelistIps = explode(',', $this->parameters['whitelistIps']);
442 442
 				$whitelistIps = array_map("trim", $whitelistIps);
443 443
 				if (!in_array($remoteAddress, $whitelistIps)) {
444
-					throw new \Exception('Ip address ' . $remoteAddress . ' is not on whitelist');
444
+					throw new \Exception('Ip address '.$remoteAddress.' is not on whitelist');
445 445
 				}
446 446
 			}
447 447
 		}
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
 				$blacklistIps = explode(',', $this->parameters['blacklistIps']);
453 453
 				$blacklistIps = array_map("trim", $blacklistIps);
454 454
 				if (in_array($remoteAddress, $blacklistIps)) {
455
-					throw new \Exception('Ip address ' . $remoteAddress . ' is on blacklist');
455
+					throw new \Exception('Ip address '.$remoteAddress.' is on blacklist');
456 456
 				}
457 457
 			}
458 458
 		}
Please login to merge, or discard this patch.