meyfa/php-svg

View on GitHub
src/Nodes/Embedded/SVGImage.php

Summary

Maintainability
A
2 hrs
Test Coverage
D
63%

Method fromFile has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

        string $path,
        string $mimeType,
        $x = null,
        $y = null,
        $width = null,
Severity: Minor
Found in src/Nodes/Embedded/SVGImage.php - About 45 mins to fix

    Method fromString has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            string $imageContent,
            string $mimeType,
            $x = null,
            $y = null,
            $width = null,
    Severity: Minor
    Found in src/Nodes/Embedded/SVGImage.php - About 45 mins to fix

      Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          public function __construct(?string $href = null, $x = null, $y = null, $width = null, $height = null)
      Severity: Minor
      Found in src/Nodes/Embedded/SVGImage.php - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status