PressLabs/gitium

View on GitHub

Showing 4,852 of 4,852 total issues

The method get_last_error is not named in camelCase.
Open

    function get_last_error() {
        return $this->last_error;
    }
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 local_status is not named in camelCase.
Open

    function local_status() {
        list( $return, $response ) = $this->_call( 'status', '-s', '-b', '-u' );
        if ( 0 !== $return ) {
            return array( '', array() );
        }
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 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 get_behind_commits is not named in camelCase.
Open

    function get_behind_commits() {
        list( , $commits  ) = $this->_call( 'rev-list', '..@{u}' );
        return $commits;
    }
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 rm_cached is not named in camelCase.
Open

    function rm_cached( $path ) {
        list( $return, ) = $this->_call( 'rm', '--cached', $path );
        return ( $return == 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 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_uncommited_changes is not named in camelCase.
Open

    function get_uncommited_changes() {
        list( , $changes ) = $this->status();
        return $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 get_local_branch is not named in camelCase.
Open

    function get_local_branch() {
        list( $return, $response ) = $this->_call( 'rev-parse', '--abbrev-ref', 'HEAD' );
        if ( 0 == $return ) {
            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 is_git_version is not named in camelCase.
Open

    private function is_git_version() {
        $git_version = get_transient( 'gitium_git_version' );

        if ( GITIUM_MIN_GIT_VER > substr( $git_version, 0, 3 ) ) {
            global $git;

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

    private function changes_page() {
        list( , $changes ) = _gitium_status();
        ?>
        <div class="wrap">
        <div id="icon-options-general" class="icon32">&nbsp;</div>

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

The method init_repo is not named in camelCase.
Open

    public function init_repo() {
        $remote_url = filter_input(INPUT_POST, 'remote_url', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
        $gitium_submit_fetch = filter_input(INPUT_POST, 'GitiumSubmitFetch', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
        if ( ! isset( $gitium_submit_fetch ) || ! isset( $remote_url ) ) {
            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_remote_url is not named in camelCase.
Open

    private function setup_step_1_remote_url() {
        ?>
        <tr>
        <th scope="row"><label for="remote_url"><?php _e( 'Remote 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 save_ignorelist is not named in camelCase.
Open

    public function save_ignorelist() {
        $gitium_ignore_path = filter_input(INPUT_POST, 'GitiumIgnorePath', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
        if ( ! isset( $gitium_ignore_path ) ) {
            return;
        } else {

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

    private function can_exec_ssh_git_file() {
        $filepath = dirname( __FILE__ ) . '/ssh-git';

        if ( ! function_exists( 'is_executable' ) ) {
            return array( false, 'The function `is_executable` is disabled!' );

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

    public function table_start_row() {
        static $counter = 0;
        $counter++;
        echo ( 0 != $counter % 2 ) ? '<tr class="active">' : '<tr class="inactive">';
    }

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

    private function get_change_meanings() {
        return array(
            '??' => __( 'untracked', 'gitium' ),
            'rM' => __( 'modified on remote', 'gitium' ),
            'rA' => __( 'added to remote', '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_status_working is not named in camelCase.
Open

    function is_status_working() {
        list( $return, ) = $this->_call( 'status', '-s' );
        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 _log is not named in camelCase.
Open

    function _log(...$args) {
        if ( ! defined( 'WP_DEBUG' ) || ! WP_DEBUG ) { return; }

        $output = '';
        if (isset($args) && $args) foreach ( $args as $arg ) {
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

Severity
Category
Status
Source
Language