PressLabs/gitium

View on GitHub

Showing 4,852 of 4,852 total issues

The method get_last_commits is not named in camelCase.
Open

    function get_last_commits( $n = 20 ) {
        list( $return, $message )  = $this->_call( 'log', '-n', $n, '--pretty=format:%s' );
        if ( 0 !== $return ) { return false; }

        list( $return, $response ) = $this->_call( 'log', '-n', $n, '--pretty=format:%h|%an|%ae|%ad|%cn|%ce|%cd' );
Severity: Minor
Found in gitium/inc/class-git-wrapper.php by phpmd

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

    private function setup_warning() {
        ?>
        <div class="wrap">
            <h2><?php _e( 'Warning!', 'gitium' ); ?></h2>
            <form name="gitium_form_warning" id="gitium_form_warning" action="" method="POST">

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

    public function table_head() {
        ?>
        <thead>
        <tr>
            <th scope="col"><?php _e( 'Commits', 'gitium' ); ?></th>

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

    public function table_end_row() {
        echo '</tr>';
    }

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

    private function show_webhook_table_webhook_url() {
        ?>
        <tr>
            <th><label for="webhook-url"><?php _e( 'Webhook URL', 'gitium' ); ?>:</label></th>
            <td>

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

    public function show_webhook_table() {
        ?>
        <table class="form-table">
            <?php $this->show_webhook_table_webhook_url() ?>
            <?php $this->show_webhook_table_public_key(); ?>

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

    function get_remote_url() {
        list( , $response ) = $this->_call( 'config', '--get', 'remote.origin.url' );
        if ( isset( $response[0] ) ) {
            return $response[0];
        }
Severity: Minor
Found in gitium/inc/class-git-wrapper.php by phpmd

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 _call is not named in camelCase.
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 by phpmd

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

    function fetch_ref() {
        list( $return, ) = $this->_call( 'fetch', 'origin' );
        return ( 0 == $return );
    }
Severity: Minor
Found in gitium/inc/class-git-wrapper.php by phpmd

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

    private function is_php_version() {
        if ( ! function_exists( 'phpversion' ) ) {
            return array( false, 'The function `phpversion` is disabled!' );
        } else {
            $php_version = phpversion();

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

    public function admin_menu() {
        $submenu_hook = add_submenu_page(
            $this->menu_slug,
            __( 'Git Commits', 'gitium' ),
            __( 'Commits', 'gitium' ),

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

    function is_dirty() {
        $changes = $this->get_uncommited_changes();
        return ! empty( $changes );
    }
Severity: Minor
Found in gitium/inc/class-git-wrapper.php by phpmd

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

    public function status_callback() {
        echo '<p>' . __( 'On status page you can see what files are modified, and you can commit the changes to git.', 'gitium' ) . '</p>';
    }
Severity: Minor
Found in gitium/inc/class-gitium-help.php by phpmd

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

    public function disconnect_repository() {
        $gitium_disconnect_repo = filter_input(INPUT_POST, 'GitiumSubmitDisconnectRepository', FILTER_SANITIZE_FULL_SPECIAL_CHARS);

        if ( ! isset( $gitium_disconnect_repo ) ) {
            return;
Severity: Minor
Found in gitium/inc/class-gitium-menu.php by phpmd

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

    public function regenerate_keypair() {
        $submit_keypair = filter_input(INPUT_POST, 'GitiumSubmitRegenerateKeypair', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
        if ( ! isset( $submit_keypair ) ) {
            return;
        }

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

    private function setup_step_1() {
        ?>
        <div class="wrap">
            <h2><?php _e( 'Configuration step 1', '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>

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

    public function admin_menu() {
        add_menu_page(
            __( 'Git Status', 'gitium' ),
            'Gitium',
            GITIUM_MANAGE_OPTIONS_CAPABILITY,

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

    private function show_ahead_and_behind_info( $changes = '' ) {
        $branch = $this->git->get_remote_tracking_branch();
        $ahead  = count( $this->git->get_ahead_commits() );
        $behind = count( $this->git->get_behind_commits() );
        ?>

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

    function get_commit_message( $commit ) {
        list( $return, $response ) = $this->_call( 'log', '--format=%B', '-n', '1', $commit );
        return ( $return !== 0 ? false : join( "\n", $response ) );
    }
Severity: Minor
Found in gitium/inc/class-git-wrapper.php by phpmd

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

    public function show_message() {
        $get_message = filter_input(INPUT_GET, 'message', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
        $get_success = filter_input(INPUT_GET, 'success', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
        if ( isset( $get_message ) && $get_message ) {
            $type    = ( isset( $get_success ) && $get_success == 1 ) ? 'updated' : 'error';
Severity: Minor
Found in gitium/inc/class-gitium-menu.php by phpmd

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

Severity
Category
Status
Source
Language