mambax7/extgallery

View on GitHub
assets/js/ml-slider/inc/metaslider.imagehelper.class.php

Summary

Maintainability
D
2 days
Test Coverage

The method MetaSliderImageHelper::resize_image() calls the typical debug function var_dump() which is mostly only used during development.
Open

                var_dump($image);

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

Function get_crop_dimensions has a Cognitive Complexity of 39 (exceeds 5 allowed). Consider refactoring.
Open

    private function get_crop_dimensions($image_width, $image_height)
    {
        if ('false' === $this->smart_crop) {
            return ['width' => $this->container_width, 'height' => $this->container_height];
        }
Severity: Minor
Found in assets/js/ml-slider/inc/metaslider.imagehelper.class.php - About 5 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 get_crop_dimensions has 73 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function get_crop_dimensions($image_width, $image_height)
    {
        if ('false' === $this->smart_crop) {
            return ['width' => $this->container_width, 'height' => $this->container_height];
        }
Severity: Major
Found in assets/js/ml-slider/inc/metaslider.imagehelper.class.php - About 2 hrs to fix

    Method resize_image has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function resize_image($orig_size, $dest_size, $dest_file_name)
        {
            // load image
            $image = wp_get_image_editor($this->path);
    
    
    Severity: Minor
    Found in assets/js/ml-slider/inc/metaslider.imagehelper.class.php - About 1 hr to fix

      Method get_image_url has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function get_image_url()
          {
              // Get the image file path
              if (!mb_strlen($this->path)) {
                  return $this->url;
      Severity: Minor
      Found in assets/js/ml-slider/inc/metaslider.imagehelper.class.php - About 1 hr to fix

        Function get_image_url has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
        Open

            public function get_image_url()
            {
                // Get the image file path
                if (!mb_strlen($this->path)) {
                    return $this->url;
        Severity: Minor
        Found in assets/js/ml-slider/inc/metaslider.imagehelper.class.php - About 45 mins 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 __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            public function __construct($slide_id, $width, $height, $smart_crop, $use_image_editor = true)
        Severity: Minor
        Found in assets/js/ml-slider/inc/metaslider.imagehelper.class.php - About 35 mins to fix

          Avoid too many return statements within this method.
          Open

                  return $dest_url;
          Severity: Major
          Found in assets/js/ml-slider/inc/metaslider.imagehelper.class.php - About 30 mins to fix

            Function resize_image has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            
            Severity: Minor
            Found in assets/js/ml-slider/inc/metaslider.imagehelper.class.php - About 25 mins 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

            The method get_crop_dimensions() has an NPath complexity of 131220. The configured NPath complexity threshold is 200.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 get_crop_dimensions() has 110 lines of code. Current threshold is set to 100. Avoid really long methods.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

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

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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

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

                public function __construct($slide_id, $width, $height, $smart_crop, $use_image_editor = true)

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

                    } else {
                        // fall back to the full URL
                        $dest_url = $this->url;
                    }

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

                            } else {
                                // tall
                                $new_slide_width  = $image_width;
                                $new_slide_height = $container_height / ($container_width / $image_width);
            
            

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

                            } else {
                                // tall
                                $new_slide_width  = $image_width;
                                $new_slide_height = $container_height / ($container_width / $image_width);
            
            

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

                        } else {
                            // tall
                            if ($image_width > $image_height) {
                                // wide
                                $new_slide_height = $image_height;

            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 '$dst_y'.
            Open

                        list($dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h) = $dims;

            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 '$dst_x'.
            Open

                        list($dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h) = $dims;

            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

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

                        if ($container_width > $container_height) {
                            // wide
            
                            if ($image_width > $image_height) {
                                // wide
            Severity: Major
            Found in assets/js/ml-slider/inc/metaslider.imagehelper.class.php and 1 other location - About 1 hr to fix
            assets/js/ml-slider/inc/metaslider.imagehelper.class.php on lines 110..131

            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 119.

            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

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

                        } else {
                            // tall
                            if ($image_width > $image_height) {
                                // wide
                                $new_slide_height = $image_height;
            Severity: Major
            Found in assets/js/ml-slider/inc/metaslider.imagehelper.class.php and 1 other location - About 1 hr to fix
            assets/js/ml-slider/inc/metaslider.imagehelper.class.php on lines 88..131

            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 119.

            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

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

            class MetaSliderImageHelper

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

                private $id; // slide/attachment ID

            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 property $container_height is not named in camelCase.
            Open

            class MetaSliderImageHelper
            {
                private $smart_crop = 'false';
                private $container_width; // slideshow width
                private $container_height; // slideshow height

            CamelCasePropertyName

            Since: 0.2

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

            Example

            class ClassName {
                protected $property_name;
            }

            Source

            The parameter $use_image_editor is not named in camelCase.
            Open

                public function __construct($slide_id, $width, $height, $smart_crop, $use_image_editor = true)
                {
                    $upload_dir = wp_upload_dir();
            
                    $this->id               = $slide_id;

            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

            The parameter $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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

            The property $container_width is not named in camelCase.
            Open

            class MetaSliderImageHelper
            {
                private $smart_crop = 'false';
                private $container_width; // slideshow width
                private $container_height; // slideshow height

            CamelCasePropertyName

            Since: 0.2

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

            Example

            class ClassName {
                protected $property_name;
            }

            Source

            The parameter $slide_id is not named in camelCase.
            Open

                public function __construct($slide_id, $width, $height, $smart_crop, $use_image_editor = true)
                {
                    $upload_dir = wp_upload_dir();
            
                    $this->id               = $slide_id;

            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

            The property $use_image_editor is not named in camelCase.
            Open

            class MetaSliderImageHelper
            {
                private $smart_crop = 'false';
                private $container_width; // slideshow width
                private $container_height; // slideshow height

            CamelCasePropertyName

            Since: 0.2

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

            Example

            class ClassName {
                protected $property_name;
            }

            Source

            The parameter $smart_crop is not named in camelCase.
            Open

                public function __construct($slide_id, $width, $height, $smart_crop, $use_image_editor = true)
                {
                    $upload_dir = wp_upload_dir();
            
                    $this->id               = $slide_id;

            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

            The property $smart_crop is not named in camelCase.
            Open

            class MetaSliderImageHelper
            {
                private $smart_crop = 'false';
                private $container_width; // slideshow width
                private $container_height; // slideshow height

            CamelCasePropertyName

            Since: 0.2

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

            Example

            class ClassName {
                protected $property_name;
            }

            Source

            The parameter $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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

            The parameter $dest_size is not named in camelCase.
            Open

                private function get_destination_file_name($dest_size)
                {
                    $info           = pathinfo($this->path);
                    $dir            = $info['dirname'];
                    $ext            = $info['extension'];

            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

            The parameter $dest_size is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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

            The parameter $dest_file_name is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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

            The parameter $orig_size is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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

            Method name "MetaSliderImageHelper::get_destination_file_name" is not in camel caps format
            Open

                private function get_destination_file_name($dest_size)

            Method name "MetaSliderImageHelper::get_image_url" is not in camel caps format
            Open

                public function get_image_url()

            Method name "MetaSliderImageHelper::get_original_image_dimensions" is not in camel caps format
            Open

                private function get_original_image_dimensions()

            Method name "MetaSliderImageHelper::resize_image" is not in camel caps format
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)

            Method name "MetaSliderImageHelper::get_crop_dimensions" is not in camel caps format
            Open

                private function get_crop_dimensions($image_width, $image_height)

            Line exceeds 120 characters; contains 132 characters
            Open

                    $dims = image_resize_dimensions($orig_size['width'], $orig_size['height'], $dest_size['width'], $dest_size['height'], true);

            Line exceeds 120 characters; contains 195 characters
            Open

                            echo '<p><strong>ERROR</strong> ' . $image->get_error_message() . " Check <a href='http://codex.wordpress.org/Changing_File_Permissions' target='_blank'>file permissions</a></p>";

            The variable $upload_dir is not named in camelCase.
            Open

                public function __construct($slide_id, $width, $height, $smart_crop, $use_image_editor = true)
                {
                    $upload_dir = wp_upload_dir();
            
                    $this->id               = $slide_id;

            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 $slide_id is not named in camelCase.
            Open

                public function __construct($slide_id, $width, $height, $smart_crop, $use_image_editor = true)
                {
                    $upload_dir = wp_upload_dir();
            
                    $this->id               = $slide_id;

            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 $slide_id is not named in camelCase.
            Open

                public function __construct($slide_id, $width, $height, $smart_crop, $use_image_editor = true)
                {
                    $upload_dir = wp_upload_dir();
            
                    $this->id               = $slide_id;

            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_slide_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $smart_crop is not named in camelCase.
            Open

                public function __construct($slide_id, $width, $height, $smart_crop, $use_image_editor = true)
                {
                    $upload_dir = wp_upload_dir();
            
                    $this->id               = $slide_id;

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $upload_dir is not named in camelCase.
            Open

                public function __construct($slide_id, $width, $height, $smart_crop, $use_image_editor = true)
                {
                    $upload_dir = wp_upload_dir();
            
                    $this->id               = $slide_id;

            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 $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $dest_file_name is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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 $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $dest_url is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $dest_size is not named in camelCase.
            Open

                private function get_destination_file_name($dest_size)
                {
                    $info           = pathinfo($this->path);
                    $dir            = $info['dirname'];
                    $ext            = $info['extension'];

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $orig_size is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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 $dest_size is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $dest_file_name is not named in camelCase.
            Open

                private function get_destination_file_name($dest_size)
                {
                    $info           = pathinfo($this->path);
                    $dir            = $info['dirname'];
                    $ext            = $info['extension'];

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $dest_file_name is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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 $dest_url is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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 $slide_id is not named in camelCase.
            Open

                public function __construct($slide_id, $width, $height, $smart_crop, $use_image_editor = true)
                {
                    $upload_dir = wp_upload_dir();
            
                    $this->id               = $slide_id;

            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_slide_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $dest_file_name is not named in camelCase.
            Open

                private function get_destination_file_name($dest_size)
                {
                    $info           = pathinfo($this->path);
                    $dir            = $info['dirname'];
                    $ext            = $info['extension'];

            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_slide_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $dest_file_name is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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 $dest_url is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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 $dest_size is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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 $use_image_editor is not named in camelCase.
            Open

                public function __construct($slide_id, $width, $height, $smart_crop, $use_image_editor = true)
                {
                    $upload_dir = wp_upload_dir();
            
                    $this->id               = $slide_id;

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $orig_size is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $orig_size is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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 $orig_size is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $dest_size is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $dest_size is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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 $dest_url is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $dest_size is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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 $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $orig_size is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $orig_size is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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_slide_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $dest_file_name is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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 $dest_file_name is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $image_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $dest_url is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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 $dest_file_name is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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 $dest_size is not named in camelCase.
            Open

                private function get_destination_file_name($dest_size)
                {
                    $info           = pathinfo($this->path);
                    $dir            = $info['dirname'];
                    $ext            = $info['extension'];

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_height is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $container_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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_slide_width is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 $dest_file_name is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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 $orig_size is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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 $dest_url is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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 $src_x is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 $dst_w is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 $src_x is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 $dest_size is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 $dest_size is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 $dest_file_name is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 $backup_sizes is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 $orig_size is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 $src_w is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 $src_h is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 $dst_h is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 $backup_sizes is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 $dst_w is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 $backup_sizes is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 $dst_x is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 $backup_sizes is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 $dest_size is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 $dst_h is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 $orig_size is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 $dest_size is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 $src_y is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 $src_w is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 $src_y is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 $backup_sizes is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 $dst_y is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 $src_h is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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 get_image_url is not named in camelCase.
            Open

                public function get_image_url()
                {
                    // Get the image file path
                    if (!mb_strlen($this->path)) {
                        return $this->url;

            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 get_original_image_dimensions is not named in camelCase.
            Open

                private function get_original_image_dimensions()
                {
                    $size = [];
            
                    // try and get the image size from metadata

            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 get_crop_dimensions is not named in camelCase.
            Open

                private function get_crop_dimensions($image_width, $image_height)
                {
                    if ('false' === $this->smart_crop) {
                        return ['width' => $this->container_width, 'height' => $this->container_height];
                    }

            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 get_destination_file_name is not named in camelCase.
            Open

                private function get_destination_file_name($dest_size)
                {
                    $info           = pathinfo($this->path);
                    $dir            = $info['dirname'];
                    $ext            = $info['extension'];

            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 resize_image is not named in camelCase.
            Open

                private function resize_image($orig_size, $dest_size, $dest_file_name)
                {
                    // load image
                    $image = wp_get_image_editor($this->path);
            
            

            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