You are here

private function LintCommand::isReadable in Lockr 7.3

1 call to LintCommand::isReadable()
LintCommand::execute in vendor/symfony/yaml/Command/LintCommand.php

File

vendor/symfony/yaml/Command/LintCommand.php, line 238

Class

LintCommand
Validates YAML files syntax and outputs encountered errors.

Namespace

Symfony\Component\Yaml\Command

Code

private function isReadable($fileOrDirectory) {
  $default = function ($fileOrDirectory) {
    return is_readable($fileOrDirectory);
  };
  if (null !== $this->isReadableProvider) {
    return \call_user_func($this->isReadableProvider, $fileOrDirectory, $default);
  }
  return $default($fileOrDirectory);
}