protected function getIndex(SplFileInfo $file, $content, $key = null)
    {
        if ($key === null || !isset($content[$key])) {
            return static::getName($file);
        }

        $index = $content[$key];

        if ($index instanceof DateTime) {
            return $index->format('U');
        }

        return (string) $index;
    }