mambax7/extgallery

View on GitHub
class/pear/Image/Transform/Driver/GD1.php

Summary

Maintainability
C
1 day
Test Coverage

Function rotate has a Cognitive Complexity of 41 (exceeds 5 allowed). Consider refactoring.
Open

    public function rotate($angle, $options = null)
    {
        if (null === $options) {
            $autoresize = true;
            $color_mask = [255, 255, 0];
Severity: Minor
Found in class/pear/Image/Transform/Driver/GD1.php - About 6 hrs 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

Method rotate has 130 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function rotate($angle, $options = null)
    {
        if (null === $options) {
            $autoresize = true;
            $color_mask = [255, 255, 0];
Severity: Major
Found in class/pear/Image/Transform/Driver/GD1.php - About 5 hrs to fix

    The method rotate() has an NPath complexity of 5472. The configured NPath complexity threshold is 200.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    NPathComplexity

    Since: 0.1

    The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

    Example

    class Foo {
        function bar() {
            // lots of complicated code
        }
    }

    Source https://phpmd.org/rules/codesize.html#npathcomplexity

    The method rotate() has 161 lines of code. Current threshold is set to 100. Avoid really long methods.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    The method rotate() has a Cyclomatic Complexity of 30. The configured cyclomatic complexity threshold is 10.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CyclomaticComplexity

    Since: 0.1

    Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

    Example

    // Cyclomatic Complexity = 11
    class Foo {
    1   public function example() {
    2       if ($a == $b) {
    3           if ($a1 == $b1) {
                    fiddle();
    4           } elseif ($a2 == $b2) {
                    fiddle();
                } else {
                    fiddle();
                }
    5       } elseif ($c == $d) {
    6           while ($c == $d) {
                    fiddle();
                }
    7        } elseif ($e == $f) {
    8           for ($n = 0; $n < $h; $n++) {
                    fiddle();
                }
            } else {
                switch ($z) {
    9               case 1:
                        fiddle();
                        break;
    10              case 2:
                        fiddle();
                        break;
    11              case 3:
                        fiddle();
                        break;
                    default:
                        fiddle();
                        break;
                }
            }
        }
    }

    Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

    Avoid using undefined variables such as '$colornames' which will lead to PHP notices.
    Open

                    $color_mask = $colornames[$color_mask] ?? false;

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

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

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

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    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 196.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    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 214.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    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 177.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    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 rotate uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
    Open

            } else {
                extract($options);
            }

    ElseExpression

    Since: 1.4.0

    An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

    Example

    class Foo
    {
        public function bar($flag)
        {
            if ($flag) {
                // one branch
            } else {
                // another branch
            }
        }
    }

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

    Avoid using static access to class 'PEAR' in method 'rotate'.
    Open

                return PEAR::raiseError('Cannot create buffer for the rotataion.', null, PEAR_ERROR_TRIGGER, E_USER_NOTICE);

    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 'PEAR' in method '_resize'.
    Open

                return PEAR::raiseError('You have already resized the image without saving it.  Your previous resizing will be overwritten', null, PEAR_ERROR_TRIGGER, E_USER_NOTICE);

    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

    The method rotate uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
    Open

                } else {
                    require_once __DIR__ . '/Image/Transform/Driver/ColorsDefs.php';
                    $color_mask = $colornames[$color_mask] ?? false;
                }

    ElseExpression

    Since: 1.4.0

    An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

    Example

    class Foo
    {
        public function bar($flag)
        {
            if ($flag) {
                // one branch
            } else {
                // another branch
            }
        }
    }

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

    The method rotate uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
    Open

                            } else {
                                $c = $mask;
                            }

    ElseExpression

    Since: 1.4.0

    An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

    Example

    class Foo
    {
        public function bar($flag)
        {
            if ($flag) {
                // one branch
            } else {
                // another branch
            }
        }
    }

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

    Avoid unused local variables such as '$i'.
    Open

                    $i = 0;

    UnusedLocalVariable

    Since: 0.2

    Detects when a local variable is declared and/or assigned, but not used.

    Example

    class Foo {
        public function doSomething()
        {
            $i = 5; // Unused
        }
    }

    Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

    Avoid unused local variables such as '$colornames'.
    Open

                    $color_mask = $colornames[$color_mask] ?? false;

    UnusedLocalVariable

    Since: 0.2

    Detects when a local variable is declared and/or assigned, but not used.

    Example

    class Foo {
        public function doSomething()
        {
            $i = 5; // Unused
        }
    }

    Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

    Avoid unused local variables such as '$a'.
    Open

                $a = round($angle, 0);

    UnusedLocalVariable

    Since: 0.2

    Detects when a local variable is declared and/or assigned, but not used.

    Example

    class Foo {
        public function doSomething()
        {
            $i = 5; // Unused
        }
    }

    Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

    Avoid unused parameters such as '$options'.
    Open

        public function _resize($new_x, $new_y, $options = null)

    UnusedFormalParameter

    Since: 0.2

    Avoid passing parameters to methods or constructors and then not using those parameters.

    Example

    class Foo
    {
        private function bar($howdy)
        {
            // $howdy is not used
        }
    }

    Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

    Each class must be in a namespace of at least one level (a top-level vendor name)
    Open

    class Image_Transform_Driver_GD1 extends Image_Transform_Driver_GD

    The parameter $new_y is not named in camelCase.
    Open

        public function _resize($new_x, $new_y, $options = null)
        {
            if (true === $this->resized) {
                return PEAR::raiseError('You have already resized the image without saving it.  Your previous resizing will be overwritten', null, PEAR_ERROR_TRIGGER, E_USER_NOTICE);
            }

    CamelCaseParameterName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name parameters.

    Example

    class ClassName {
        public function doSomething($user_name) {
        }
    }

    Source

    Avoid variables with short names like $i. Configured minimum length is 3.
    Open

                    $i = 0;

    ShortVariable

    Since: 0.2

    Detects when a field, local, or parameter has a very short name.

    Example

    class Something {
        private $q = 15; // VIOLATION - Field
        public static function main( array $as ) { // VIOLATION - Formal
            $r = 20 + $this->q; // VIOLATION - Local
            for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                $r += $this->q;
            }
        }
    }

    Source https://phpmd.org/rules/naming.html#shortvariable

    The class Image_Transform_Driver_GD1 is not named in CamelCase.
    Open

    class Image_Transform_Driver_GD1 extends Image_Transform_Driver_GD
    {
        /**
         * Check settings
         *

    CamelCaseClassName

    Since: 0.2

    It is considered best practice to use the CamelCase notation to name classes.

    Example

    class class_name {
    }

    Source

    Avoid variables with short names like $a. Configured minimum length is 3.
    Open

                $a = round($angle, 0);

    ShortVariable

    Since: 0.2

    Detects when a field, local, or parameter has a very short name.

    Example

    class Something {
        private $q = 15; // VIOLATION - Field
        public static function main( array $as ) { // VIOLATION - Formal
            $r = 20 + $this->q; // VIOLATION - Local
            for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                $r += $this->q;
            }
        }
    }

    Source https://phpmd.org/rules/naming.html#shortvariable

    Avoid variables with short names like $y2. Configured minimum length is 3.
    Open

                        $y2 = round(($y - $y1) * $cosT - ($min_x2 - $x1) * $sinT + $y1, 0);

    ShortVariable

    Since: 0.2

    Detects when a field, local, or parameter has a very short name.

    Example

    class Something {
        private $q = 15; // VIOLATION - Field
        public static function main( array $as ) { // VIOLATION - Formal
            $r = 20 + $this->q; // VIOLATION - Local
            for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                $r += $this->q;
            }
        }
    }

    Source https://phpmd.org/rules/naming.html#shortvariable

    Avoid variables with short names like $c. Configured minimum length is 3.
    Open

                            $c = @imagecolorat($img, $x, $y);

    ShortVariable

    Since: 0.2

    Detects when a field, local, or parameter has a very short name.

    Example

    class Something {
        private $q = 15; // VIOLATION - Field
        public static function main( array $as ) { // VIOLATION - Formal
            $r = 20 + $this->q; // VIOLATION - Local
            for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                $r += $this->q;
            }
        }
    }

    Source https://phpmd.org/rules/naming.html#shortvariable

    The parameter $new_x is not named in camelCase.
    Open

        public function _resize($new_x, $new_y, $options = null)
        {
            if (true === $this->resized) {
                return PEAR::raiseError('You have already resized the image without saving it.  Your previous resizing will be overwritten', null, PEAR_ERROR_TRIGGER, E_USER_NOTICE);
            }

    CamelCaseParameterName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name parameters.

    Example

    class ClassName {
        public function doSomething($user_name) {
        }
    }

    Source

    Avoid variables with short names like $y1. Configured minimum length is 3.
    Open

            $y1 = round($max_y / 2, 0);

    ShortVariable

    Since: 0.2

    Detects when a field, local, or parameter has a very short name.

    Example

    class Something {
        private $q = 15; // VIOLATION - Field
        public static function main( array $as ) { // VIOLATION - Formal
            $r = 20 + $this->q; // VIOLATION - Local
            for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                $r += $this->q;
            }
        }
    }

    Source https://phpmd.org/rules/naming.html#shortvariable

    Avoid variables with short names like $t. Configured minimum length is 3.
    Open

            $t = deg2rad($angle);

    ShortVariable

    Since: 0.2

    Detects when a field, local, or parameter has a very short name.

    Example

    class Something {
        private $q = 15; // VIOLATION - Field
        public static function main( array $as ) { // VIOLATION - Formal
            $r = 20 + $this->q; // VIOLATION - Local
            for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                $r += $this->q;
            }
        }
    }

    Source https://phpmd.org/rules/naming.html#shortvariable

    Avoid variables with short names like $x2. Configured minimum length is 3.
    Open

                        $x2 = round((($min_x2 - $x1) * $cosT) + (($y - $y1) * $sinT + $x1), 0);

    ShortVariable

    Since: 0.2

    Detects when a field, local, or parameter has a very short name.

    Example

    class Something {
        private $q = 15; // VIOLATION - Field
        public static function main( array $as ) { // VIOLATION - Formal
            $r = 20 + $this->q; // VIOLATION - Local
            for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                $r += $this->q;
            }
        }
    }

    Source https://phpmd.org/rules/naming.html#shortvariable

    Avoid variables with short names like $x1. Configured minimum length is 3.
    Open

            $x1 = round($max_x / 2, 0);

    ShortVariable

    Since: 0.2

    Detects when a field, local, or parameter has a very short name.

    Example

    class Something {
        private $q = 15; // VIOLATION - Field
        public static function main( array $as ) { // VIOLATION - Formal
            $r = 20 + $this->q; // VIOLATION - Local
            for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                $r += $this->q;
            }
        }
    }

    Source https://phpmd.org/rules/naming.html#shortvariable

    A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 31 and the first side effect is on line 20.
    Open

    <?php

    Method name "Image_Transform_Driver_GD1::Image_Transform_Driver_GD1" is not in camel caps format
    Open

        public function Image_Transform_Driver_GD1()

    Method name "_resize" should not be prefixed with an underscore to indicate visibility
    Open

        public function _resize($new_x, $new_y, $options = null)

    Line exceeds 120 characters; contains 178 characters
    Open

                return PEAR::raiseError('You have already resized the image without saving it.  Your previous resizing will be overwritten', null, PEAR_ERROR_TRIGGER, E_USER_NOTICE);

    Class name "Image_Transform_Driver_GD1" is not in camel caps format
    Open

    class Image_Transform_Driver_GD1 extends Image_Transform_Driver_GD

    The variable $new_y is not named in camelCase.
    Open

        public function _resize($new_x, $new_y, $options = null)
        {
            if (true === $this->resized) {
                return PEAR::raiseError('You have already resized the image without saving it.  Your previous resizing will be overwritten', null, PEAR_ERROR_TRIGGER, E_USER_NOTICE);
            }

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $color_mask is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $color_mask is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $min_x is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $y_offset is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $min_x is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $min_y is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $max_y is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $new_y is not named in camelCase.
    Open

        public function _resize($new_x, $new_y, $options = null)
        {
            if (true === $this->resized) {
                return PEAR::raiseError('You have already resized the image without saving it.  Your previous resizing will be overwritten', null, PEAR_ERROR_TRIGGER, E_USER_NOTICE);
            }

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $max_x2 is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $min_x2 is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $new_x is not named in camelCase.
    Open

        public function _resize($new_x, $new_y, $options = null)
        {
            if (true === $this->resized) {
                return PEAR::raiseError('You have already resized the image without saving it.  Your previous resizing will be overwritten', null, PEAR_ERROR_TRIGGER, E_USER_NOTICE);
            }

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $new_img is not named in camelCase.
    Open

        public function _resize($new_x, $new_y, $options = null)
        {
            if (true === $this->resized) {
                return PEAR::raiseError('You have already resized the image without saving it.  Your previous resizing will be overwritten', null, PEAR_ERROR_TRIGGER, E_USER_NOTICE);
            }

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $min_y is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $color_mask is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $max_x is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $max_x2 is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $max_y2 is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $new_y is not named in camelCase.
    Open

        public function _resize($new_x, $new_y, $options = null)
        {
            if (true === $this->resized) {
                return PEAR::raiseError('You have already resized the image without saving it.  Your previous resizing will be overwritten', null, PEAR_ERROR_TRIGGER, E_USER_NOTICE);
            }

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $d_height is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $min_x is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $min_x is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $min_x2 is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $x_offset is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $y_offset is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $d_height is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $max_x is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $min_x2 is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $d_width is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $max_x is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $color_mask is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $max_x is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $x_offset is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $max_x2 is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $max_y2 is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $max_y is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $max_y is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $max_x is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $new_img is not named in camelCase.
    Open

        public function _resize($new_x, $new_y, $options = null)
        {
            if (true === $this->resized) {
                return PEAR::raiseError('You have already resized the image without saving it.  Your previous resizing will be overwritten', null, PEAR_ERROR_TRIGGER, E_USER_NOTICE);
            }

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $max_y is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $min_y2 is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $max_y is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $max_y is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $max_y is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $max_x is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $color_mask is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $max_x is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $min_x2 is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $new_img is not named in camelCase.
    Open

        public function _resize($new_x, $new_y, $options = null)
        {
            if (true === $this->resized) {
                return PEAR::raiseError('You have already resized the image without saving it.  Your previous resizing will be overwritten', null, PEAR_ERROR_TRIGGER, E_USER_NOTICE);
            }

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $color_mask is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $d_width is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $x_offset is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $max_y2 is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $color_mask is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $x_offset is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $y_offset is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $max_x is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $min_x is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $new_x is not named in camelCase.
    Open

        public function _resize($new_x, $new_y, $options = null)
        {
            if (true === $this->resized) {
                return PEAR::raiseError('You have already resized the image without saving it.  Your previous resizing will be overwritten', null, PEAR_ERROR_TRIGGER, E_USER_NOTICE);
            }

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $new_x is not named in camelCase.
    Open

        public function _resize($new_x, $new_y, $options = null)
        {
            if (true === $this->resized) {
                return PEAR::raiseError('You have already resized the image without saving it.  Your previous resizing will be overwritten', null, PEAR_ERROR_TRIGGER, E_USER_NOTICE);
            }

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $color_mask is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $color_mask is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $color_mask is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $max_y is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $y_offset is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $min_y2 is not named in camelCase.
    Open

        public function rotate($angle, $options = null)
        {
            if (null === $options) {
                $autoresize = true;
                $color_mask = [255, 255, 0];

    CamelCaseVariableName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name variables.

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The method _resize is not named in camelCase.
    Open

        public function _resize($new_x, $new_y, $options = null)
        {
            if (true === $this->resized) {
                return PEAR::raiseError('You have already resized the image without saving it.  Your previous resizing will be overwritten', null, PEAR_ERROR_TRIGGER, E_USER_NOTICE);
            }

    CamelCaseMethodName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name methods.

    Example

    class ClassName {
        public function get_name() {
        }
    }

    Source

    The method Image_Transform_Driver_GD1 is not named in camelCase.
    Open

        public function Image_Transform_Driver_GD1()
        {
            $this->__construct();
        }

    CamelCaseMethodName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name methods.

    Example

    class ClassName {
        public function get_name() {
        }
    }

    Source

    There are no issues that match your filters.

    Category
    Status