Completed
Pull Request — master (#551)
by Maxence
02:17
created
lib/Service/FederatedEventService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -238,16 +238,16 @@
 block discarded – undo
238 238
 		try {
239 239
 			$test = new ReflectionClass($class);
240 240
 		} catch (ReflectionException $e) {
241
-			throw new FederatedEventException('ReflectionException with ' . $class . ': ' . $e->getMessage());
241
+			throw new FederatedEventException('ReflectionException with '.$class.': '.$e->getMessage());
242 242
 		}
243 243
 
244 244
 		if (!in_array(IFederatedItem::class, $test->getInterfaceNames())) {
245
-			throw new FederatedEventException($class . ' does not implements IFederatedItem');
245
+			throw new FederatedEventException($class.' does not implements IFederatedItem');
246 246
 		}
247 247
 
248 248
 		$item = OC::$server->get($class);
249 249
 		if (!($item instanceof IFederatedItem)) {
250
-			throw new FederatedEventException($class . ' not an IFederatedItem');
250
+			throw new FederatedEventException($class.' not an IFederatedItem');
251 251
 		}
252 252
 
253 253
 		$this->setFederatedEventBypass($event, $item);
Please login to merge, or discard this patch.
lib/Model/Helpers/MemberHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 		try {
105 105
 			$level = Member::parseLevelString($levelString);
106 106
 		} catch (MemberLevelException $e) {
107
-			throw new MemberHelperException('method ' . $levelString . ' not found');
107
+			throw new MemberHelperException('method '.$levelString.' not found');
108 108
 		}
109 109
 
110 110
 		$this->mustHaveLevelEqualOrAbove($level);
@@ -122,11 +122,11 @@  discard block
 block discarded – undo
122 122
 		try {
123 123
 			$level = Member::parseLevelString($levelString);
124 124
 		} catch (MemberLevelException $e) {
125
-			throw new MemberHelperException('method ' . $levelString . ' not found');
125
+			throw new MemberHelperException('method '.$levelString.' not found');
126 126
 		}
127 127
 
128 128
 		if ($this->member->getLevel() >= $level) {
129
-			throw new MemberLevelException('Member cannot be ' . $levelString);
129
+			throw new MemberLevelException('Member cannot be '.$levelString);
130 130
 		}
131 131
 	}
132 132
 
Please login to merge, or discard this patch.
lib/Command/MembersLevel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
 		$level = Member::parseLevelString($input->getArgument('level'));
109 109
 		$outcome = $this->memberService->memberLevel($memberId, $level);
110 110
 
111
-		echo json_encode($outcome, JSON_PRETTY_PRINT) . "\n";
111
+		echo json_encode($outcome, JSON_PRETTY_PRINT)."\n";
112 112
 
113 113
 		return 0;
114 114
 	}
Please login to merge, or discard this patch.
lib/Command/MembersRemove.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
 
107 107
 		$outcome = $this->memberService->removeMember($memberId);
108 108
 
109
-		echo json_encode($outcome, JSON_PRETTY_PRINT) . "\n";
109
+		echo json_encode($outcome, JSON_PRETTY_PRINT)."\n";
110 110
 
111 111
 		return 0;
112 112
 	}
Please login to merge, or discard this patch.
lib/Service/RemoteService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
 			$loop++;
190 190
 			if ($loop > 10 || in_array($instance, $knownInstance)) {
191 191
 				throw new CircleNotFoundException(
192
-					'circle not found after browsing ' . implode(', ', $knownInstance)
192
+					'circle not found after browsing '.implode(', ', $knownInstance)
193 193
 				);
194 194
 			}
195 195
 			$knownInstance[] = $instance;
Please login to merge, or discard this patch.
lib/Service/RemoteStreamService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
 
262 262
 		$request = new NC21Request('', $type);
263 263
 		if ($this->configService->isLocalInstance($instance)) {
264
-			$this->configService->configureRequest($request, 'circles.Remote.' . $item, $params);
264
+			$this->configService->configureRequest($request, 'circles.Remote.'.$item, $params);
265 265
 		} else {
266 266
 			$this->configService->configureRequest($request);
267 267
 			$link = $this->getRemoteInstanceEntry($instance, $item, $params);
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
 	public function getCachedRemoteInstance(string $instance): RemoteInstance {
318 318
 		$remoteInstance = $this->remoteRequest->getFromInstance($instance);
319 319
 		if ($remoteInstance->getType() === RemoteInstance::TYPE_UNKNOWN) {
320
-			throw new UnknownRemoteException($instance . ' is set as \'unknown\' in database');
320
+			throw new UnknownRemoteException($instance.' is set as \'unknown\' in database');
321 321
 		}
322 322
 
323 323
 		return $remoteInstance;
Please login to merge, or discard this patch.
lib/Command/CirclesList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
 		}
167 167
 
168 168
 		if ($input->getOption('json')) {
169
-			echo json_encode($circles, JSON_PRETTY_PRINT) . "\n";
169
+			echo json_encode($circles, JSON_PRETTY_PRINT)."\n";
170 170
 
171 171
 			return 0;
172 172
 		}
Please login to merge, or discard this patch.
lib/Command/CirclesDetails.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@
 block discarded – undo
157 157
 			}
158 158
 		}
159 159
 
160
-		echo json_encode($circle, JSON_PRETTY_PRINT) . "\n";
160
+		echo json_encode($circle, JSON_PRETTY_PRINT)."\n";
161 161
 
162 162
 		return 0;
163 163
 	}
Please login to merge, or discard this patch.
lib/Service/CircleService.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
 	 * @param string $name
122 122
 	 * @param FederatedUser|null $owner
123 123
 	 *
124
-	 * @return Circle
124
+	 * @return SimpleDataStore
125 125
 	 * @throws FederatedEventException
126 126
 	 * @throws InitiatorNotConfirmedException
127 127
 	 * @throws InitiatorNotFoundException
Please login to merge, or discard this patch.