PressLabs/gitium

View on GitHub

Showing 4,852 of 4,852 total issues

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

        $plugin_versions[ $name ]['msg'] = "`{$data['Name']}`";
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

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

                <div style="float:left; width:auto; height:auto;"><strong><?php echo esc_html( $subject ); ?></strong><br />

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_name' 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'] = '`' . $theme->Name . '`';
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

        $new_versions['themes'] = $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 '$committer_date' 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 '$committer_name' 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 '$author_email' which will lead to PHP notices.
Open

                <div style="float:left; width:auto; height:auto; padding-left:2px; padding-right:5px; padding-top:2px; margin-right:5px; border-radius:2px"><?php echo get_avatar( $author_email, 32 ); ?></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

            if ( isset( $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

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

    function merge_with_accept_mine(...$commits) {
        do_action( 'gitium_before_merge_with_accept_mine' );

        if ( 1 == count($commits) && is_array( $commits[0] ) ) {
            $commits = $commits[0];
Severity: Minor
Found in gitium/inc/class-git-wrapper.php - About 1 hr to fix

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

        private function setup_step_2() {
            $git = $this->git; ?>
            <div class="wrap">
            <h2><?php _e( 'Configuration step 2', 'gitium' ); ?></h2>
            <p><?php _e( 'If you need help to set this up, please click on the "Help" button from the top right corner of this screen.' ); ?></p>
    Severity: Minor
    Found in gitium/inc/class-gitium-submenu-configure.php - About 1 hr to fix

      Method show_git_changes_table_rows has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private function show_git_changes_table_rows( $changes = '' ) {
              ?>
              <script type="application/javascript">
              function add_path_and_submit( elem ) {
                  var container = document.getElementById( 'form_status' );
      Severity: Minor
      Found in gitium/inc/class-gitium-submenu-status.php - About 1 hr to fix

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

        class Git_Wrapper {

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

        class Gitium_Menu_Bubble extends Gitium_Menu {

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

        class Gitium_Admin {

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

        class Gitium_Help {

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

        class Gitium_Menu {

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

        class Gitium_Submenu_Commits extends Gitium_Menu {

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

        class Gitium_Submenu_Configure extends Gitium_Menu {
        Severity
        Category
        Status
        Source
        Language