Test Failed
Push — master ( b103a7...4c2e75 )
by
unknown
17:01 queued 05:50
created
plugins/files/php/Files/Backend/class.backendstore.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,8 +71,7 @@  discard block
 block discarded – undo
71 71
 					array_push($list, $file);
72 72
 				}
73 73
 			}
74
-		}
75
-		else {
74
+		} else {
76 75
 			Logger::error(self::LOG_CONTEXT, "Error opening the backend directory: " . $workdir);
77 76
 		}
78 77
 
@@ -99,8 +98,7 @@  discard block
 block discarded – undo
99 98
 					array_push($list, $backendName);
100 99
 				}
101 100
 			}
102
-		}
103
-		else {
101
+		} else {
104 102
 			Logger::error(self::LOG_CONTEXT, "Error opening the external backend directory: " . $workdir);
105 103
 		}
106 104
 
Please login to merge, or discard this patch.
plugins/files/php/Files/Backend/Webdav/class.backend.php 1 patch
Braces   +22 added lines, -44 removed lines patch added patch discarded remove patch
@@ -214,8 +214,7 @@  discard block
 block discarded – undo
214 214
 		if ($backend_config["use_grommunio_credentials"] === false) {
215 215
 			$this->set_user($backend_config["user"]);
216 216
 			$this->set_pass($backend_config["password"]);
217
-		}
218
-		else {
217
+		} else {
219 218
 			// For backward compatibility we will check if the Encryption store exists. If not,
220 219
 			// we will fall back to the old way of retrieving the password from the session.
221 220
 			if (class_exists('EncryptionStore')) {
@@ -223,8 +222,7 @@  discard block
 block discarded – undo
223 222
 				$encryptionStore = \EncryptionStore::getInstance();
224 223
 				$this->set_user($encryptionStore->get('username'));
225 224
 				$this->set_pass($encryptionStore->get('password'));
226
-			}
227
-			else {
225
+			} else {
228 226
 				$this->set_user($GLOBALS['mapisession']->getUserName());
229 227
 				$password = $_SESSION['password'];
230 228
 				if (function_exists('openssl_decrypt')) {
@@ -338,8 +336,7 @@  discard block
 block discarded – undo
338 336
 			$this->sabre_client->addCurlSetting(CURLOPT_SSL_VERIFYPEER, !$this->allowselfsigned);
339 337
 
340 338
 			return true;
341
-		}
342
-		catch (Exception $e) {
339
+		} catch (Exception $e) {
343 340
 			$this->log('Failed to open: ' . $e->getMessage());
344 341
 			if (intval($e->getHTTPCode()) == 401) {
345 342
 				$e = new BackendException($this->parseErrorCodeToMessage(self::WD_ERR_UNAUTHORIZED), $e->getHTTPCode());
@@ -417,15 +414,13 @@  discard block
 block discarded – undo
417 414
 			$this->log("[LS] done in {$time} seconds");
418 415
 
419 416
 			return $lsdata;
420
-		}
421
-		catch (ClientException $e) {
417
+		} catch (ClientException $e) {
422 418
 			$this->log('ls sabre ClientException: ' . $e->getMessage());
423 419
 			$e = new BackendException($this->parseErrorCodeToMessage($e->getCode()), $e->getCode());
424 420
 			$e->setTitle($this->backendTransName . _('Sabre error'));
425 421
 
426 422
 			throw $e;
427
-		}
428
-		catch (Exception $e) {
423
+		} catch (Exception $e) {
429 424
 			$this->log('ls general exception: ' . $e->getMessage() . " [" . $e->getHTTPCode() . "]");
430 425
 			// THIS IS A FIX FOR OWNCLOUD - It does return 500 instead of 401...
431 426
 			$err_code = $e->getHTTPCode();
@@ -465,14 +460,12 @@  discard block
 block discarded – undo
465 460
 			$this->log("[MKCOL] done in {$time} seconds: " . $response['statusCode']);
466 461
 
467 462
 			return true;
468
-		}
469
-		catch (ClientException $e) {
463
+		} catch (ClientException $e) {
470 464
 			$e = new BackendException($this->parseErrorCodeToMessage($e->getCode()), $e->getCode());
471 465
 			$e->setTitle($this->backendTransName . _('Sabre error'));
472 466
 
473 467
 			throw $e;
474
-		}
475
-		catch (Exception $e) {
468
+		} catch (Exception $e) {
476 469
 			$this->log('[MKCOL] fatal: ' . $e->getMessage());
477 470
 			$e = new BackendException($this->parseErrorCodeToMessage($e->getHTTPCode()), $e->getHTTPCode());
478 471
 			$e->setTitle($this->backendTransName . _('Directory creation failed'));
@@ -502,14 +495,12 @@  discard block
 block discarded – undo
502 495
 			$this->log("[DELETE] done in {$time} seconds: " . $response['statusCode']);
503 496
 
504 497
 			return true;
505
-		}
506
-		catch (ClientException $e) {
498
+		} catch (ClientException $e) {
507 499
 			$e = new BackendException($this->parseErrorCodeToMessage($e->getCode()), $e->getCode());
508 500
 			$e->setTitle($this->backendTransName . _('Sabre error'));
509 501
 
510 502
 			throw $e;
511
-		}
512
-		catch (Exception $e) {
503
+		} catch (Exception $e) {
513 504
 			$this->log('[DELETE] fatal: ' . $e->getMessage());
514 505
 			$e = new BackendException($this->parseErrorCodeToMessage($e->getHTTPCode()), $e->getHTTPCode());
515 506
 			$e->setTitle($this->backendTransName . _('Deletion failed'));
@@ -538,8 +529,7 @@  discard block
 block discarded – undo
538 529
 		$this->log("[MOVE] start for dir: {$src_path} -> {$dst_path}");
539 530
 		if ($overwrite) {
540 531
 			$overwrite = 'T';
541
-		}
542
-		else {
532
+		} else {
543 533
 			$overwrite = 'F';
544 534
 		}
545 535
 
@@ -550,14 +540,12 @@  discard block
 block discarded – undo
550 540
 			$this->log("[MOVE] done in {$time} seconds: " . $response['statusCode']);
551 541
 
552 542
 			return true;
553
-		}
554
-		catch (ClientException $e) {
543
+		} catch (ClientException $e) {
555 544
 			$e = new BackendException($this->parseErrorCodeToMessage($e->getCode()), $e->getCode());
556 545
 			$e->setTitle($this->backendTransName . _('Sabre error'));
557 546
 
558 547
 			throw $e;
559
-		}
560
-		catch (Exception $e) {
548
+		} catch (Exception $e) {
561 549
 			$this->log('[MOVE] fatal: ' . $e->getMessage());
562 550
 			$e = new BackendException($this->parseErrorCodeToMessage($e->getHTTPCode()), $e->getHTTPCode());
563 551
 			$e->setTitle($this->backendTransName . _('Moving failed'));
@@ -590,14 +578,12 @@  discard block
 block discarded – undo
590 578
 			$this->log("[PUT] done in {$time} seconds: " . $response['statusCode']);
591 579
 
592 580
 			return true;
593
-		}
594
-		catch (ClientException $e) {
581
+		} catch (ClientException $e) {
595 582
 			$e = new BackendException($this->parseErrorCodeToMessage($e->getCode()), $e->getCode());
596 583
 			$e->setTitle($this->backendTransName . _('Sabre error'));
597 584
 
598 585
 			throw $e;
599
-		}
600
-		catch (Exception $e) {
586
+		} catch (Exception $e) {
601 587
 			$this->log('[PUT] fatal: ' . $e->getMessage());
602 588
 			$e = new BackendException($this->parseErrorCodeToMessage($e->getHTTPCode()), $e->getHTTPCode());
603 589
 			$e->setTitle($this->backendTransName . _('Connection failed'));
@@ -669,14 +655,12 @@  discard block
 block discarded – undo
669 655
 			$time_end = microtime(true);
670 656
 			$time = $time_end - $time_start;
671 657
 			$this->log("[GET_FILE] done in {$time} seconds: " . $response['statusCode']);
672
-		}
673
-		catch (ClientException $e) {
658
+		} catch (ClientException $e) {
674 659
 			$e = new BackendException($this->parseErrorCodeToMessage($e->getCode()), $e->getCode());
675 660
 			$e->setTitle($this->backendTransName . _('Sabre error'));
676 661
 
677 662
 			throw $e;
678
-		}
679
-		catch (Exception $e) {
663
+		} catch (Exception $e) {
680 664
 			$this->log('[GET_FILE] - FATAL -' . $e->getMessage());
681 665
 			$e = new BackendException($this->parseErrorCodeToMessage($e->getHTTPCode()), $e->getHTTPCode());
682 666
 			$e->setTitle($this->backendTransName . _('File or folder not found'));
@@ -751,8 +735,7 @@  discard block
 block discarded – undo
751 735
 		$type = $response["{DAV:}resourcetype"]->resourceType;
752 736
 		if (is_array($type) && !empty($type)) {
753 737
 			$type = $type[0] == "{DAV:}collection" ? "collection" : "file";
754
-		}
755
-		else {
738
+		} else {
756 739
 			$type = "file"; // fall back to file if detection fails... less harmful
757 740
 		}
758 741
 
@@ -849,8 +832,7 @@  discard block
 block discarded – undo
849 832
 		$this->log("[COPY] start for dir: {$src_path} -> {$dst_path}");
850 833
 		if ($overwrite) {
851 834
 			$overwrite = 'T';
852
-		}
853
-		else {
835
+		} else {
854 836
 			$overwrite = 'F';
855 837
 		}
856 838
 
@@ -866,14 +848,12 @@  discard block
 block discarded – undo
866 848
 			$this->log("[COPY] done in {$time} seconds: " . $response['statusCode']);
867 849
 
868 850
 			return true;
869
-		}
870
-		catch (ClientException $e) {
851
+		} catch (ClientException $e) {
871 852
 			$e = new BackendException($this->parseErrorCodeToMessage($e->getCode()), $e->getCode());
872 853
 			$e->setTitle($this->backendTransName . _('Sabre error'));
873 854
 
874 855
 			throw $e;
875
-		}
876
-		catch (Exception $e) {
856
+		} catch (Exception $e) {
877 857
 			$this->log('[COPY] - FATAL - ' . $e->getMessage());
878 858
 			$e = new BackendException($this->parseErrorCodeToMessage($e->getHTTPCode()), $e->getHTTPCode());
879 859
 			$e->setTitle($this->backendTransName . _('Copying failed'));
@@ -890,8 +870,7 @@  discard block
 block discarded – undo
890 870
 	protected function webdavUrl() {
891 871
 		if ($this->ssl) {
892 872
 			$url = "https://";
893
-		}
894
-		else {
873
+		} else {
895 874
 			$url = "http://";
896 875
 		}
897 876
 
@@ -1098,8 +1077,7 @@  discard block
 block discarded – undo
1098 1077
 		if ($httpcode && $httpcode == "200" && $versiondata) {
1099 1078
 			$versions = json_decode($versiondata);
1100 1079
 			$version = $versions->versionstring;
1101
-		}
1102
-		else {
1080
+		} else {
1103 1081
 			$version = "Undetected (no Owncloud?)";
1104 1082
 		}
1105 1083
 
Please login to merge, or discard this patch.
plugins/files/php/Files/Core/Util/class.arrayutil.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
 		if ($dir == "DESC") {
22 22
 			usort($arr, ['self', 'invsort']);
23
-		}
24
-		else {
23
+		} else {
25 24
 			usort($arr, ['self', 'sort']);
26 25
 		}
27 26
 
@@ -45,8 +44,7 @@  discard block
 block discarded – undo
45 44
 
46 45
 		if ($dir == "DESC") {
47 46
 			usort($arr, ['self', 'invpropsort']);
48
-		}
49
-		else {
47
+		} else {
50 48
 			usort($arr, ['self', 'propsort']);
51 49
 		}
52 50
 
Please login to merge, or discard this patch.
plugins/files/php/Files/Core/class.accountstore.php 1 patch
Braces   +6 added lines, -12 removed lines patch added patch discarded remove patch
@@ -125,8 +125,7 @@  discard block
 block discarded – undo
125 125
 			// Unable to decrypt, don't update
126 126
 			if ($version == 0 && !defined('FILES_PASSWORD_IV') && !defined('FILES_PASSWORD_KEY')) {
127 127
 				Logger::error(self::LOG_CONTEXT, "Unable to update the account to as FILES_PASSWORD_IV/FILES_PASSWORD_KEY is not set");
128
-			}
129
-			else {
128
+			} else {
130 129
 				// store all backend configurations
131 130
 				foreach ($account->getBackendConfig() as $key => $value) {
132 131
 					if ($key !== "version") {
@@ -228,11 +227,9 @@  discard block
 block discarded – undo
228 227
 					$backend_config = $this->decryptBackendConfig($acc["backend_config"], $version);
229 228
 					// version is lost after decryption, add it again
230 229
 					$backend_config["version"] = $version;
231
-				}
232
-				elseif ($version === 0) {
230
+				} elseif ($version === 0) {
233 231
 					Logger::error(self::LOG_CONTEXT, "FILES_PASSWORD_IV or FILES_PASSWORD_KEY not set, unable to decrypt backend configuration");
234
-				}
235
-				else {
232
+				} else {
236 233
 					Logger::error(self::LOG_CONTEXT, "Unsupported account version {$version}, unable to decrypt backend configuration");
237 234
 				}
238 235
 
@@ -268,8 +265,7 @@  discard block
 block discarded – undo
268 265
 			$backendInstance->open();
269 266
 			$backendInstance->ls("/");
270 267
 			$status = Account::STATUS_OK;
271
-		}
272
-		catch (BackendException $e) {
268
+		} catch (BackendException $e) {
273 269
 			$status = Account::STATUS_ERROR;
274 270
 			$description = $e->getMessage();
275 271
 
@@ -322,8 +318,7 @@  discard block
 block discarded – undo
322 318
 			if ($key !== "version") {
323 319
 				try {
324 320
 					$decBackendConfig[$key] = $this->decryptBackendConfigProperty($value, $version);
325
-				}
326
-				catch (Exception $e) {
321
+				} catch (Exception $e) {
327 322
 					Logger::error(self::LOG_CONTEXT, sprintf("Unable to decrypt backend configuration: '%s'", $e->getMessage()));
328 323
 				}
329 324
 			}
@@ -346,8 +341,7 @@  discard block
 block discarded – undo
346 341
 			$key = $GLOBALS["operations"]->getFilesEncryptionKey();
347 342
 			$encrypted = sodium_crypto_secretbox($value, $nonce, $key);
348 343
 			$value = bin2hex($nonce) . bin2hex($encrypted);
349
-		}
350
-		elseif ($version !== self::ACCOUNT_VERSION) {
344
+		} elseif ($version !== self::ACCOUNT_VERSION) {
351 345
 			throw Exception("Unable to encrypt backend configuration unsupported version {$version}");
352 346
 		}
353 347
 
Please login to merge, or discard this patch.
plugins/files/php/Files/Core/class.uploadhandler.php 1 patch
Braces   +6 added lines, -12 removed lines patch added patch discarded remove patch
@@ -23,12 +23,10 @@  discard block
 block discarded – undo
23 23
 		// parse account id.
24 24
 		if (isset($_POST["parentID"])) { // will be set if a standard upload is used.
25 25
 			$dstID = $_POST["parentID"];
26
-		}
27
-		else {
26
+		} else {
28 27
 			if (isset($_SERVER['HTTP_X_FILE_DESTINATION'])) { // will be set if the upload is a ajax upload.
29 28
 				$dstID = $_SERVER['HTTP_X_FILE_DESTINATION'];
30
-			}
31
-			else {
29
+			} else {
32 30
 				Logger::error(self::LOG_CONTEXT, "upload failed: No destination given");
33 31
 				echo json_encode(['success' => false, 'response' => 'No destination given', 'message' => 'No destination given']);
34 32
 
@@ -53,8 +51,7 @@  discard block
 block discarded – undo
53 51
 
54 52
 		try {
55 53
 			$initializedBackend->open();
56
-		}
57
-		catch (\Files\Backend\Exception $e) {
54
+		} catch (\Files\Backend\Exception $e) {
58 55
 			Logger::error(self::LOG_CONTEXT, "backend initialization failed: " . $e->getMessage());
59 56
 			echo json_encode(['success' => false, 'response' => $e->getCode(), 'message' => $e->getMessage()]);
60 57
 
@@ -81,8 +78,7 @@  discard block
 block discarded – undo
81 78
 
82 79
 					fwrite($fileWriter, $buffer);
83 80
 				}
84
-			}
85
-			else { // fallback to tmp files
81
+			} else { // fallback to tmp files
86 82
 				$targetPath = UploadHandler::checkFilesNameConflict($targetPath, $initializedBackend, $relNodeId);
87 83
 				$targetPath = rawurldecode($targetPath);
88 84
 				$temp_file = tempnam(TMP_PATH, "{$targetPath}");
@@ -134,8 +130,7 @@  discard block
 block discarded – undo
134 130
 
135 131
 						fwrite($fileWriter, $buffer);
136 132
 					}
137
-				}
138
-				else { // use the normal way - might have a high memory footprint
133
+				} else { // use the normal way - might have a high memory footprint
139 134
 					$initializedBackend->put_file($targetPath, $_FILES['attachments']['tmp_name'][$i]);
140 135
 				}
141 136
 
@@ -144,8 +139,7 @@  discard block
 block discarded – undo
144 139
 			echo json_encode(['success' => true, 'parent' => $dstID, 'items' => $items]);
145 140
 
146 141
 			exit();
147
-		}
148
-		catch (\Files\Backend\Exception $e) {
142
+		} catch (\Files\Backend\Exception $e) {
149 143
 			Logger::error(self::LOG_CONTEXT, "upload failed: " . $e->getMessage());
150 144
 			echo json_encode(['success' => false, 'response' => $e->getCode(), 'message' => $e->getMessage()]);
151 145
 
Please login to merge, or discard this patch.
plugins/files/php/Files/Core/class.downloadhandler.php 1 patch
Braces   +7 added lines, -14 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@  discard block
 block discarded – undo
25 25
 		// only possible to download files from one backend at a time.
26 26
 		if (isset($_GET["ids"])) {
27 27
 			$tmpId = $_GET["ids"][0];
28
-		}
29
-		else {
28
+		} else {
30 29
 			$tmpId = $_GET["id"];
31 30
 		}
32 31
 		$accountID = substr($tmpId, 3, (strpos($tmpId, '/') - 3));
@@ -43,15 +42,13 @@  discard block
 block discarded – undo
43 42
 
44 43
 		try {
45 44
 			$initializedBackend->open();
46
-		}
47
-		catch (\Files\Backend\Exception $e) {
45
+		} catch (\Files\Backend\Exception $e) {
48 46
 			Logger::error(self::LOG_CONTEXT, "Could not open the backend: " . $e->getMessage());
49 47
 
50 48
 			if ((isset($_GET["inline"]) && $_GET["inline"] == "false") || (isset($_GET["contentDispositionType"]) && $_GET["contentDispositionType"] == "attachment")) {
51 49
 				// Javascript error message
52 50
 				echo "<script>alert('" . _('File backend not responding. Please try again later.') . "');</script>";
53
-			}
54
-			else {
51
+			} else {
55 52
 				// Text error message that is shown in the preview box
56 53
 				echo _('File backend not responding. Please try again later.');
57 54
 			}
@@ -113,8 +110,7 @@  discard block
 block discarded – undo
113 110
 				$tmpfile = tempnam(TMP_PATH, stripslashes(base64_encode($relNodeId)));
114 111
 				$initializedBackend->get_file($relNodeId, $tmpfile);
115 112
 				$filesize = filesize($tmpfile);
116
-			}
117
-			else {
113
+			} else {
118 114
 				$gpi = $initializedBackend->gpi($relNodeId);
119 115
 				$stream = true;
120 116
 				$filesize = $gpi["getcontentlength"];
@@ -139,8 +135,7 @@  discard block
 block discarded – undo
139 135
 				readfile($tmpfile);
140 136
 				ignore_user_abort(true);
141 137
 				unlink($tmpfile);
142
-			}
143
-			else {
138
+			} else {
144 139
 				// stream the file directly from the backend - much faster
145 140
 				$fh = $initializedBackend->getStreamReader($relNodeId);
146 141
 				while (!feof($fh)) {
@@ -153,15 +148,13 @@  discard block
 block discarded – undo
153 148
 			}
154 149
 
155 150
 			exit();
156
-		}
157
-		catch (\Files\Backend\Exception $e) {
151
+		} catch (\Files\Backend\Exception $e) {
158 152
 			Logger::error(self::LOG_CONTEXT, "Downloading failed: " . $e->getMessage());
159 153
 
160 154
 			if (isset($_GET["inline"]) && $_GET["inline"] == "false") {
161 155
 				// Javascript error message
162 156
 				echo "<script>alert('" . _('This file is no longer available. Please reload the folder.') . "');</script>";
163
-			}
164
-			else {
157
+			} else {
165 158
 				// Text error message that is shown in the preview box
166 159
 				echo _('This file is no longer available. Please reload the folder.');
167 160
 			}
Please login to merge, or discard this patch.
plugins/files/php/Files/Core/class.recipienthandler.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,8 +18,7 @@  discard block
 block discarded – undo
18 18
 		// only possible to download files from one backend at a time.
19 19
 		if (isset($_GET["ids"])) {
20 20
 			$tmpId = $_GET["ids"][0];
21
-		}
22
-		else {
21
+		} else {
23 22
 			$tmpId = $_GET["id"];
24 23
 		}
25 24
 		$accountID = substr($tmpId, 3, (strpos($tmpId, '/') - 3));
@@ -36,8 +35,7 @@  discard block
 block discarded – undo
36 35
 
37 36
 		try {
38 37
 			$initializedBackend->open();
39
-		}
40
-		catch (\Files\Backend\Exception $e) {
38
+		} catch (\Files\Backend\Exception $e) {
41 39
 			Logger::error(self::LOG_CONTEXT, "Could not open the backend: " . $e->getMessage());
42 40
 			echo json_encode(['success' => false, 'response' => $e->getCode(), 'message' => $e->getMessage()]);
43 41
 
Please login to merge, or discard this patch.
plugins/files/php/class.filesaccountmodule.php 1 patch
Braces   +6 added lines, -12 removed lines patch added patch discarded remove patch
@@ -44,8 +44,7 @@  discard block
 block discarded – undo
44 44
 							// check if we should create a new account or edit an existing one
45 45
 							if (isset($actionData["entryid"])) {
46 46
 								$result = $this->accountUpdate($actionData);
47
-							}
48
-							else {
47
+							} else {
49 48
 								$result = $this->accountCreate($actionData);
50 49
 							}
51 50
 							break;
@@ -57,8 +56,7 @@  discard block
 block discarded – undo
57 56
 						case "list":
58 57
 							if (isset($actionData["list_backend"]) && $actionData["list_backend"]) {
59 58
 								$result = $this->backendInformation($actionType);
60
-							}
61
-							else {
59
+							} else {
62 60
 								$result = $this->accountList($actionType, $actionData);
63 61
 							}
64 62
 							break;
@@ -78,11 +76,9 @@  discard block
 block discarded – undo
78 76
 						default:
79 77
 							$this->handleUnknownActionType($actionType);
80 78
 					}
81
-				}
82
-				catch (MAPIException $e) {
79
+				} catch (MAPIException $e) {
83 80
 					$this->sendFeedback(false, $this->errorDetailsFromException($e));
84
-				}
85
-				catch (AccountException $e) {
81
+				} catch (AccountException $e) {
86 82
 					$this->sendFeedback(false, [
87 83
 						'type' => ERROR_GENERAL,
88 84
 						'info' => [
@@ -91,8 +87,7 @@  discard block
 block discarded – undo
91 87
 							'display_message' => $e->getMessage(),
92 88
 						],
93 89
 					]);
94
-				}
95
-				catch (BackendException $e) {
90
+				} catch (BackendException $e) {
96 91
 					$this->sendFeedback(false, [
97 92
 						'type' => ERROR_GENERAL,
98 93
 						'info' => [
@@ -157,8 +152,7 @@  discard block
 block discarded – undo
157 152
 		try {
158 153
 			$accountStore = new \Files\Core\AccountStore();
159 154
 			$accountStore->getAccount($actionData['entryid'])->beforeDelete();
160
-		}
161
-		catch (\Files\Backend\Exception $e) {
155
+		} catch (\Files\Backend\Exception $e) {
162 156
 			// ignore errors here
163 157
 		}
164 158
 
Please login to merge, or discard this patch.
plugins/files/php/cssloader.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@
 block discarded – undo
14 14
 	$content .= file_get_contents("../resources/css/navbar.css");
15 15
 	$content .= file_get_contents("../resources/css/pdfjspanel.css");
16 16
 	$content .= file_get_contents("../resources/css/webodfpanel.css");
17
-}
18
-else {
17
+} else {
19 18
 	$content .= file_get_contents("../resources/css/files" . $debug . ".css");
20 19
 }
21 20
 
Please login to merge, or discard this patch.