code style only

This commit is contained in:
odain
2026-05-20 06:57:45 +02:00
parent 2ecd2d7a96
commit 38e8bacd07
4 changed files with 13 additions and 8 deletions

View File

@@ -103,8 +103,9 @@ class ConfigTest extends ItopTestCase
$this->assertEquals($this->GetModuleSettingSection($sConfigFile), $this->GetModuleSettingSection($sTmpFile));
}
private function GetModuleSettingSection(string $sFilePath) : string {
private function GetModuleSettingSection(string $sFilePath): string
{
preg_match('/\$MyModuleSettings[\w\W]*\/\*\*/m', file_get_contents($sFilePath), $aMatches);
return preg_replace(['/[ ]+/', '/[ ]+/'],[' ', ' '], $aMatches[0]);
return preg_replace(['/[ ]+/', '/[ ]+/'], [' ', ' '], $aMatches[0]);
}
}