PressLabs/gitium

View on GitHub

Showing 4,852 of 4,852 total issues

Method _call has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function _call(...$args) {
        $args     = join( ' ', array_map( 'escapeshellarg', $args ) );
        $return   = -1;
        $response = array();
        $env      = $this->get_env();
Severity: Minor
Found in gitium/inc/class-git-wrapper.php - About 1 hr to fix

    Method page has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function page() {
            ?>
            <div class="wrap">
            <h2><?php printf( __( 'Last %s commits', 'gitium' ), GITIUM_LAST_COMMITS ); ?></h2>
            <table class="wp-list-table widefat plugins">
    Severity: Minor
    Found in gitium/inc/class-gitium-submenu-commits.php - About 1 hr to fix

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

                  $plugin_versions[ $name ]['msg']     .= ' version ' . $data['Version'];
      Severity: Minor
      Found in gitium/gitium.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 '$theme_versions' which will lead to PHP notices.
      Open

              $theme_versions[ $theme_name ] = array(
      Severity: Minor
      Found in gitium/gitium.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 '$plugin_versions' which will lead to PHP notices.
      Open

                  $plugin_versions[ $name ]['version'] .= $data['Version'];
      Severity: Minor
      Found in gitium/gitium.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 '$plugin_versions' which will lead to PHP notices.
      Open

          if ( ! empty( $plugin_versions ) ) {
      Severity: Minor
      Found in gitium/gitium.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 '$theme_versions' which will lead to PHP notices.
      Open

          if ( ! empty( $theme_versions ) ) {
      Severity: Minor
      Found in gitium/gitium.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 '$plugin_versions' which will lead to PHP notices.
      Open

              $new_versions['plugins'] = $plugin_versions;
      Severity: Minor
      Found in gitium/gitium.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 '$theme_versions' which will lead to PHP notices.
      Open

                  $theme_versions[ $theme_name ]['version'] .= $version;
      Severity: Minor
      Found in gitium/gitium.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 '$plugin_versions' which will lead to PHP notices.
      Open

              $plugin_versions[ $name ] = array(
      Severity: Minor
      Found in gitium/gitium.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 '$commits' which will lead to PHP notices.
      Open

                      $commits[ $commit_info[0] ]['committer_name']  = $commit_info[4];
      Severity: Minor
      Found in gitium/inc/class-git-wrapper.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 '$committer_email' which will lead to PHP notices.
      Open

                      $committers_avatar = '<div style="position:absolute; left:30px; border: 1px solid white; background:white; height:17px; top:30px; border-radius:2px">' . get_avatar( $committer_email, 16 ) . '</div>';

      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 '$author_date' which will lead to PHP notices.
      Open

                      <span title="<?php echo esc_attr( $author_email ); ?>"><?php echo esc_html( $author_name ) . ' ' . sprintf( __( 'authored %s ago', 'gitium' ), human_time_diff( strtotime( $author_date ) ) ); ?></span><?php echo $committer; ?></div>

      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 '$committer_name' which will lead to PHP notices.
      Open

                  unset( $committer_name );

      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 '$commits' which will lead to PHP notices.
      Open

                  $commits[ $commit_info[0] ] = array(
      Severity: Minor
      Found in gitium/inc/class-git-wrapper.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 '$committer_email' which will lead to PHP notices.
      Open

                      $committer         = "<span title='$committer_email'> -> $committer_name " . sprintf( __( 'committed %s ago', 'gitium' ), human_time_diff( strtotime( $committer_date ) ) ) . '</span>';

      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 '$commits' which will lead to PHP notices.
      Open

                      $commits[ $commit_info[0] ]['committer_email'] = $commit_info[5];
      Severity: Minor
      Found in gitium/inc/class-git-wrapper.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 '$commits' which will lead to PHP notices.
      Open

                      $commits[ $commit_info[0] ]['committer_date']  = $commit_info[6];
      Severity: Minor
      Found in gitium/inc/class-git-wrapper.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 '$author_email' which will lead to PHP notices.
      Open

                      <span title="<?php echo esc_attr( $author_email ); ?>"><?php echo esc_html( $author_name ) . ' ' . sprintf( __( 'authored %s ago', 'gitium' ), human_time_diff( strtotime( $author_date ) ) ); ?></span><?php echo $committer; ?></div>

      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 '$theme_versions' which will lead to PHP notices.
      Open

                  $theme_versions[ $theme_name ]['msg']     .= " version $version";
      Severity: Minor
      Found in gitium/gitium.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

      Severity
      Category
      Status
      Source
      Language