attogram/currency-exchange-rates

View on GitHub
src/Feeds/Feed.php

Summary

Maintainability
A
0 mins
Test Coverage

The method Feed::__construct() calls the typical debug function print_r() which is mostly only used during development.
Open

        $this->verbose('<textarea rows="10" cols="100">' . print_r($this->data, true) . '</textarea>');
Severity: Minor
Found in src/Feeds/Feed.php by phpmd

DevelopmentCodeFragment

Since: 2.3.0

Functions like vardump(), printr() etc. are normally only used during development and therefore such calls in production code are a good indicator that they were just forgotten.

Example

class SuspectCode {

    public function doSomething(array $items)
    {
        foreach ($items as $i => $item) {
            // …

            if ('qafoo' == $item) var_dump($i);

            // …
        }
    }
}

Source https://phpmd.org/rules/design.html#developmentcodefragment

The method Feed::__construct() calls the typical debug function print_r() which is mostly only used during development.
Open

            $this->verbose('<textarea rows="5" cols="100">' . print_r($this->lines, true) . '</textarea>');
Severity: Minor
Found in src/Feeds/Feed.php by phpmd

DevelopmentCodeFragment

Since: 2.3.0

Functions like vardump(), printr() etc. are normally only used during development and therefore such calls in production code are a good indicator that they were just forgotten.

Example

class SuspectCode {

    public function doSomething(array $items)
    {
        foreach ($items as $i => $item) {
            // …

            if ('qafoo' == $item) var_dump($i);

            // …
        }
    }
}

Source https://phpmd.org/rules/design.html#developmentcodefragment

There are no issues that match your filters.

Category
Status