Completed
Push — master ( c5eb0f...e74c52 )
by Maxence
33s queued 17s
created
lib/Service/FilesService.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 		} catch (NotFoundException $e) {
118 118
 			return [];
119 119
 		} catch (Throwable $e) {
120
-			$this->logger->warning('Issue while retrieving rootFolder for ' . $userId, ['exception' => $e]);
120
+			$this->logger->warning('Issue while retrieving rootFolder for '.$userId, ['exception' => $e]);
121 121
 			return [];
122 122
 		}
123 123
 
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
 		$tagIds = $this->systemTagObjectMapper->getTagIdsForObjects([$file->getId()], 'files');
367 367
 		if (array_key_exists($file->getId(), $tagIds)) {
368 368
 			$tags = array_values(
369
-				array_map(function (ISystemTag $tag): string {
369
+				array_map(function(ISystemTag $tag): string {
370 370
 					return $tag->getName();
371 371
 				}, $this->systemTagManager->getTagsByIds($tagIds[$file->getId()]))
372 372
 			);
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
 				]
385 385
 			);
386 386
 		} else {
387
-			$this->logger->warning('stat() on File #' . $file->getId() . ' is not an array: ' . json_encode($stat));
387
+			$this->logger->warning('stat() on File #'.$file->getId().' is not an array: '.json_encode($stat));
388 388
 		}
389 389
 
390 390
 		return $document;
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
 		}
441 441
 
442 442
 		if ($this->userManager->get($userId) === null) {
443
-			throw new NoUserException('User does not exist: ' . $userId);
443
+			throw new NoUserException('User does not exist: '.$userId);
444 444
 		}
445 445
 
446 446
 		$files = $this->rootFolder->getUserFolder($userId)
@@ -707,7 +707,7 @@  discard block
 block discarded – undo
707 707
 
708 708
 		$part = [];
709 709
 		foreach ($comments as $comment) {
710
-			$part[] = '<' . $comment->getActorId() . '> ' . $comment->getMessage();
710
+			$part[] = '<'.$comment->getActorId().'> '.$comment->getMessage();
711 711
 		}
712 712
 
713 713
 		$document->addPart('comments', implode(" \n ", $part));
@@ -741,7 +741,7 @@  discard block
 block discarded – undo
741 741
 				$shareNames[$this->secureUsername($username)] =
742 742
 					(!is_string($path)) ? $path = '' : $path;
743 743
 			} catch (Throwable $e) {
744
-				$this->logger->warning('Issue while getting information on documentId:' . $document->getId(), ['exception' => $e]);
744
+				$this->logger->warning('Issue while getting information on documentId:'.$document->getId(), ['exception' => $e]);
745 745
 			}
746 746
 		}
747 747
 
@@ -958,7 +958,7 @@  discard block
 block discarded – undo
958 958
 
959 959
 					// Construct XML
960 960
 					$diagram_xml = simplexml_load_string($diagram_str);
961
-					$content = $content . ' ' . $this->readDrawioXmlValue($diagram_xml);
961
+					$content = $content.' '.$this->readDrawioXmlValue($diagram_xml);
962 962
 				}
963 963
 			} catch (\Throwable $t) {
964 964
 			}
@@ -990,15 +990,15 @@  discard block
 block discarded – undo
990 990
 	private function readDrawioXmlValue(\SimpleXMLElement $element) {
991 991
 		$str = '';
992 992
 		if ($element['value'] !== null && trim(strval($element['value'])) !== '') {
993
-			$str = $str . " " . trim(strval($element['value']));
993
+			$str = $str." ".trim(strval($element['value']));
994 994
 		}
995 995
 		if ($element !== null && trim(strval($element)) !== '') {
996
-			$str = $str . " " . trim(strval($element));
996
+			$str = $str." ".trim(strval($element));
997 997
 		}
998 998
 
999 999
 		try {
1000 1000
 			foreach ($element->children() as $child) {
1001
-				$str = $str . " " . $this->readDrawioXmlValue($child);
1001
+				$str = $str." ".$this->readDrawioXmlValue($child);
1002 1002
 			}
1003 1003
 		} finally {
1004 1004
 		}
@@ -1249,7 +1249,7 @@  discard block
 block discarded – undo
1249 1249
 			$path = '';
1250 1250
 		}
1251 1251
 
1252
-		$result = (($entrySlash) ? '/' : '') . $path;
1252
+		$result = (($entrySlash) ? '/' : '').$path;
1253 1253
 		$this->logger->debug(
1254 1254
 			'getPathFromRoot', [
1255 1255
 				'path' => $path,
Please login to merge, or discard this patch.