HuasoFoundries/jpgraph

View on GitHub

Showing 6,805 of 6,805 total issues

The method Hide has a boolean flag argument $aFlg, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function Hide($aFlg = true)
Severity: Minor
Found in src/graph/WindrosePlotScale.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

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

The method SetLabelFormat has a boolean flag argument $aDate, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function SetLabelFormat($aFormatString, $aDate = false)
Severity: Minor
Found in src/graph/Ticks.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

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

The method SupressLast has a boolean flag argument $aHide, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function SupressLast($aHide = true)
Severity: Minor
Found in src/graph/Ticks.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

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

The method SetLabelFillColor has a boolean flag argument $aBorderColor, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function SetLabelFillColor($aBkgColor, $aBorderColor = false)
Severity: Minor
Found in src/graph/WindrosePlotScale.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

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

The method Polygon has a boolean flag argument $aClosed, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function Polygon($p, $aClosed = false)
Severity: Minor
Found in src/graph/Shape.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

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

The method SupressZeroLabel has a boolean flag argument $aFlag, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function SupressZeroLabel($aFlag = true)
Severity: Minor
Found in src/graph/Ticks.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

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

The method AddText has a boolean flag argument $aToY2, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function AddText($aTxt, $aToY2 = false)
Severity: Minor
Found in src/graph/WindroseGraph.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

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

The method ShadowRectangle has a boolean flag argument $fcolor, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function ShadowRectangle($x1, $y1, $x2, $y2, $fcolor = false, $shadow_width = null, $shadow_color = [102, 102, 102])
Severity: Minor
Found in src/graph/Shape.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

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

The method SupressTickMarks has a boolean flag argument $aHide, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function SupressTickMarks($aHide = true)
Severity: Minor
Found in src/graph/Ticks.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

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

Remove error control operator '@' on line 66.
Open

    public function Stroke()
    {
        $n = strlen($this->iData);
        if ($n == 0) {
            return false;
Severity: Minor
Found in src/image/AntiSpam.php by phpmd

ErrorControlOperator

Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

Example

function foo($filePath) {
    $file = @fopen($filPath); // hides exceptions
    $key = @$array[$notExistingKey]; // assigns null to $key
}

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

Remove error control operator '@' on line 77.
Open

    public function Stroke()
    {
        $n = strlen($this->iData);
        if ($n == 0) {
            return false;
Severity: Minor
Found in src/image/AntiSpam.php by phpmd

ErrorControlOperator

Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

Example

function foo($filePath) {
    $file = @fopen($filPath); // hides exceptions
    $key = @$array[$notExistingKey]; // assigns null to $key
}

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

The method SetInterlace has a boolean flag argument $aFlg, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function SetInterlace($aFlg = true)
Severity: Minor
Found in src/image/Image.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

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

Remove error control operator '@' on line 243.
Open

    public function CopyMerge($fromImg, $toX, $toY, $fromX, $fromY, $toWidth, $toHeight, $fromWidth = -1, $fromHeight = -1, $aMix = 100)
    {
        if ($aMix == 100) {
            $this->CopyCanvasH(
                $this->img,
Severity: Minor
Found in src/image/Image.php by phpmd

ErrorControlOperator

Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

Example

function foo($filePath) {
    $file = @fopen($filPath); // hides exceptions
    $key = @$array[$notExistingKey]; // assigns null to $key
}

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

The method SetAlphaBlending has a boolean flag argument $aFlg, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function SetAlphaBlending($aFlg = true)
Severity: Minor
Found in src/image/Image.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

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

Remove error control operator '@' on line 362.
Open

    public function GetTextHeight($txt = '', $angle = 0)
    {
        $tmp = preg_split('/\n/', $txt);
        $n   = safe_count($tmp);
        $m   = 0;
Severity: Minor
Found in src/image/Image.php by phpmd

ErrorControlOperator

Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

Example

function foo($filePath) {
    $file = @fopen($filPath); // hides exceptions
    $key = @$array[$notExistingKey]; // assigns null to $key
}

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

The method _StrokeBuiltinFont has a boolean flag argument $aDebug, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function _StrokeBuiltinFont($x, $y, $txt, $dir, $paragraph_align, &$aBoundingBox, $aDebug = false)
Severity: Minor
Found in src/image/Image.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

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

The method SetAntiAliasing has a boolean flag argument $aFlg, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function SetAntiAliasing($aFlg = true)
Severity: Minor
Found in src/image/Image.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

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

The method StrokeBoxedText has a boolean flag argument $shadowcolor, which is a certain sign of a Single Responsibility Principle violation.
Open

        $shadowcolor = false,
Severity: Minor
Found in src/image/Image.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

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

The method StrokeBoxedText2 has a boolean flag argument $shadowcolor, which is a certain sign of a Single Responsibility Principle violation.
Open

        $shadowcolor = false,
Severity: Minor
Found in src/image/Image.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

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

Remove error control operator '@' on line 149.
Open

    public function CreateRawCanvas($aWidth = 0, $aHeight = 0)
    {
        $aWidth *= SUPERSAMPLING_SCALE;
        $aHeight *= SUPERSAMPLING_SCALE;

Severity: Minor
Found in src/image/Image.php by phpmd

ErrorControlOperator

Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

Example

function foo($filePath) {
    $file = @fopen($filPath); // hides exceptions
    $key = @$array[$notExistingKey]; // assigns null to $key
}

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

Severity
Category
Status
Source
Language