protected findNewestLocalLogfile ( $path ) : mixed | ||
$path | ||
return | mixed |
protected function findNewestLocalLogfile($path)
{
$files = glob($path . '/*.log');
$files = array_combine($files, array_map('filemtime', $files));
arsort($files);
$newestLogFile = key($files);
return $newestLogFile;
}