@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | $files = $this->rootFolder->getUserFolder($userId) |
| 231 | 231 | ->get($indexOptions->getOption('path', '/')); |
| 232 | 232 | } catch (Throwable $e) { |
| 233 | - $this->log(2, 'Issue while retrieving rootFolder for ' . $userId); |
|
| 233 | + $this->log(2, 'Issue while retrieving rootFolder for '.$userId); |
|
| 234 | 234 | |
| 235 | 235 | return []; |
| 236 | 236 | } |
@@ -480,7 +480,7 @@ discard block |
||
| 480 | 480 | $tagIds = $this->systemTagObjectMapper->getTagIdsForObjects([$file->getId()], 'files'); |
| 481 | 481 | if (array_key_exists($file->getId(), $tagIds)) { |
| 482 | 482 | $tags = array_values( |
| 483 | - array_map(function (ISystemTag $tag): string { |
|
| 483 | + array_map(function(ISystemTag $tag): string { |
|
| 484 | 484 | return $tag->getName(); |
| 485 | 485 | }, $this->systemTagManager->getTagsByIds($tagIds[$file->getId()])) |
| 486 | 486 | ); |
@@ -498,7 +498,7 @@ discard block |
||
| 498 | 498 | ] |
| 499 | 499 | ); |
| 500 | 500 | } else { |
| 501 | - $this->log(2, 'stat() on File #' . $file->getId() . ' is not an array: ' . json_encode($stat)); |
|
| 501 | + $this->log(2, 'stat() on File #'.$file->getId().' is not an array: '.json_encode($stat)); |
|
| 502 | 502 | } |
| 503 | 503 | |
| 504 | 504 | return $document; |
@@ -615,8 +615,8 @@ discard block |
||
| 615 | 615 | $document->getIndex() |
| 616 | 616 | ->setStatus(IIndex::INDEX_IGNORE); |
| 617 | 617 | $this->miscService->log( |
| 618 | - 'Exception while generateDocument: ' . $e->getMessage() . ' (' . get_class($e) . ') at ' |
|
| 619 | - . $e->getFile() . ' line ' . $e->getLine() |
|
| 618 | + 'Exception while generateDocument: '.$e->getMessage().' ('.get_class($e).') at ' |
|
| 619 | + . $e->getFile().' line '.$e->getLine() |
|
| 620 | 620 | ); |
| 621 | 621 | } |
| 622 | 622 | } |
@@ -819,7 +819,7 @@ discard block |
||
| 819 | 819 | |
| 820 | 820 | $part = []; |
| 821 | 821 | foreach ($comments as $comment) { |
| 822 | - $part[] = '<' . $comment->getActorId() . '> ' . $comment->getMessage(); |
|
| 822 | + $part[] = '<'.$comment->getActorId().'> '.$comment->getMessage(); |
|
| 823 | 823 | } |
| 824 | 824 | |
| 825 | 825 | $document->addPart('comments', implode(" \n ", $part)); |
@@ -854,7 +854,7 @@ discard block |
||
| 854 | 854 | (!is_string($path)) ? $path = '' : $path; |
| 855 | 855 | } catch (Throwable $e) { |
| 856 | 856 | $this->miscService->log( |
| 857 | - 'Issue while getting information on documentId:' . $document->getId(), 0 |
|
| 857 | + 'Issue while getting information on documentId:'.$document->getId(), 0 |
|
| 858 | 858 | ); |
| 859 | 859 | } |
| 860 | 860 | } |
@@ -905,7 +905,7 @@ discard block |
||
| 905 | 905 | } |
| 906 | 906 | |
| 907 | 907 | // 20220219 Parse .drawio file |
| 908 | - if ($extension === 'drawio') { |
|
| 908 | + if ($extension === 'drawio') { |
|
| 909 | 909 | $parsed = self::MIMETYPE_TEXT; |
| 910 | 910 | throw new KnownFileMimeTypeException(); |
| 911 | 911 | } |
@@ -1052,7 +1052,7 @@ discard block |
||
| 1052 | 1052 | } |
| 1053 | 1053 | |
| 1054 | 1054 | // 20220219 Inflate drawio file |
| 1055 | - if ( $file->getExtension() === 'drawio') { |
|
| 1055 | + if ($file->getExtension() === 'drawio') { |
|
| 1056 | 1056 | $content = $file->getContent(); |
| 1057 | 1057 | |
| 1058 | 1058 | try { |
@@ -1072,7 +1072,7 @@ discard block |
||
| 1072 | 1072 | |
| 1073 | 1073 | // Construct XML |
| 1074 | 1074 | $diagram_xml = simplexml_load_string($diagram_str); |
| 1075 | - $content = $content . ' ' . $this->readDrawioXmlValue($diagram_xml); |
|
| 1075 | + $content = $content.' '.$this->readDrawioXmlValue($diagram_xml); |
|
| 1076 | 1076 | } |
| 1077 | 1077 | |
| 1078 | 1078 | } catch (\Throwable $t) { |
@@ -1104,16 +1104,16 @@ discard block |
||
| 1104 | 1104 | */ |
| 1105 | 1105 | private function readDrawioXmlValue(\SimpleXMLElement $element) { |
| 1106 | 1106 | $str = ''; |
| 1107 | - if( $element['value'] != null && trim(strval($element['value'])) !== '') { |
|
| 1108 | - $str = $str . " " . trim(strval($element['value'])); |
|
| 1107 | + if ($element['value'] != null && trim(strval($element['value'])) !== '') { |
|
| 1108 | + $str = $str." ".trim(strval($element['value'])); |
|
| 1109 | 1109 | } |
| 1110 | - if( $element != null && trim(strval($element)) !== '') { |
|
| 1111 | - $str = $str . " " . trim(strval($element)); |
|
| 1110 | + if ($element != null && trim(strval($element)) !== '') { |
|
| 1111 | + $str = $str." ".trim(strval($element)); |
|
| 1112 | 1112 | } |
| 1113 | 1113 | |
| 1114 | 1114 | try { |
| 1115 | 1115 | foreach ($element->children() as $child) { |
| 1116 | - $str = $str . " " . $this->readDrawioXmlValue($child); |
|
| 1116 | + $str = $str." ".$this->readDrawioXmlValue($child); |
|
| 1117 | 1117 | } |
| 1118 | 1118 | } finally { |
| 1119 | 1119 | } |
@@ -1367,7 +1367,7 @@ discard block |
||
| 1367 | 1367 | $path = ''; |
| 1368 | 1368 | } |
| 1369 | 1369 | |
| 1370 | - $result = (($entrySlash) ? '/' : '') . $path; |
|
| 1370 | + $result = (($entrySlash) ? '/' : '').$path; |
|
| 1371 | 1371 | $this->debug( |
| 1372 | 1372 | 'getPathFromRoot', [ |
| 1373 | 1373 | 'path' => $path, |