YetiForceCompany/YetiForceCRM

View on GitHub
app/Pdf/Pdf.php

Summary

Maintainability
B
5 hrs
Test Coverage
F
16%

Function getSupportedDrivers has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
Open

    public static function getSupportedDrivers(): array
    {
        $drivers = [];
        foreach ((new \DirectoryIterator(__DIR__ . \DIRECTORY_SEPARATOR . 'Drivers')) as $fileInfo) {
            $fileName = $fileInfo->getBasename('.php');
Severity: Minor
Found in app/Pdf/Pdf.php - About 1 hr to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Missing class import via use statement (line '56', column '17').
Open

        foreach ((new \DirectoryIterator(__DIR__ . \DIRECTORY_SEPARATOR . 'Drivers')) as $fileInfo) {
Severity: Minor
Found in app/Pdf/Pdf.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '116', column '17').
Open

        $merger = new \setasign\Fpdi\Fpdi();
Severity: Minor
Found in app/Pdf/Pdf.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Avoid using static access to class '\Vtiger_PDF_Model' in method 'getInstanceByTemplateId'.
Open

        $template = \Vtiger_PDF_Model::getInstanceById($templateId);
Severity: Minor
Found in app/Pdf/Pdf.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

Avoid using static access to class '\App\Log' in method 'getSupportedDrivers'.
Open

                    \App\Log::warning('Not found custom class: ' . $className);
Severity: Minor
Found in app/Pdf/Pdf.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

Avoid using static access to class '\App\Language' in method 'getDriverLabel'.
Open

            $label = \App\Language::translate($className::DRIVER_NAME, 'Settings::PDF');
Severity: Minor
Found in app/Pdf/Pdf.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

Define a constant instead of duplicating this literal "\App\Pdf\Drivers\" 3 times.
Open

                $className = '\App\Pdf\Drivers\\' . $fileName;
Severity: Critical
Found in app/Pdf/Pdf.php by sonar-php

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

function run() {
  prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
  execute('action1');
  release('action1');
}

Compliant Solution

ACTION_1 = 'action1';

function run() {
  prepare(ACTION_1);
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Call to method Output from undeclared class \setasign\Fpdi\Fpdi
Open

        $merger->Output($path, $pdfFlag);
Severity: Critical
Found in app/Pdf/Pdf.php by phan

Call to method AddPage from undeclared class \setasign\Fpdi\Fpdi
Open

                $merger->AddPage(($size['width'] > $size['height']) ? 'L' : 'P', [$size['width'], $size['height']]);
Severity: Critical
Found in app/Pdf/Pdf.php by phan

Call to method warning from undeclared class \App\Log
Open

                    \App\Log::warning('Not found custom class: ' . $className);
Severity: Critical
Found in app/Pdf/Pdf.php by phan

Call to method importPage from undeclared class \setasign\Fpdi\Fpdi
Open

                $template = $merger->importPage($i);
Severity: Critical
Found in app/Pdf/Pdf.php by phan

Call to method useTemplate from undeclared class \setasign\Fpdi\Fpdi
Open

                $merger->useTemplate($template);
Severity: Critical
Found in app/Pdf/Pdf.php by phan

Call to method setSourceFile from undeclared class \setasign\Fpdi\Fpdi
Open

            $pageCount = $merger->setSourceFile($file);
Severity: Critical
Found in app/Pdf/Pdf.php by phan

Call to method __construct from undeclared class \setasign\Fpdi\Fpdi
Open

        $merger = new \setasign\Fpdi\Fpdi();
Severity: Critical
Found in app/Pdf/Pdf.php by phan

Call to method getTemplateSize from undeclared class \setasign\Fpdi\Fpdi
Open

                $size = $merger->getTemplateSize($template);
Severity: Critical
Found in app/Pdf/Pdf.php by phan

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    public static function getPageFormats(): array
    {
        return [
            '4A0',
            '2A0',
Severity: Major
Found in app/Pdf/Pdf.php and 1 other location - About 4 hrs to fix
modules/Settings/PDF/models/Module.php on lines 94..115

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 173.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Spaces must be used to indent lines; tabs are not allowed
Open

     * Get page formats.
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    }
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public static function getSupportedDrivers(): array
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            }
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /**
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return string[]
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'DEMY', //    'Demy' format paperback size 135x216mm
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

                    continue;
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

                }
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'LEDGER',
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $drivers = [];
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        foreach ((new \DirectoryIterator(__DIR__ . \DIRECTORY_SEPARATOR . 'Drivers')) as $fileInfo) {
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     */
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public static function getPageFormats(): array
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        return [
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'SRA0', 'SRA1', 'SRA2', 'SRA3', 'SRA4',
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'FOLIO',
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return string[]
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

                }
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    {
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        ];
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            '4A0',
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'B0', 'B1', 'B2', 'B3', 'B4', 'B5', 'B6', 'B7', 'B8', 'B9', 'B10',
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'A', //    'A' format paperback size 111x178mm
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     */
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

                if ($className::isActive()) {
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /**
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * Get driver label.
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'RA0', 'RA1', 'RA2', 'RA3', 'RA4',
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

                    \App\Log::warning('Not found custom class: ' . $className);
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'C0', 'C1', 'C2', 'C3', 'C4', 'C5', 'C6', 'C7', 'C8', 'C9', 'C10',
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'ROYAL', //    'Royal' format paperback size 153x234mm
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * Get supported drivers for generating PDF.
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            '2A0',
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     */
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'LETTER',
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'B', //    'B' format paperback size 128x198mm
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /**
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

                    $drivers[$fileName] = $className::DRIVER_NAME;
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return string
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'A0', 'A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'A7', 'A8', 'A9', 'A10',
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

                $className = '\App\Pdf\Drivers\\' . $fileName;
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'EXECUTIVE',
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        return $drivers;
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        }
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     */
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            $pageCount = $merger->setSourceFile($file);
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

                $merger->AddPage(($size['width'] > $size['height']) ? 'L' : 'P', [$size['width'], $size['height']]);
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    }
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'LEGAL',
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'TABLOID',
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    {
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            $fileName = $fileInfo->getBasename('.php');
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public static function getDriverLabel(string $name): string
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            if ('Base' !== $fileName && 'php' === $fileInfo->getExtension()) {
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return Drivers\Base
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            }
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    }
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @param string $name
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * Function that merges PDF files into one.
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return void
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    {
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public static function getInstanceByTemplateId(int $templateId): Drivers\Base
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $merger = new \setasign\Fpdi\Fpdi();
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        foreach ($files as $file) {
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        return $label;
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @param int $templateId
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @param string   $path    File name or path to write
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

                if (!class_exists($className)) {
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        }
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        if (class_exists($className)) {
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $merger->Output($path, $pdfFlag);
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

                $template = $merger->importPage($i);
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

                $merger->useTemplate($template);
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        return $pdf;
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @param string[] $files   List of files to merge
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            $label = \App\Language::translate($className::DRIVER_NAME, 'Settings::PDF');
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @param string   $pdfFlag Merge mode e.g. `I` = show in browser , `D` = download , `F` = save to file
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public static function merge(array $files, string $path, string $pdfFlag): void
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

                $size = $merger->getTemplateSize($template);
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    {
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $className = '\App\Pdf\Drivers\\' . $name;
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $label = $name;
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * Get PDF instance by template id.
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $className = '\App\Pdf\Drivers\\' . $template->get('generator');
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     */
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            for ($i = 1; $i <= $pageCount; ++$i) {
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /**
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $template = \Vtiger_PDF_Model::getInstanceById($templateId);
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $pdf = new $className();
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    }
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $pdf->setTemplate($template);
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    {
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        }
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    }
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /**
Severity: Minor
Found in app/Pdf/Pdf.php by phpcodesniffer

There are no issues that match your filters.

Category
Status