Completed
Pull Request — master (#290)
by Maxence
17s
created
lib/Service/FilesService.php 1 patch
Spacing   +10 added lines, -10 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;
@@ -702,7 +702,7 @@  discard block
 block discarded – undo
702 702
 
703 703
 		$part = [];
704 704
 		foreach ($comments as $comment) {
705
-			$part[] = '<' . $comment->getActorId() . '> ' . $comment->getMessage();
705
+			$part[] = '<'.$comment->getActorId().'> '.$comment->getMessage();
706 706
 		}
707 707
 
708 708
 		$document->addPart('comments', implode(" \n ", $part));
@@ -736,7 +736,7 @@  discard block
 block discarded – undo
736 736
 				$shareNames[$this->secureUsername($username)] =
737 737
 					(!is_string($path)) ? $path = '' : $path;
738 738
 			} catch (Throwable $e) {
739
-				$this->logger->debug('Issue while getting information on documentId:' . $document->getId(), ['exception' => $e]);
739
+				$this->logger->debug('Issue while getting information on documentId:'.$document->getId(), ['exception' => $e]);
740 740
 			}
741 741
 		}
742 742
 
@@ -953,7 +953,7 @@  discard block
 block discarded – undo
953 953
 
954 954
 					// Construct XML
955 955
 					$diagram_xml = simplexml_load_string($diagram_str);
956
-					$content = $content . ' ' . $this->readDrawioXmlValue($diagram_xml);
956
+					$content = $content.' '.$this->readDrawioXmlValue($diagram_xml);
957 957
 				}
958 958
 			} catch (\Throwable $t) {
959 959
 			}
@@ -985,15 +985,15 @@  discard block
 block discarded – undo
985 985
 	private function readDrawioXmlValue(\SimpleXMLElement $element) {
986 986
 		$str = '';
987 987
 		if ($element['value'] !== null && trim(strval($element['value'])) !== '') {
988
-			$str = $str . " " . trim(strval($element['value']));
988
+			$str = $str." ".trim(strval($element['value']));
989 989
 		}
990 990
 		if ($element !== null && trim(strval($element)) !== '') {
991
-			$str = $str . " " . trim(strval($element));
991
+			$str = $str." ".trim(strval($element));
992 992
 		}
993 993
 
994 994
 		try {
995 995
 			foreach ($element->children() as $child) {
996
-				$str = $str . " " . $this->readDrawioXmlValue($child);
996
+				$str = $str." ".$this->readDrawioXmlValue($child);
997 997
 			}
998 998
 		} finally {
999 999
 		}
@@ -1246,7 +1246,7 @@  discard block
 block discarded – undo
1246 1246
 			$path = '';
1247 1247
 		}
1248 1248
 
1249
-		$result = (($entrySlash) ? '/' : '') . $path;
1249
+		$result = (($entrySlash) ? '/' : '').$path;
1250 1250
 		$this->logger->debug(
1251 1251
 			'getPathFromRoot', [
1252 1252
 				'path' => $path,
Please login to merge, or discard this patch.