:octocat: fix PHPCS config, add Slevomat rules

This commit is contained in:
smiley
2024-07-21 14:54:15 +02:00
parent 89cdd09044
commit f32696c8a7
97 changed files with 462 additions and 654 deletions
+9 -1
View File
@@ -81,9 +81,17 @@ trait BuildDirTrait{
/**
* returns the contents of the given build file
*
* @throws \RuntimeException
*/
protected function getBuildFileContent(string $fileSubPath):string{
return file_get_contents($this->getBuildFilePath($fileSubPath));
$content = file_get_contents($this->getBuildFilePath($fileSubPath));
if($content === false){
throw new RuntimeException('file_get_contents() error while reading build file');
}
return $content;
}
}