mambax7/extgallery

View on GitHub

Showing 9,653 of 9,653 total issues

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

        $this->command[] = $this->_prepare_cmd(IMAGE_TRANSFORM_NETPBM_PATH, 'ppmlabel', '-angle ' . ((int)$angle) . ' -colour ' . escapeshellarg($color) . ' -size ' . ((float)$size) . ' -x ' . ((int)$x) . ' -y ' . $y + $size . ' -text ' . escapeshellarg($text));

UndefinedVariable

Since: 2.8.0

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

Example

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

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

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

        return isset($types[$t = mb_strtolower($type)]) ? $types[$t] : $type;
Severity: Minor
Found in class/pear/Image/Transform.php by phpmd

UndefinedVariable

Since: 2.8.0

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

Example

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

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

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

            imagepstext($this->imageHandle, $size, $angle, $x, $y, $c, $font, $text);

UndefinedVariable

Since: 2.8.0

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

Example

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

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

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

        if (true === $resize_first) {

UndefinedVariable

Since: 2.8.0

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

Example

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

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

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

        $fontResource = imlib_load_font($font . '/' . $size);

UndefinedVariable

Since: 2.8.0

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

Example

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

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

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

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

UndefinedVariable

Since: 2.8.0

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

Example

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

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

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

        imlib_text_draw($this->imageHandle, $fontResource, $x, $y, $text, $angle, $color[0], $color[1], $color[2], 255);

UndefinedVariable

Since: 2.8.0

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

Example

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

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

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

        if (1.0 != $outputgamme) {

UndefinedVariable

Since: 2.8.0

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

Example

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

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

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

        imlib_text_draw($this->imageHandle, $fontResource, $x, $y, $text, $angle, $color[0], $color[1], $color[2], 255);

UndefinedVariable

Since: 2.8.0

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

Example

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

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

Function galleria has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

$.fn.galleria = function( options ) {

    var selector = this.selector;

    // try domReady if element not found
Severity: Minor
Found in assets/js/galleria/galleria-1.3.3.js - About 1 hr to fix

    Function complete has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                    complete: function( next ) {
    
                        Utils.show( next.container );
    
                        // toggle low quality for IE
    Severity: Minor
    Found in assets/js/galleria/galleria-1.1.js - About 1 hr to fix

      Function show has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  show : function( elem, speed, callback ) {
      
                      callback = callback || F;
      
                      var $elem = $(elem);
      Severity: Minor
      Found in assets/js/galleria/galleria-1.3.5.js - About 1 hr to fix

        Function add has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            add: function(handleObj) {
                var prop = this.propagate;
                if ( Galleria.TOUCH ) {
                    $(this).on('touchstart.fast', function start(e) {
                        var ev = e.originalEvent,
        Severity: Minor
        Found in assets/js/galleria/galleria-1.3.5.js - About 1 hr to fix

          Function galleria has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          $.fn.galleria = function( options ) {
          
              var selector = this.selector;
          
              // try domReady if element not found
          Severity: Minor
          Found in assets/js/galleria/galleria-1.3.5.js - About 1 hr to fix

            Function show has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                        show : function( elem, speed, callback ) {
            
                            callback = callback || F;
            
                            var $elem = $(elem);
            Severity: Minor
            Found in assets/js/galleria/galleria-1.3.3.js - About 1 hr to fix

              Function add has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  add: function(handleObj) {
                      var prop = this.propagate;
                      if ( Galleria.TOUCH ) {
                          $(this).on('touchstart.fast', function start(e) {
                              var ev = e.originalEvent,
              Severity: Minor
              Found in assets/js/galleria/galleria-1.3.3.js - About 1 hr to fix

                Function fadeslide has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        fadeslide: function(params, complete) {
                
                            var x = 0,
                                easing = this.getOptions('easing');
                
                
                Severity: Minor
                Found in assets/js/galleria/galleria-1.1.js - About 1 hr to fix

                  Function bindControls has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          bindControls: function() {
                  
                              carousel.next.bind( CLICK(), function(e) {
                                  e.preventDefault();
                  
                  
                  Severity: Minor
                  Found in assets/js/galleria/galleria-1.1.js - About 1 hr to fix

                    Function fancybox has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        $.fancybox = function(obj) {
                            var opts;
                    
                            if (busy) {
                                return;
                    Severity: Minor
                    Found in assets/js/fancybox/fancybox.js - About 1 hr to fix

                      Function getAjax has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              getAjax: function(item) {
                      
                                  if(_ajaxCur)
                                      _body.addClass(_ajaxCur);
                      
                      
                      Severity: Minor
                      Found in assets/js/magnific_popup/jquery.magnific-popup.js - About 1 hr to fix
                        Severity
                        Category
                        Status
                        Source
                        Language