Completed
Pull Request — master (#100)
by Robin
01:23
created
lib/Service/IUserStoragesService.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@
 block discarded – undo
30 30
 namespace OCA\FullTextSearch_ElasticSearch\Service;
31 31
 
32 32
 interface IUserStoragesService {
33
-    /**
34
-     * Returns an array of strings with all external mountpoints of the current user
35
-     * @return array
36
-     */
37
-    function getAllStoragesForUser();
33
+	/**
34
+	 * Returns an array of strings with all external mountpoints of the current user
35
+	 * @return array
36
+	 */
37
+	function getAllStoragesForUser();
38 38
 }
39 39
\ No newline at end of file
Please login to merge, or discard this patch.
lib/Service/UserStoragesService.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -36,19 +36,19 @@  discard block
 block discarded – undo
36 36
  */
37 37
 class UserStoragesService implements IUserStoragesService {
38 38
     
39
-    /** @var UserGlobalStoragesService */
40
-    private $userGlobalStoragesService;
39
+	/** @var UserGlobalStoragesService */
40
+	private $userGlobalStoragesService;
41 41
 
42
-    public function __construct(UserGlobalStoragesService $userGlobalStoragesService) {
43
-        $this->userGlobalStoragesService = $userGlobalStoragesService;
44
-    }
42
+	public function __construct(UserGlobalStoragesService $userGlobalStoragesService) {
43
+		$this->userGlobalStoragesService = $userGlobalStoragesService;
44
+	}
45 45
 
46 46
    /**
47
-     * Returns an array of strings with all external mountpoints of the current user
48
-     * @return array
49
-     */
50
-    public function getAllStoragesForUser() {
51
-        $userStorages = $this->userGlobalStoragesService->getAllStoragesForUser();
47
+    * Returns an array of strings with all external mountpoints of the current user
48
+    * @return array
49
+    */
50
+	public function getAllStoragesForUser() {
51
+		$userStorages = $this->userGlobalStoragesService->getAllStoragesForUser();
52 52
 		$mountPoints = [];
53 53
 		foreach($userStorages as $userStorage){
54 54
 			/** @var $userStorage OCA\Files_External\Lib\StorageConfig */
@@ -62,5 +62,5 @@  discard block
 block discarded – undo
62 62
 			$mountPoints[] = $mountPoint;
63 63
 		}
64 64
 		return $mountPoints;
65
-    }
65
+	}
66 66
 }
67 67
\ No newline at end of file
Please login to merge, or discard this 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.
lib/AppInfo/Application.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 use OCP\AppFramework\Bootstrap\IRegistrationContext;
42 42
 use Psr\Container\ContainerExceptionInterface;
43 43
 
44
-require_once __DIR__ . '/../../vendor/autoload.php';
44
+require_once __DIR__.'/../../vendor/autoload.php';
45 45
 
46 46
 
47 47
 /**
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 		// Make SearchMappingService also work without external storage
72 72
 		// if app is inactive or not installed.
73 73
 		$context->registerService(SearchMappingService::class, function($c) {
74
-			try{
74
+			try {
75 75
 				$userStoragesService = $c->query(UserGlobalStoragesService::class);
76 76
 				return new SearchMappingService(
77 77
 					$c->query(ConfigService::class),
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,8 +78,7 @@
 block discarded – undo
78 78
 					$c->query(MiscService::class),
79 79
 					new UserStoragesService($userStoragesService)
80 80
 				);
81
-			}
82
-			catch (ContainerExceptionInterface $e) {
81
+			} catch (ContainerExceptionInterface $e) {
83 82
 				return new SearchMappingService(
84 83
 					$c->query(ConfigService::class),
85 84
 					$c->query(MiscService::class)
Please login to merge, or discard this patch.