norse-blue/php-xmlify

View on GitHub

Showing 1 of 21 total issues

Method createElementDataMapping has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function createElementDataMapping(ReflectionProperty|ReflectionMethod $reflected): ElementDataMapping
    {
        $attribute = $reflected->getAttributes(AsXmlElement::class, ReflectionAttribute::IS_INSTANCEOF)[0];

        /** @return array|Collection<int, mixed>|Xmlifiable|Stringable|null */
Severity: Minor
Found in src/Resolvers/Target/Collection/ElementsTargetResolver.php - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language