Passed
Push — develop ( a5e1bf...c22bc5 )
by Jens
02:34
created
src/storage/storage/AbstractStorage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,19 +38,19 @@
 block discarded – undo
38 38
 			array_pop($fileParts);
39 39
 			$fileNameWithoutExtension = implode('-', $fileParts);
40 40
 			$fileNameWithoutExtension = StringUtil::slugify($fileNameWithoutExtension);
41
-			$filename = $fileNameWithoutExtension . '.' . $extension;
41
+			$filename = $fileNameWithoutExtension.'.'.$extension;
42 42
 		} else {
43 43
 			$filename = StringUtil::slugify($filename);
44 44
 		}
45 45
 
46
-		if (file_exists($path . '/' . $filename)) {
46
+		if (file_exists($path.'/'.$filename)) {
47 47
 			$fileParts = explode('.', $filename);
48 48
 			if (count($fileParts) > 1) {
49 49
 				$extension = end($fileParts);
50 50
 				array_pop($fileParts);
51 51
 				$fileNameWithoutExtension = implode('-', $fileParts);
52 52
 				$fileNameWithoutExtension .= '-copy';
53
-				$filename = $fileNameWithoutExtension . '.' . $extension;
53
+				$filename = $fileNameWithoutExtension.'.'.$extension;
54 54
 			} else {
55 55
 				$filename .= '-copy';
56 56
 			}
Please login to merge, or discard this patch.
src/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.