Passed
Push — master ( 37718d...df6e91 )
by Morris
77:43 queued 61:27
created
public.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
28 28
  *
29 29
  */
30 30
 
31
-require_once __DIR__ . '/lib/versioncheck.php';
31
+require_once __DIR__.'/lib/versioncheck.php';
32 32
 
33 33
 try {
34 34
 
35
-	require_once __DIR__ . '/lib/base.php';
35
+	require_once __DIR__.'/lib/base.php';
36 36
 	if (\OCP\Util::needUpgrade()) {
37 37
 		// since the behavior of apps or remotes are unpredictable during
38 38
 		// an upgrade, return a 503 directly
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 		$pathInfo = trim($pathInfo, '/');
54 54
 		list($service) = explode('/', $pathInfo);
55 55
 	}
56
-	$file = \OC::$server->getConfig()->getAppValue('core', 'public_' . strip_tags($service));
56
+	$file = \OC::$server->getConfig()->getAppValue('core', 'public_'.strip_tags($service));
57 57
 	if ($file === '') {
58 58
 		http_response_code(404);
59 59
 		exit;
@@ -68,14 +68,14 @@  discard block
 block discarded – undo
68 68
 	OC_App::loadApps(array('filesystem', 'logging'));
69 69
 
70 70
 	if (!\OC::$server->getAppManager()->isInstalled($app)) {
71
-		throw new Exception('App not installed: ' . $app);
71
+		throw new Exception('App not installed: '.$app);
72 72
 	}
73 73
 	OC_App::loadApp($app);
74 74
 	OC_User::setIncognitoMode(true);
75 75
 
76
-	$baseuri = OC::$WEBROOT . '/public.php/' . $service . '/';
76
+	$baseuri = OC::$WEBROOT.'/public.php/'.$service.'/';
77 77
 
78
-	require_once OC_App::getAppPath($app) . '/' . $parts[1];
78
+	require_once OC_App::getAppPath($app).'/'.$parts[1];
79 79
 
80 80
 } catch (Exception $ex) {
81 81
 	$status = 500;
Please login to merge, or discard this patch.