Completed
Pull Request — master (#425)
by Julius
06:59
created
appinfo/app.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
  */
26 26
 $c->query('OCP\INavigationManager')
27 27
   ->add(
28
-	  function () use ($c, $appName) {
28
+	  function() use ($c, $appName) {
29 29
 		  $urlGenerator = $c->query('OCP\IURLGenerator');
30 30
 		  $l10n = $c->query('OCP\IL10N');
31 31
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
 			  // The route that will be shown on startup when called from within the GUI
40 40
 			  // Public links are using another route, see appinfo/routes.php
41
-			  'href'  => $urlGenerator->linkToRoute($appName . '.page.index'),
41
+			  'href'  => $urlGenerator->linkToRoute($appName.'.page.index'),
42 42
 
43 43
 			  // The icon that will be shown in the navigation
44 44
 			  // This file needs to exist in img/
Please login to merge, or discard this patch.
lib/Service/PreviewService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@
 block discarded – undo
218 218
 			}
219 219
 		} catch (\Exception $exception) {
220 220
 			throw new InternalServerErrorServiceException(
221
-				'Something went wrong when trying to read' . $file->getPath()
221
+				'Something went wrong when trying to read'.$file->getPath()
222 222
 			);
223 223
 		}
224 224
 
Please login to merge, or discard this patch.
lib/Service/ServiceException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 	 * @param string $msg the message contained in the exception
26 26
 	 */
27 27
 	public function __construct($msg) {
28
-		Util::writeLog('gallery', 'Exception: ' . $msg, Util::ERROR);
28
+		Util::writeLog('gallery', 'Exception: '.$msg, Util::ERROR);
29 29
 		parent::__construct($msg);
30 30
 	}
31 31
 }
Please login to merge, or discard this patch.
lib/Service/FilesService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 		try {
68 68
 			return $node && $this->isAllowed($node) && $this->isAvailable($node);
69 69
 		} catch (\Exception $exception) {
70
-			$message = 'The folder is not available: ' . $exception->getMessage();
70
+			$message = 'The folder is not available: '.$exception->getMessage();
71 71
 			$this->logger->error($message);
72 72
 
73 73
 			return false;
Please login to merge, or discard this patch.
lib/Service/ConfigService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -299,7 +299,7 @@
 block discarded – undo
299 299
 	 */
300 300
 	private function buildErrorMessage($exception, $folder) {
301 301
 		$configPath = $this->environment->getPathFromVirtualRoot($folder);
302
-		$errorMessage = $exception->getMessage() . ". Config location: /$configPath";
302
+		$errorMessage = $exception->getMessage().". Config location: /$configPath";
303 303
 		$this->logger->error($errorMessage);
304 304
 		$config = ['error' => ['message' => $errorMessage]];
305 305
 
Please login to merge, or discard this patch.
lib/Utility/EventSource.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,9 +73,9 @@  discard block
 block discarded – undo
73 73
 		}
74 74
 
75 75
 		if (!empty($type)) {
76
-			echo 'event: ' . $type . PHP_EOL;
76
+			echo 'event: '.$type.PHP_EOL;
77 77
 		}
78
-		echo 'data: ' . json_encode($data) . PHP_EOL;
78
+		echo 'data: '.json_encode($data).PHP_EOL;
79 79
 
80 80
 		echo PHP_EOL;
81 81
 		flush();
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 	 */
101 101
 	private function validateMessage($type, $data) {
102 102
 		if ($data && !preg_match('/^[A-Za-z0-9_]+$/', $type)) {
103
-			throw new \BadMethodCallException('Type needs to be alphanumeric (' . $type . ')');
103
+			throw new \BadMethodCallException('Type needs to be alphanumeric ('.$type.')');
104 104
 		}
105 105
 	}
106 106
 }
Please login to merge, or discard this patch.
lib/Environment/EnvironmentException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 	 * @param string $msg the message contained in the exception
26 26
 	 */
27 27
 	public function __construct($msg) {
28
-		Util::writeLog('gallery', 'Exception' . $msg, Util::ERROR);
28
+		Util::writeLog('gallery', 'Exception'.$msg, Util::ERROR);
29 29
 		parent::__construct($msg);
30 30
 	}
31 31
 }
Please login to merge, or discard this patch.
lib/Controller/FilesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
 		} catch (ServiceException $exception) {
118 118
 			$code = $this->getHttpStatusCode($exception);
119 119
 			$url = $this->urlGenerator->linkToRoute(
120
-				$this->appName . '.page.error_page', ['code' => $code]
120
+				$this->appName.'.page.error_page', ['code' => $code]
121 121
 			);
122 122
 
123 123
 			$response = new RedirectResponse($url);
Please login to merge, or discard this patch.
lib/Controller/HttpError.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
50 50
 
51 51
 		// If the exception is not of type ForbiddenServiceException only show a
52 52
 		// generic error message to avoid leaking information.
53
-		if(!($exception instanceof ForbiddenServiceException)) {
53
+		if (!($exception instanceof ForbiddenServiceException)) {
54 54
 			$logger->logException($exception, ['app' => 'gallery']);
55 55
 			$message = sprintf('An error occurred. Request ID: %s', $request->getId());
56 56
 		} else {
57
-			$message = $exception->getMessage() . ' (' . $code . ')';
57
+			$message = $exception->getMessage().' ('.$code.')';
58 58
 		}
59 59
 
60 60
 		return new JSONResponse(
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 		$message = $exception->getMessage();
78 78
 		$code = $this->getHttpStatusCode($exception);
79 79
 		$url = $urlGenerator->linkToRoute(
80
-			$appName . '.page.error_page', ['code' => $code]
80
+			$appName.'.page.error_page', ['code' => $code]
81 81
 		);
82 82
 
83 83
 		$response = new RedirectResponse($url);
Please login to merge, or discard this patch.