XoopsModules25x/xoopstube

View on GitHub
include/video.php

Summary

Maintainability
D
2 days
Test Coverage

xtubeGetVideoThumb accesses the super-global variable $GLOBALS.
Open

function xtubeGetVideoThumb($vidid, $title, $source, $picurl, $screenshot, $width = '', $height = '')
{
    if ('' === $width || '' === $height) {
        $width  = $GLOBALS['xoopsModuleConfig']['shotwidth'];
        $height = $GLOBALS['xoopsModuleConfig']['shotheight'];
Severity: Minor
Found in include/video.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

xtubeGetVideoThumb accesses the super-global variable $GLOBALS.
Open

function xtubeGetVideoThumb($vidid, $title, $source, $picurl, $screenshot, $width = '', $height = '')
{
    if ('' === $width || '' === $height) {
        $width  = $GLOBALS['xoopsModuleConfig']['shotwidth'];
        $height = $GLOBALS['xoopsModuleConfig']['shotheight'];
Severity: Minor
Found in include/video.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

xtubeShowVideo accesses the super-global variable $GLOBALS.
Open

function xtubeShowVideo($vidid, $source, $screenshot, $picurl)
{
    global $xoopsModule;
    $showvideo = '';
    $autoplay  = $GLOBALS['xoopsModuleConfig']['autoplay'];
Severity: Minor
Found in include/video.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

xtubeShowVideo accesses the super-global variable $GLOBALS.
Open

function xtubeShowVideo($vidid, $source, $screenshot, $picurl)
{
    global $xoopsModule;
    $showvideo = '';
    $autoplay  = $GLOBALS['xoopsModuleConfig']['autoplay'];
Severity: Minor
Found in include/video.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

Method xtubeShowVideo has 108 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function xtubeShowVideo($vidid, $source, $screenshot, $picurl)
{
    global $xoopsModule;
    $showvideo = '';
    $autoplay  = $GLOBALS['xoopsModuleConfig']['autoplay'];
Severity: Major
Found in include/video.php - About 4 hrs to fix

    Function xtubeShowVideo has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
    Open

    function xtubeShowVideo($vidid, $source, $screenshot, $picurl)
    {
        global $xoopsModule;
        $showvideo = '';
        $autoplay  = $GLOBALS['xoopsModuleConfig']['autoplay'];
    Severity: Minor
    Found in include/video.php - About 2 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

    Function xtubeReturnSource has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
    Open

    function xtubeReturnSource($returnsource)
    {
        switch ($returnsource) {
            case 0:
                $returnsource = _AM_XOOPSTUBE_YOUTUBE;
    Severity: Minor
    Found in include/video.php - About 2 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

    File video.php has 254 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    /**
     * Module: XoopsTube
     *
    Severity: Minor
    Found in include/video.php - About 2 hrs to fix

      Method xtubeReturnSource has 51 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function xtubeReturnSource($returnsource)
      {
          switch ($returnsource) {
              case 0:
                  $returnsource = _AM_XOOPSTUBE_YOUTUBE;
      Severity: Major
      Found in include/video.php - About 2 hrs to fix

        Method xtubeGetVideoPublisher has 42 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function xtubeGetVideoPublisher($vidid, $publisher, $source = 0)
        {
            switch ($source) {
                // Determine if video source YouTube for publisher
                case 0:
        Severity: Minor
        Found in include/video.php - About 1 hr to fix

          Method xtubeGetVideoThumb has 40 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function xtubeGetVideoThumb($vidid, $title, $source, $picurl, $screenshot, $width = '', $height = '')
          {
              if ('' === $width || '' === $height) {
                  $width  = $GLOBALS['xoopsModuleConfig']['shotwidth'];
                  $height = $GLOBALS['xoopsModuleConfig']['shotheight'];
          Severity: Minor
          Found in include/video.php - About 1 hr to fix

            Function xtubeGetVideoPublisher has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
            Open

            function xtubeGetVideoPublisher($vidid, $publisher, $source = 0)
            {
                switch ($source) {
                    // Determine if video source YouTube for publisher
                    case 0:
            Severity: Minor
            Found in include/video.php - About 1 hr 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

            Function xtubeGetVideoThumb has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
            Open

            function xtubeGetVideoThumb($vidid, $title, $source, $picurl, $screenshot, $width = '', $height = '')
            {
                if ('' === $width || '' === $height) {
                    $width  = $GLOBALS['xoopsModuleConfig']['shotwidth'];
                    $height = $GLOBALS['xoopsModuleConfig']['shotheight'];
            Severity: Minor
            Found in include/video.php - About 1 hr 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 xtubeGetVideoThumb has 7 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            function xtubeGetVideoThumb($vidid, $title, $source, $picurl, $screenshot, $width = '', $height = '')
            Severity: Major
            Found in include/video.php - About 50 mins to fix

              The function xtubeShowVideo() has 144 lines of code. Current threshold is set to 100. Avoid really long methods.
              Open

              function xtubeShowVideo($vidid, $source, $screenshot, $picurl)
              {
                  global $xoopsModule;
                  $showvideo = '';
                  $autoplay  = $GLOBALS['xoopsModuleConfig']['autoplay'];
              Severity: Minor
              Found in include/video.php by phpmd

              The function xtubeShowVideo() has a Cyclomatic Complexity of 18. The configured cyclomatic complexity threshold is 10.
              Open

              function xtubeShowVideo($vidid, $source, $screenshot, $picurl)
              {
                  global $xoopsModule;
                  $showvideo = '';
                  $autoplay  = $GLOBALS['xoopsModuleConfig']['autoplay'];
              Severity: Minor
              Found in include/video.php by phpmd

              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 function xtubeGetVideoPublisher() has a Cyclomatic Complexity of 17. The configured cyclomatic complexity threshold is 10.
              Open

              function xtubeGetVideoPublisher($vidid, $publisher, $source = 0)
              {
                  switch ($source) {
                      // Determine if video source YouTube for publisher
                      case 0:
              Severity: Minor
              Found in include/video.php by phpmd

              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 function xtubeReturnSource() has a Cyclomatic Complexity of 17. The configured cyclomatic complexity threshold is 10.
              Open

              function xtubeReturnSource($returnsource)
              {
                  switch ($returnsource) {
                      case 0:
                          $returnsource = _AM_XOOPSTUBE_YOUTUBE;
              Severity: Minor
              Found in include/video.php by phpmd

              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 function xtubeGetVideoThumb() has a Cyclomatic Complexity of 19. The configured cyclomatic complexity threshold is 10.
              Open

              function xtubeGetVideoThumb($vidid, $title, $source, $picurl, $screenshot, $width = '', $height = '')
              {
                  if ('' === $width || '' === $height) {
                      $width  = $GLOBALS['xoopsModuleConfig']['shotwidth'];
                      $height = $GLOBALS['xoopsModuleConfig']['shotheight'];
              Severity: Minor
              Found in include/video.php by phpmd

              CyclomaticComplexity

              Since: 0.1

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

              Example

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

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

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

                          $publisher                = '<a href="https://s39.photobucket.com/albums/' . $ppublisher['ppublisher'] . '" target="_blank">' . $publisher . '</a>';
              Severity: Minor
              Found in include/video.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 '$videothumb' which will lead to PHP notices.
              Open

                          $videothumb['metathumb'] = $metaclip;
              Severity: Minor
              Found in include/video.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 '$ppublisher' which will lead to PHP notices.
              Open

                          $ppublisher['ppublisher'] = $photobucket;
              Severity: Minor
              Found in include/video.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 '$videothumb' which will lead to PHP notices.
              Open

                          $thumb                   = '<img src="https://www.metacafe.com/thumb/' . $videothumb['metathumb'] . '.jpg" title="' . $title . '" alt="' . $title . '" width="' . $width . '" height="' . $height . '" style="padding: 0px; border-style: none;">';
              Severity: Minor
              Found in include/video.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

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

                  } else {
                      $autoplay2   = 'no';
                      $autoplay3   = 'false';
                      $photobucket = '';
                      $google      = '';
              Severity: Minor
              Found in include/video.php by phpmd

              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 parameters such as '$screenshot'.
              Open

              function xtubeShowVideo($vidid, $source, $screenshot, $picurl)
              Severity: Minor
              Found in include/video.php by phpmd

              UnusedFormalParameter

              Since: 0.2

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

              Example

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

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

              Line exceeds 120 characters; contains 152 characters
              Open

                                       flowplayer("player", "' . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/flvplayer/flowplayer/flowplayer.swf", {
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 125 characters
              Open

                          $publisher = '<a href="https://www.liveleak.com/user/' . $publisher . '" target="_blank">' . $publisher . '</a>';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 226 characters
              Open

                          $showvideo = '<embed style="width:480px; height:295px;" id="VideoPlayback" type="application/x-shockwave-flash" src="https://video.google.com/googleplayer.swf?docId=' . $vidid . '&hl=en" ' . $google . '> </embed>';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 256 characters
              Open

                          $showvideo = '<embed src="https://www.viddler.com/player/' . $vidid . '/" width="480" height="295" type="application/x-shockwave-flash" ' . $viddler . ' allowScriptAccess="always" allowFullScreen="true" name="viddler_' . $vidid . '" ></embed>';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 226 characters
              Open

                          $thumb = '<img src="https://img3.ifilmpro.com/resize/image/stills/films/resize/istd/' . $vidid . '.jpg?width=' . $width . '"  title="' . $title . '" alt="' . $title . '" style="padding: 0px; border-style: none;">';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 186 characters
              Open

                          $thumb = '<img src="' . $picurl . '" width="' . $width . '" height="' . $height . '"  title="' . $title . '" alt="' . $title . '" style="padding: 0px; border-style: none;">';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 235 characters
              Open

                          $showvideo = '<embed src="https://www.dailymotion.com/swf/' . $vidid . '&autoPlay=' . $autoplay . '" type="application/x-shockwave-flash" width="480" height="295" allowFullScreen="true" allowScriptAccess="always"></embed>';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 255 characters
              Open

                          $thumb                   = '<img src="https://www.metacafe.com/thumb/' . $videothumb['metathumb'] . '.jpg" title="' . $title . '" alt="' . $title . '" width="' . $width . '" height="' . $height . '" style="padding: 0px; border-style: none;">';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 601 characters
              Open

                          //  $showvideo = '<object width="480" height="295"><param name="movie" value="https://www.youtube.com/v/' . $vidid . '&ap=%2526fmt%3D18&&autoplay=' . $autoplay . '&rel=1&fs=1&color1=0x999999&color2=0x999999&border=0&loop=0"></param><param name="wmode" value="transparent"></param><embed src="https://www.youtube.com/v/' . $vidid . '&ap=%2526fmt%3D18&&autoplay=' . $autoplay . '&rel=1&fs=1&color1=0x999999&color2=0x999999&border=0&loop=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="transparent" width="480" height="295"></embed></object>';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 238 characters
              Open

                          $showvideo = '<embed src="https://blip.tv/play/' . $vidid . '" type="application/x-shockwave-flash" width="480" height="295" allowscriptaccess="always" allowfullscreen="true" flashvars="autostart=' . $autoplay3 . '"></embed>';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 268 characters
              Open

                          $showvideo = '<embed width="480" height="295" src="https://www.spike.com/efp" quality="high" bgcolor="000000" name="efp" align="middle" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" flashvars="flvbaseclip='
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 129 characters
              Open

                          $publisher = '<a href="https://www.metacafe.com/channels/' . $publisher . '" target="_blank">' . $publisher . '</a>';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 123 characters
              Open

                          $publisher = '<a href="https://www.dailymotion.com/' . $publisher . '" target="_blank">' . $publisher . '</a>';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 322 characters
              Open

                          $showvideo = '<embed width="448" height="320" align="middle" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="flvplayer" bgcolor="#ffffff" devicefont="true" wmode="transparent" quality="high" src="https://clipat.maktoob.com/flvplayerOurJS.swf?file=https://'
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 167 characters
              Open

                                       . '" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" quality="best" width="400" height="321"></embed>';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 172 characters
              Open

                                   <script type="text/javascript" src="' . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/flvplayer/flowplayer/flowplayer.min.js"></script>
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 132 characters
              Open

                          $publisher = '<a href="https://www.youtube.com/profile?user=' . $publisher . '" target="_blank">' . $publisher . '</a>';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 125 characters
              Open

                          $publisher = '<a href="https://www.ifilm.com/profile/' . $publisher . '" target="_blank">' . $publisher . '</a>';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 128 characters
              Open

                          $publisher = '<a href="https://www.viddler.com/explore/' . $publisher . '/" target="_blank">' . $publisher . '</a>';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 168 characters
              Open

                          //            . '/include/mediaplayer.swf" width="425" height="350" allowScriptAccess="always" allowFullScreen="true" flashvars="width=425&height=350&file='
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 171 characters
              Open

                          //                         . '&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed>';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 132 characters
              Open

                          //            . XOOPS_URL . '/' . $GLOBALS['xoopsModuleConfig']['videodir'] . '/' . $vidid . '&image=' . XOOPS_URL . '/'
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 137 characters
              Open

                          //            . $GLOBALS['xoopsModuleConfig']['videoimgdir'] . '/' . $screenshot . '&autostart=' . $autoplay3 . '"></embed>';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 251 characters
              Open

                          $showvideo = '<embed width="480" height="295" type="application/x-shockwave-flash" wmode="transparent" src="https://i51.photobucket.com/player.swf?file=https://vid51.photobucket.com/albums/' . $vidid . '.flv' . $photobucket . '"></embed>';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 124 characters
              Open

                          $publisher = '<a href="https://www.clipfish.de/user/' . $publisher . '" target="_blank">' . $publisher . '</a>';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 225 characters
              Open

                          $thumb = '<img src="https://i153.photobucket.com/albums/' . $vidid . '.jpg" width="' . $width . '" height="' . $height . '"  title="' . $title . '" alt="' . $title . '" style="padding: 0px; border-style: none;">';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 122 characters
              Open

                          $publisher = '<a href="https://www.veoh.com/users/' . $publisher . '" target="_blank">' . $publisher . '</a>';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 160 characters
              Open

                          $publisher                = '<a href="https://s39.photobucket.com/albums/' . $ppublisher['ppublisher'] . '" target="_blank">' . $publisher . '</a>';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 202 characters
              Open

                                       . '" allowFullScreen="true" width="480" height="295" bgcolor="#FFFFFF" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer"></embed>';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 134 characters
              Open

                                       . '" type="application/x-shockwave-flash" allowfullscreen="true" width="640" height="363"></embed></object>';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 185 characters
              Open

                                       . '.swf" width="480" height="295" wmode="transparent" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 224 characters
              Open

                          $thumb = '<img src="https://img.youtube.com/vi/' . $vidid . '/default.jpg"  title="' . $title . '" alt="' . $title . '" width="' . $width . '" height="' . $height . '" style="padding: 0px; border-style: none;">';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 245 characters
              Open

                          $showvideo = '<embed src="https://mediaservices.myspace.com/services/media/embed.aspx/m=' . $vidid . ',t=1,mt=video,ap=' . $autoplay . '" width="480" height="295" allowFullScreen="true" type="application/x-shockwave-flash"></embed>';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 232 characters
              Open

                          $thumb = '<img src="https://cdn-thumbs.viddler.com/thumbnail_2_' . $vidid . '.jpg" width="' . $width . '" height="' . $height . '"  title="' . $title . '" alt="' . $title . '" style="padding: 0px; border-style: none;">';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 130 characters
              Open

                                       . '"></param><param name="allowFullScreen" value="true"></param><embed src="https://www.megavideo.com/v/'
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 208 characters
              Open

                          $thumb = '<img src="' . XOOPS_URL . '/' . $screenshot . '" width="' . $width . '" height="' . $height . '"  title="' . $title . '" alt="' . $title . '" style="padding: 0px; border-style: none;">';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 290 characters
              Open

                          $showvideo = '<iframe src="https://www.youtube.com/embed/' . $vidid . '?html5=1&amp;rel=0&amp;hl=en_US&amp;version=3' . '&autoplay=' . $autoplay . '&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></iframe>';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 214 characters
              Open

                          $showvideo = '<embed src="https://www.liveleak.com/e/' . $vidid . '" type="application/x-shockwave-flash" flashvars="autostart=' . $autoplay3 . '" wmode="transparent" width="450" height="370"></embed>';
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              Line exceeds 120 characters; contains 173 characters
              Open

                                   <a href="' . XOOPS_URL . '/' . $xoopsModule->getVar('dirname') . '/' . $vidid . '" style="display: block; width: 520px; height: 330px;" id="player"></a>
              Severity: Minor
              Found in include/video.php by phpcodesniffer

              There are no issues that match your filters.

              Category
              Status