mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-26 22:08:11 +00:00
:octocat: fix PHPCS config, add Slevomat rules
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user