Passed
Push — master ( 22edb6...e9795d )
by Blizzz
18:43 queued 07:06
created
lib/private/Collaboration/Collaborators/Search.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 		$searchResult = $this->c->resolve(SearchResult::class);
57 57
 
58 58
 		foreach ($shareTypes as $type) {
59
-			if(!isset($this->pluginList[$type])) {
59
+			if (!isset($this->pluginList[$type])) {
60 60
 				continue;
61 61
 			}
62 62
 			foreach ($this->pluginList[$type] as $plugin) {
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 		// that the exact same email address and federated cloud id exists
80 80
 		$emailType = new SearchResultType('emails');
81 81
 		$remoteType = new SearchResultType('remotes');
82
-		if($searchResult->hasExactIdMatch($emailType) && !$searchResult->hasExactIdMatch($remoteType)) {
82
+		if ($searchResult->hasExactIdMatch($emailType) && !$searchResult->hasExactIdMatch($remoteType)) {
83 83
 			$searchResult->unsetResult($remoteType);
84 84
 		} elseif (!$searchResult->hasExactIdMatch($emailType) && $searchResult->hasExactIdMatch($remoteType)) {
85 85
 			$searchResult->unsetResult($emailType);
@@ -87,17 +87,17 @@  discard block
 block discarded – undo
87 87
 
88 88
 		// if we have an exact local user match, there is no need to show the remote and email matches
89 89
 		$userType = new SearchResultType('users');
90
-		if($searchResult->hasExactIdMatch($userType)) {
90
+		if ($searchResult->hasExactIdMatch($userType)) {
91 91
 			$searchResult->unsetResult($remoteType);
92 92
 			$searchResult->unsetResult($emailType);
93 93
 		}
94 94
 
95
-		return [$searchResult->asArray(), (bool)$hasMoreResults];
95
+		return [$searchResult->asArray(), (bool) $hasMoreResults];
96 96
 	}
97 97
 
98 98
 	public function registerPlugin(array $pluginInfo) {
99
-		$shareType = constant(Share::class . '::' . $pluginInfo['shareType']);
100
-		if($shareType === null) {
99
+		$shareType = constant(Share::class.'::'.$pluginInfo['shareType']);
100
+		if ($shareType === null) {
101 101
 			throw new \InvalidArgumentException('Provided ShareType is invalid');
102 102
 		}
103 103
 		$this->pluginList[$shareType][] = $pluginInfo['class'];
Please login to merge, or discard this patch.