Laravel pint fixes

            ->filter(fn ($id) => !isset (self::$statisticsStorage[$id]))

to

            ->filter(fn ($id) => !isset(self::$statisticsStorage[$id]))

saying no_spaces_after_function_name is used

Your extension setup is:

    "php.format.rules.blankLinesAfterFunction": 1,
    "php.format.rules.spaceBeforeParenthesesInArrowFunctions": true,
    "php.format.rules.alignConsecutiveAssignments": true,
    "php.format.rules.alignMatchArmBodies": true,
    "php.format.rules.arrayInitializersAlignKeyValuePairs": true,
    "php.format.rules.spaceBeforeParenthesesInCalls": false,

Your extensions formats to the first case (add space after isset)

Can this be fixed or is there any special rule for this case?

Full code fragment:

    public static function preloadStatistics($reports, array $statistics): void
    {
        // Get report IDs that are not in cache
        $reportIds = collect($reports)->pluck('id')
            ->filter(fn ($id) => !isset(self::$statisticsStorage[$id]))
            ->values()
            ->toArray();

        if (empty($reportIds)) {
            return;
        }

        $query = self::buildBaseStatisticsQuery($statistics)
            ->whereIn('report_id', $reportIds)
            ->groupBy('report_id');

        // Cache results
        foreach ($query->get() as $stat) {
            self::$statisticsStorage[$stat->id] = $stat;
        }
    }

    Hello,

    Thank you very much. I can confirm this is an issue, will be fixed asap.

    Thanks!

    This has been fixed and it will be released in the next update.

    Thanks!

    Write a Reply...