Passed
Push — develop ( 0194c7...d1d076 )
by Jens
03:10
created
cloudcontrol/library/storage/storage/FilesStorage.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,13 +25,13 @@  discard block
 block discarded – undo
25 25
 	 */
26 26
 	public function addFile($postValues)
27 27
 	{
28
-		$destinationPath = realpath(__DIR__ . '/../../../www/files/');
28
+		$destinationPath = realpath(__DIR__.'/../../../www/files/');
29 29
 
30 30
 		$filename = $this->validateFilename($postValues['name'], $destinationPath);
31
-		$destination = $destinationPath . '/' . $filename;
31
+		$destination = $destinationPath.'/'.$filename;
32 32
 
33 33
 		if ($postValues['error'] != '0') {
34
-			throw new \Exception('Error uploading file. Error code: ' . $postValues['error']);
34
+			throw new \Exception('Error uploading file. Error code: '.$postValues['error']);
35 35
 		}
36 36
 
37 37
 		if (move_uploaded_file($postValues['tmp_name'], $destination)) {
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
 	 */
74 74
 	public function deleteFileByName($filename)
75 75
 	{
76
-		$destinationPath = realpath(__DIR__ . '/../../../www/files/');
77
-		$destination = $destinationPath . '/' . $filename;
76
+		$destinationPath = realpath(__DIR__.'/../../../www/files/');
77
+		$destination = $destinationPath.'/'.$filename;
78 78
 
79 79
 		if (file_exists($destination)) {
80 80
 			$files = $this->getFiles();
Please login to merge, or discard this patch.
cloudcontrol/library/components/cms/configuration/UsersRouting.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 		$cmsComponent->setParameter(CmsComponent::PARAMETER_MAIN_NAV_CLASS, CmsComponent::PARAMETER_CONFIGURATION);
57 57
 		if (isset($request::$post[CmsComponent::POST_PARAMETER_USERNAME])) {
58 58
 			$cmsComponent->storage->getUsers()->addUser($request::$post);
59
-			header('Location: ' . $request::$subfolders . $cmsComponent->getParameter(CmsComponent::PARAMETER_CMS_PREFIX) . '/configuration/users');
59
+			header('Location: '.$request::$subfolders.$cmsComponent->getParameter(CmsComponent::PARAMETER_CMS_PREFIX).'/configuration/users');
60 60
 			exit;
61 61
 		}
62 62
 	}
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 	private function deleteRoute($request, $cmsComponent)
69 69
 	{
70 70
 		$cmsComponent->storage->getUsers()->deleteUserBySlug($request::$get[CmsComponent::GET_PARAMETER_SLUG]);
71
-		header('Location: ' . $request::$subfolders . $cmsComponent->getParameter(CmsComponent::PARAMETER_CMS_PREFIX) . '/configuration/users');
71
+		header('Location: '.$request::$subfolders.$cmsComponent->getParameter(CmsComponent::PARAMETER_CMS_PREFIX).'/configuration/users');
72 72
 		exit;
73 73
 	}
74 74
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 		$cmsComponent->setParameter(CmsComponent::PARAMETER_USER, $cmsComponent->storage->getUsers()->getUserBySlug($request::$get[CmsComponent::GET_PARAMETER_SLUG]));
84 84
 		if (isset($_POST[CmsComponent::POST_PARAMETER_USERNAME])) {
85 85
 			$cmsComponent->storage->getUsers()->saveUser($request::$get[CmsComponent::GET_PARAMETER_SLUG], $request::$post);
86
-			header('Location: ' . $request::$subfolders . $cmsComponent->getParameter(CmsComponent::PARAMETER_CMS_PREFIX) . '/configuration/users');
86
+			header('Location: '.$request::$subfolders.$cmsComponent->getParameter(CmsComponent::PARAMETER_CMS_PREFIX).'/configuration/users');
87 87
 			exit;
88 88
 		}
89 89
 	}
Please login to merge, or discard this patch.