squirrelphp/twig-php-syntax

View on GitHub
src/PhpSyntaxExtension.php

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Method getFilters has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getFilters(): array
    {
        return [
            new TwigFilter('strtotime', function (string $time, ?int $now = null): int {
                $timestamp = \strtotime($time, $now ?? time());
Severity: Minor
Found in src/PhpSyntaxExtension.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status