Completed
Pull Request — master (#100)
by Robin
02:31
created
lib/AppInfo/Application.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,13 +59,13 @@
 block discarded – undo
59 59
 		$this->registerServices();
60 60
 	}
61 61
 
62
-	private function registerServices(){
62
+	private function registerServices() {
63 63
 		$container = $this->getContainer();
64 64
 		
65 65
 		// Make SearchMappingService also work without external storage
66 66
 		// if app is inactive or not installed.
67 67
 		$container->registerService(SearchMappingService::class, function($c) {
68
-			try{
68
+			try {
69 69
 				$userStoragesService = $c->query(UserGlobalStoragesService::class);
70 70
 				return new SearchMappingService(
71 71
 					$c->query(ConfigService::class),
Please login to merge, or discard this patch.
lib/Service/UserStoragesService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,13 +50,13 @@
 block discarded – undo
50 50
     public function getAllStoragesForUser() {
51 51
         $userStorages = $this->userGlobalStoragesService->getAllStoragesForUser();
52 52
 		$mountPoints = [];
53
-		foreach($userStorages as $userStorage){
53
+		foreach ($userStorages as $userStorage) {
54 54
 			/** @var $userStorage OCA\Files_External\Lib\StorageConfig */
55 55
 			$mountPoint = $userStorage->getMountPoint();
56
-			if (substr($mountPoint, 0, 1) === '/'){
56
+			if (substr($mountPoint, 0, 1) === '/') {
57 57
 				$mountPoint = substr($mountPoint, 1, strlen($mountPoint) - 1);
58 58
 			}
59
-			if (substr($mountPoint, strlen($mountPoint) - 1, 1) !== '/'){
59
+			if (substr($mountPoint, strlen($mountPoint) - 1, 1) !== '/') {
60 60
 				$mountPoint .= '/';
61 61
 			}
62 62
 			$mountPoints[] = $mountPoint;
Please login to merge, or discard this patch.