@@ -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 | );  | 
                                                        
@@ -611,8 +611,8 @@ discard block  | 
                                                    ||
| 611 | 611 | $document->getIndex()  | 
                                                        
| 612 | 612 | ->setStatus(IIndex::INDEX_IGNORE);  | 
                                                        
| 613 | 613 | $this->miscService->log(  | 
                                                        
| 614 | -				'Exception while generateDocument: ' . $e->getMessage() . ' (' . get_class($e) . ') at ' | 
                                                        |
| 615 | - . $e->getFile() . ' line ' . $e->getLine()  | 
                                                        |
| 614 | +				'Exception while generateDocument: '.$e->getMessage().' ('.get_class($e).') at ' | 
                                                        |
| 615 | + . $e->getFile().' line '.$e->getLine()  | 
                                                        |
| 616 | 616 | );  | 
                                                        
| 617 | 617 | }  | 
                                                        
| 618 | 618 | }  | 
                                                        
@@ -815,7 +815,7 @@ discard block  | 
                                                    ||
| 815 | 815 | |
| 816 | 816 | $part = [];  | 
                                                        
| 817 | 817 |  		foreach ($comments as $comment) { | 
                                                        
| 818 | - $part[] = '<' . $comment->getActorId() . '> ' . $comment->getMessage();  | 
                                                        |
| 818 | + $part[] = '<'.$comment->getActorId().'> '.$comment->getMessage();  | 
                                                        |
| 819 | 819 | }  | 
                                                        
| 820 | 820 | |
| 821 | 821 |  		$document->addPart('comments', implode(" \n ", $part)); | 
                                                        
@@ -850,7 +850,7 @@ discard block  | 
                                                    ||
| 850 | 850 | (!is_string($path)) ? $path = '' : $path;  | 
                                                        
| 851 | 851 |  			} catch (Throwable $e) { | 
                                                        
| 852 | 852 | $this->miscService->log(  | 
                                                        
| 853 | - 'Issue while getting information on documentId:' . $document->getId(), 0  | 
                                                        |
| 853 | + 'Issue while getting information on documentId:'.$document->getId(), 0  | 
                                                        |
| 854 | 854 | );  | 
                                                        
| 855 | 855 | }  | 
                                                        
| 856 | 856 | }  | 
                                                        
@@ -901,7 +901,7 @@ discard block  | 
                                                    ||
| 901 | 901 | }  | 
                                                        
| 902 | 902 | |
| 903 | 903 | // 20220219 Parse .drawio file  | 
                                                        
| 904 | -		if ($extension  === 'drawio') { | 
                                                        |
| 904 | +		if ($extension === 'drawio') { | 
                                                        |
| 905 | 905 | $parsed = self::MIMETYPE_TEXT;  | 
                                                        
| 906 | 906 | throw new KnownFileMimeTypeException();  | 
                                                        
| 907 | 907 | }  | 
                                                        
@@ -1048,7 +1048,7 @@ discard block  | 
                                                    ||
| 1048 | 1048 | }  | 
                                                        
| 1049 | 1049 | |
| 1050 | 1050 | // 20220219 Inflate drawio file  | 
                                                        
| 1051 | -		if ( $file->getExtension() === 'drawio') { | 
                                                        |
| 1051 | +		if ($file->getExtension() === 'drawio') { | 
                                                        |
| 1052 | 1052 | $content = $file->getContent();  | 
                                                        
| 1053 | 1053 | |
| 1054 | 1054 |  			try { | 
                                                        
@@ -1068,7 +1068,7 @@ discard block  | 
                                                    ||
| 1068 | 1068 | |
| 1069 | 1069 | // Construct XML  | 
                                                        
| 1070 | 1070 | $diagram_xml = simplexml_load_string($diagram_str);  | 
                                                        
| 1071 | - $content = $content . ' ' . $this->readDrawioXmlValue($diagram_xml);  | 
                                                        |
| 1071 | + $content = $content.' '.$this->readDrawioXmlValue($diagram_xml);  | 
                                                        |
| 1072 | 1072 | }  | 
                                                        
| 1073 | 1073 | |
| 1074 | 1074 |  			} catch (\Throwable $t) { | 
                                                        
@@ -1100,16 +1100,16 @@ discard block  | 
                                                    ||
| 1100 | 1100 | */  | 
                                                        
| 1101 | 1101 |  	private function readDrawioXmlValue(\SimpleXMLElement $element) { | 
                                                        
| 1102 | 1102 | $str = '';  | 
                                                        
| 1103 | -		if( $element['value'] != null && trim(strval($element['value'])) !== '') { | 
                                                        |
| 1104 | - $str = $str . " " . trim(strval($element['value']));  | 
                                                        |
| 1103 | +		if ($element['value'] != null && trim(strval($element['value'])) !== '') { | 
                                                        |
| 1104 | + $str = $str." ".trim(strval($element['value']));  | 
                                                        |
| 1105 | 1105 | }  | 
                                                        
| 1106 | -		if( $element != null && trim(strval($element)) !== '') { | 
                                                        |
| 1107 | - $str = $str . " " . trim(strval($element));  | 
                                                        |
| 1106 | +		if ($element != null && trim(strval($element)) !== '') { | 
                                                        |
| 1107 | + $str = $str." ".trim(strval($element));  | 
                                                        |
| 1108 | 1108 | }  | 
                                                        
| 1109 | 1109 | |
| 1110 | 1110 |  		try { | 
                                                        
| 1111 | 1111 |  			foreach ($element->children() as $child) { | 
                                                        
| 1112 | - $str = $str . " " . $this->readDrawioXmlValue($child);  | 
                                                        |
| 1112 | + $str = $str." ".$this->readDrawioXmlValue($child);  | 
                                                        |
| 1113 | 1113 | }  | 
                                                        
| 1114 | 1114 |  		} finally { | 
                                                        
| 1115 | 1115 | }  | 
                                                        
@@ -1363,7 +1363,7 @@ discard block  | 
                                                    ||
| 1363 | 1363 | $path = '';  | 
                                                        
| 1364 | 1364 | }  | 
                                                        
| 1365 | 1365 | |
| 1366 | - $result = (($entrySlash) ? '/' : '') . $path;  | 
                                                        |
| 1366 | + $result = (($entrySlash) ? '/' : '').$path;  | 
                                                        |
| 1367 | 1367 | $this->debug(  | 
                                                        
| 1368 | 1368 | 'getPathFromRoot', [  | 
                                                        
| 1369 | 1369 | 'path' => $path,  |