public static function readFile(string $file): string
    {
        $contents = @\file_get_contents($file);
        
        if ($contents === false) {
            throw new \RuntimeException(\sprintf('File not found: "%s"', $file));
        }
        
        return $contents;
    }
public static function readFile(string $file): string
    {
        $contents = @\file_get_contents($file);
        
        if ($contents === false) {
            throw new \RuntimeException(\sprintf('File not found: "%s"', $file));
        }
        
        return $contents;
    }
public static function readFile ( string $ file ) : string { $ contents = @ \ file_get_contents ( $ file ) ; if ( $ contents === false ) { throw new \ RuntimeException ( \ sprintf ( 'File not found: "%s"' , $ file ) ) ; } return $ contents ; }
Read contents of the given file into a string and return it.

@throws \RuntimeException When the specified file was not found.
Read contents of the given file into a string and return it .