reliqarts/laravel-docweaver

View on GitHub
src/Helper/FileHelper.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

/**
 * @noinspection PhpTooManyParametersInspection
 */

declare(strict_types=1);

namespace ReliqArts\Docweaver\Helper;

use ReliqArts\Docweaver\Contract\FileHelper as FileHelperContract;

final class FileHelper implements FileHelperContract
{
    public function realPath(string $path)
    {
        return realpath($path);
    }

    public function getFileContents(string $filename, bool $useIncludePath = false)
    {
        return file_get_contents($filename, $useIncludePath);
    }
}