Completed
Push — stable10 ( 8c7e2b...b34e31 )
by Olivier
10:44 queued 04:29
created
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.
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.
controller/pagecontroller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
 			return $this->showPublicPage($token);
109 109
 		} else {
110 110
 			$url = $this->urlGenerator->linkToRoute(
111
-				$this->appName . '.files_public.download',
111
+				$this->appName.'.files_public.download',
112 112
 				[
113 113
 					'token'    => $token,
114 114
 					'fileId'   => $node->getId(),
Please login to merge, or discard this patch.
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.
controller/httperror.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
 		return new JSONResponse(
47 47
 			[
48
-				'message' => $message . ' (' . $code . ')',
48
+				'message' => $message.' ('.$code.')',
49 49
 				'success' => false
50 50
 			],
51 51
 			$code
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 		$message = $exception->getMessage();
64 64
 		$code = $this->getHttpStatusCode($exception);
65 65
 		$url = $urlGenerator->linkToRoute(
66
-			$appName . '.page.error_page', ['code' => $code]
66
+			$appName.'.page.error_page', ['code' => $code]
67 67
 		);
68 68
 
69 69
 		$response = new RedirectResponse($url);
Please login to merge, or discard this patch.
controller/pathmanipulation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 		$subFolders = explode('/', $relativePath);
43 43
 
44 44
 		if (count($subFolders) > 2) {
45
-			$reducedPath = $currFolderPath . $subFolders[0] . '/' . array_pop($subFolders);
45
+			$reducedPath = $currFolderPath.$subFolders[0].'/'.array_pop($subFolders);
46 46
 		} else {
47 47
 			$reducedPath = $path;
48 48
 		}
Please login to merge, or discard this patch.
http/imageresponse.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,10 +38,10 @@
 block discarded – undo
38 38
 		$this->preview = $image['preview'];
39 39
 
40 40
 		$this->setStatus($statusCode);
41
-		$this->addHeader('Content-type', $image['mimetype'] . '; charset=utf-8');
41
+		$this->addHeader('Content-type', $image['mimetype'].'; charset=utf-8');
42 42
 		$this->addHeader('Content-Disposition',
43
-						 'attachment; filename*=UTF-8\'\'' . rawurlencode($name) . '; filename="'
44
-						 . rawurlencode($name) . '"'
43
+						 'attachment; filename*=UTF-8\'\''.rawurlencode($name).'; filename="'
44
+						 . rawurlencode($name).'"'
45 45
 		);
46 46
 	}
47 47
 
Please login to merge, or discard this patch.
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.