norse-blue/php-xmlify

View on GitHub

Showing 12 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

    Expected an indentation at 4 instead of at 2.
    Open

      </coverage>
    Severity: Minor
    Found in phpunit.xml.dist by editorconfig

    Expected an indentation at 8 instead of at 9.
    Open

             bootstrap="vendor/autoload.php"
    Severity: Minor
    Found in phpunit.xml.dist by editorconfig

    Expected an indentation at 8 instead of at 9.
    Open

             colors="true"
    Severity: Minor
    Found in phpunit.xml.dist by editorconfig

    Expected an indentation at 8 instead of at 6.
    Open

          <directory>./tests</directory>
    Severity: Minor
    Found in phpunit.xml.dist by editorconfig

    Expected an indentation at 8 instead of at 6.
    Open

          <directory suffix=".php">./src</directory>
    Severity: Minor
    Found in phpunit.xml.dist by editorconfig

    Expected an indentation at 4 instead of at 2.
    Open

      </testsuites>
    Severity: Minor
    Found in phpunit.xml.dist by editorconfig

    Expected an indentation at 8 instead of at 9.
    Open

             xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
    Severity: Minor
    Found in phpunit.xml.dist by editorconfig

    TODO found
    Confirmed

                // TODO: if the parent has a namespace, add that namespace to childs
    Severity: Minor
    Found in src/XmlifyHandler.php by fixme

    Expected an indentation at 4 instead of at 2.
    Open

      <testsuites>
    Severity: Minor
    Found in phpunit.xml.dist by editorconfig

    Expected an indentation at 4 instead of at 2.
    Open

      <coverage>
    Severity: Minor
    Found in phpunit.xml.dist by editorconfig

    Expected an indentation at 8 instead of at 9.
    Open

             cacheDirectory=".phpunit.cache"
    Severity: Minor
    Found in phpunit.xml.dist by editorconfig
    Severity
    Category
    Status
    Source
    Language