$files * @param \Closure(\Pest\Profanity\Result): void $callback * @param array $excludingWords * @param array $includingWords * @param array|null $languages */ public static function analyse( array $files, Closure $callback, array $excludingWords = [], array $includingWords = [], $languages = null ): void { foreach ($files as $file) { $errors = ProfanityAnalyser::analyse($file, $excludingWords, $includingWords, $languages); $callback(new Result($file, $errors)); } } }