Passed
Push — master ( 9134ef...0aa30b )
by Morris
10:47
created
public.php 1 patch
Spacing   +5 added lines, -5 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;
@@ -74,9 +74,9 @@  discard block
 block discarded – undo
74 74
 	OC_App::loadApp($app);
75 75
 	OC_User::setIncognitoMode(true);
76 76
 
77
-	$baseuri = OC::$WEBROOT . '/public.php/' . $service . '/';
77
+	$baseuri = OC::$WEBROOT.'/public.php/'.$service.'/';
78 78
 
79
-	require_once OC_App::getAppPath($app) . '/' . $parts[1];
79
+	require_once OC_App::getAppPath($app).'/'.$parts[1];
80 80
 
81 81
 } catch (Exception $ex) {
82 82
 	$status = 500;
Please login to merge, or discard this patch.