Completed
Pull Request — master (#1034)
by Maxence
23s
created
lib/InternalAsync/AsyncTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 
49 49
 	public function runAsynced(ReferencedDataStore $store): void {
50 50
 
51
-		\OC::$server->getLogger()->log(3, '-runAsynced ' . json_encode($store));
51
+		\OC::$server->getLogger()->log(3, '-runAsynced '.json_encode($store));
52 52
 		$this->asyncService->asyncInternal(
53 53
 			AsyncTest::class,
54 54
 			new ReferencedDataStore(
Please login to merge, or discard this patch.
lib/Service/AsyncService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 	 * @param ReferencedDataStore|null $store
169 169
 	 */
170 170
 	public function asyncInternal(string $internalAsync, ?ReferencedDataStore $store = null): void {
171
-		\OC::$server->getLogger()->log(3, '###ASYNCED### ' . json_encode($this->isAsynced()));
171
+		\OC::$server->getLogger()->log(3, '###ASYNCED### '.json_encode($this->isAsynced()));
172 172
 
173 173
 		if (is_null($store)) {
174 174
 			$store = new ReferencedDataStore();
@@ -236,16 +236,16 @@  discard block
 block discarded – undo
236 236
 		try {
237 237
 			$test = new ReflectionClass($class);
238 238
 		} catch (ReflectionException $e) {
239
-			throw new InternalAsyncException('ReflectionException with ' . $class . ': ' . $e->getMessage());
239
+			throw new InternalAsyncException('ReflectionException with '.$class.': '.$e->getMessage());
240 240
 		}
241 241
 
242 242
 		if (!in_array(IInternalAsync::class, $test->getInterfaceNames())) {
243
-			throw new InternalAsyncException($class . ' does not implements IInternalAsync');
243
+			throw new InternalAsyncException($class.' does not implements IInternalAsync');
244 244
 		}
245 245
 
246 246
 		$item = OC::$server->get($class);
247 247
 		if (!($item instanceof IInternalAsync)) {
248
-			throw new InternalAsyncException($class . ' not an IInternalAsync');
248
+			throw new InternalAsyncException($class.' not an IInternalAsync');
249 249
 		}
250 250
 
251 251
 		return $item;
Please login to merge, or discard this patch.
lib/Model/SyncedItemLock.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -201,14 +201,14 @@
 block discarded – undo
201 201
 	 * @throws ShareTokenNotFoundException
202 202
 	 */
203 203
 	public function importFromDatabase(array $data, string $prefix = ''): IQueryRow {
204
-		if ($this->get($prefix . 'token', $data) === '') {
204
+		if ($this->get($prefix.'token', $data) === '') {
205 205
 			throw new ShareTokenNotFoundException();
206 206
 		}
207 207
 
208 208
 //		$this->setSingleId($this->get($prefix . 'single_id', $data));
209
-		$this->setUpdateType($this->get($prefix . 'update_type', $data));
210
-		$this->setUpdateTypeId($this->get($prefix . 'update_type_id', $data));
211
-		$this->setTime($this->getInt($prefix . 'time', $data));
209
+		$this->setUpdateType($this->get($prefix.'update_type', $data));
210
+		$this->setUpdateTypeId($this->get($prefix.'update_type_id', $data));
211
+		$this->setTime($this->getInt($prefix.'time', $data));
212 212
 
213 213
 		return $this;
214 214
 	}
Please login to merge, or discard this patch.