PhpCsFixer\Test\IntegrationCaseFactory::determineCode PHP Метод

determineCode() приватный Метод

private determineCode ( string | null $code, Symfony\Component\Finder\SplFileInfo $file, string $suffix ) : string | null
$code string | null
$file Symfony\Component\Finder\SplFileInfo
$suffix string
Результат string | null
    private function determineCode($code, SplFileInfo $file, $suffix)
    {
        if (null !== $code) {
            return $code;
        }
        $candidateFile = new SplFileInfo($file->getPathname() . $suffix, '', '');
        if ($candidateFile->isFile()) {
            return $candidateFile->getContents();
        }
    }