Passed
Push — master ( a91559...331f3b )
by Morris
10:02
created
apps/files_external/lib/Lib/Storage/OwnCloud.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -52,24 +52,24 @@
 block discarded – undo
52 52
 		}
53 53
 		$contextPath = '';
54 54
 		$hostSlashPos = strpos($host, '/');
55
-		if ($hostSlashPos !== false){
55
+		if ($hostSlashPos !== false) {
56 56
 			$contextPath = substr($host, $hostSlashPos);
57 57
 			$host = substr($host, 0, $hostSlashPos);
58 58
 		}
59 59
 
60
-		if (substr($contextPath, -1) !== '/'){
60
+		if (substr($contextPath, -1) !== '/') {
61 61
 			$contextPath .= '/';
62 62
 		}
63 63
 
64
-		if (isset($params['root'])){
65
-			$root = '/' . ltrim($params['root'], '/');
64
+		if (isset($params['root'])) {
65
+			$root = '/'.ltrim($params['root'], '/');
66 66
 		}
67
-		else{
67
+		else {
68 68
 			$root = '/';
69 69
 		}
70 70
 
71 71
 		$params['host'] = $host;
72
-		$params['root'] = $contextPath . self::OC_URL_SUFFIX . $root;
72
+		$params['root'] = $contextPath.self::OC_URL_SUFFIX.$root;
73 73
 		$params['authType'] = Client::AUTH_BASIC;
74 74
 
75 75
 		parent::__construct($params);
Please login to merge, or discard this patch.