Completed
Push — stable13 ( 204466...b89996 )
by Roeland
14:34
created
lib/private/Files/Cache/Wrapper/CacheJail.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 		if ($path === '') {
60 60
 			return $this->getRoot();
61 61
 		} else {
62
-			return $this->getRoot() . '/' . ltrim($path, '/');
62
+			return $this->getRoot().'/'.ltrim($path, '/');
63 63
 		}
64 64
 	}
65 65
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 		$rootLength = strlen($this->getRoot()) + 1;
75 75
 		if ($path === $this->getRoot()) {
76 76
 			return '';
77
-		} else if (substr($path, 0, $rootLength) === $this->getRoot() . '/') {
77
+		} else if (substr($path, 0, $rootLength) === $this->getRoot().'/') {
78 78
 			return substr($path, $rootLength);
79 79
 		} else {
80 80
 			return null;
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
 	protected function filterCacheEntry($entry) {
96 96
 		$rootLength = strlen($this->getRoot()) + 1;
97
-		return $rootLength === 1 || ($entry['path'] === $this->getRoot()) || (substr($entry['path'], 0, $rootLength) === $this->getRoot() . '/');
97
+		return $rootLength === 1 || ($entry['path'] === $this->getRoot()) || (substr($entry['path'], 0, $rootLength) === $this->getRoot().'/');
98 98
 	}
99 99
 
100 100
 	/**
Please login to merge, or discard this patch.