PressLabs/gitium

View on GitHub

Showing 4,852 of 4,852 total issues

The method gitium_warning is not named in camelCase.
Open

    public function gitium_warning() {
        $submit_warning = filter_input(INPUT_POST, 'GitiumSubmitWarning', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
        if ( ! isset( $submit_warning ) ) {
            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 regenerate_public_key is not named in camelCase.
Open

    public function regenerate_public_key() {
        $submit_regenerate_pub_key = filter_input(INPUT_POST, 'GitiumSubmitRegeneratePublicKey', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
        if ( ! isset( $submit_regenerate_pub_key ) ) {
            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 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 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 requirements_callback is not named in camelCase.
Open

    public function requirements_callback() {
        echo '<p>' . __( 'Gitium requires:', 'gitium' ) . '</p>';
        echo '<p>' . __( 'the function proc_open available', 'gitium' ) . '</p>';
        echo '<p>' . __( 'can exec the file inc/ssh-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 configuration_callback is not named in camelCase.
Open

    public function configuration_callback() {
        echo '<p><strong>' . __( 'Configuration step 1', 'gitium' ) . '</strong><br />' . __( 'In this step you must specify the <code>Remote URL</code>. This URL represents the link between the git sistem and your site.', 'gitium' ) . '</p>';
        echo '<p>' . __( 'You can get this URL from your Git repository and it looks like this:', 'gitium' ) . '</p>';
        echo '<p>' . __( 'github.com -> git@github.com:user/example.git', 'gitium' ) . '</p>';
        echo '<p>' . __( 'bitbucket.org -> git@bitbucket.org:user/glowing-happiness.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 admin_notices is not named in camelCase.
Open

    public function admin_notices() {
        if ( ! current_user_can( GITIUM_MANAGE_OPTIONS_CAPABILITY ) ) {
            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 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 save_changes is not named in camelCase.
Open

    public function save_changes() {
        $gitium_save_changes = filter_input(INPUT_POST, 'GitiumSubmitSaveChanges', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
        $gitium_commit_msg = filter_input(INPUT_POST, 'commitmsg', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
        if ( ! isset( $gitium_save_changes ) ) {
            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 get_status is not named in camelCase.
Open

    public function get_status() {
        $requirements = $this->req;

        foreach ( $requirements as $req ) :
            if ( false === $req ) :

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_git_changes_table_rows is not named in camelCase.
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' );

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

    private function show_webhook_table_public_key() {
        list( $git_public_key, ) = gitium_get_keypair();
        if ( ! defined( 'GIT_KEY_FILE' ) || GIT_KEY_FILE == '' ) : ?>
            <tr>
                <th><label for="public-key"><?php _e( 'Public Key', 'gitium' ); ?>:</label></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 _git_temp_key_file is not named in camelCase.
Open

    function _git_temp_key_file() {
        $key_file = tempnam( sys_get_temp_dir(), 'ssh-git' );
        return $key_file;
    }
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_env is not named in camelCase.
Open

    private function get_env() {
        $env      = array(
            'HOME' => getenv( 'HOME' ),
        );
        $key_file = null;
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 cherry_pick is not named in camelCase.
Open

    private function cherry_pick( $commits ) {
        foreach ( $commits as $commit ) {
            if ( empty( $commit ) ) { return false; }

            list( $return, $response ) = $this->_call( 'cherry-pick', $commit );
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 _check_req is not named in camelCase.
Open

    private function _check_req() {
        list($this->req['is_git_version'],       $this->msg['is_git_version']       ) = $this->is_git_version();
        list($this->req['is_proc_open'],         $this->msg['is_proc_open']         ) = $this->is_proc_open();
        list($this->req['is_php_verion'],        $this->msg['is_php_verion']        ) = $this->is_php_version();
        list($this->req['can_exec_ssh_git_file'],$this->msg['can_exec_ssh_git_file']) = $this->can_exec_ssh_git_file();

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