protected static function lintCheckFileAccessible(LogFile $logFile) { $return = ['message' => 'Checking if "' . $logFile->getName() . '" is accessible']; try { if (!LogFileCache::isSourceFileAccessible($logFile)) { throw new \Exception('File does not exist on target file system.'); } $return['status'] = 'ok'; } catch (\Exception $e) { $return['status'] = 'fail'; $return['error'] = $e->getMessage(); } return $return; }