PressLabs/gitium

View on GitHub
gitium/inc/class-gitium-help.php

Summary

Maintainability
A
0 mins
Test Coverage

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

class Gitium_Help {

The class Gitium_Help is not named in CamelCase.
Open

class Gitium_Help {

    public function __construct( $hook, $help = 'gitium' ) {
        add_action( "load-{$hook}", array( $this, $help ), 20 );
    }
Severity: Minor
Found in gitium/inc/class-gitium-help.php by phpmd

CamelCaseClassName

Since: 0.2

It is considered best practice to use the CamelCase notation to name classes.

Example

class class_name {
}

Source

Method name "Gitium_Help::requirements_callback" is not in camel caps format
Open

    public function requirements_callback() {

Opening brace of a class must be on the line after the definition
Open

class Gitium_Help {

Method name "Gitium_Help::settings_callback" is not in camel caps format
Open

    public function settings_callback() {

Expected 0 spaces between argument "$help" and closing bracket; 1 found
Open

    public function __construct( $hook, $help = 'gitium' ) {

Expected 0 spaces between opening bracket and argument "$hook"; 1 found
Open

    public function __construct( $hook, $help = 'gitium' ) {

Method name "Gitium_Help::configuration_callback" is not in camel caps format
Open

    public function configuration_callback() {

Method name "Gitium_Help::status_callback" is not in camel caps format
Open

    public function status_callback() {

Method name "Gitium_Help::commits_callback" is not in camel caps format
Open

    public function commits_callback() {

Spaces must be used to indent lines; tabs are not allowed
Open

    public function __construct( $hook, $help = 'gitium' ) {

Line exceeds 120 characters; contains 163 characters
Open

        $screen->add_help_tab( array( 'id' => 'requirements', 'title' => __( 'Requirements', 'gitium' ), 'callback' => array( $this, 'requirements_callback' ) ) );

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p>' . __( 'Gitium enables continuous deployment for WordPress integrating with tools such as Github, Bitbucket or Travis-CI. Plugin and theme updates, installs and removals are automatically versioned.', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p><strong>' . __( 'How to deploy automatically after a push?', 'gitium' ) . '</strong><br />'. __( 'You can ping the webhook url after a push to automatically deploy the new code. The webhook url can be found under Code menu. This url plays well with Github or Bitbucket webhooks.', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p><strong>' . __( 'Does it works on multi site setups?', 'gitium' ) . '</strong><br />'. __( 'Gitium is not supporting multisite setups at the moment.', 'gitium' ) . '</p>';

Line exceeds 120 characters; contains 165 characters
Open

        echo '<p>' . __( 'When you push the button <code>Merge & Push</code>, all code(plugins & themes) will be pushed on the git repository.', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

        $screen = get_current_screen();

Line exceeds 120 characters; contains 239 characters
Open

        echo '<p>' . __( 'Gitium enables continuous deployment for WordPress integrating with tools such as Github, Bitbucket or Travis-CI. Plugin and theme updates, installs and removals are automatically versioned.', 'gitium' ) . '</p>';

Line exceeds 120 characters; contains 331 characters
Open

        echo '<p><strong>' . __( 'Could not connect to remote repository?', 'gitium' ) . '</strong><br />'. __( 'If you encounter this kind of error you can try to fix it by setting the proper username of the .git directory.', 'gitium' ) . '<br />' . __( 'Example', 'gitium' ) .': <code>chown -R www-data:www-data .git</code></p>';

Line exceeds 120 characters; contains 190 characters
Open

        echo '<p><strong>' . __( 'Configuration step 2', 'gitium' ) . '</strong><br />' . __( 'In this step you must select the <code>branch</code> you want to follow.', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Line exceeds 120 characters; contains 136 characters
Open

        $screen->add_help_tab( array( 'id' => 'gitium', 'title' => __( 'Gitium', 'gitium' ), 'callback' => array( $this, 'gitium' ) ) );

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p><strong>' . __( 'Is this plugin considered stable?', 'gitium' ) . '</strong><br />'. __( 'Right now this plugin is considered alpha quality and should be used in production environments only by adventurous kinds.', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p>' . __( 'the function proc_open available', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p><strong>' . __( 'Configuration step 2', 'gitium' ) . '</strong><br />' . __( 'In this step you must select the <code>branch</code> you want to follow.', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

        $screen->add_help_tab( array( 'id' => 'status', 'title' => __( 'Status', 'gitium' ), 'callback' => array( $this, 'status_callback' ) ) );

Spaces must be used to indent lines; tabs are not allowed
Open

        $this->general();

Spaces must be used to indent lines; tabs are not allowed
Open

        $screen = get_current_screen();

Spaces must be used to indent lines; tabs are not allowed
Open

        $screen->add_help_tab( array( 'id' => 'commits', 'title' => __( 'Commits', 'gitium' ), 'callback' => array( $this, 'commits_callback' ) ) );

Spaces must be used to indent lines; tabs are not allowed
Open

        $screen->add_help_tab( array( 'id' => 'gitium', 'title' => __( 'Gitium', 'gitium' ), 'callback' => array( $this, 'gitium' ) ) );

Spaces must be used to indent lines; tabs are not allowed
Open

        $screen->add_help_tab( array( 'id' => 'requirements', 'title' => __( 'Requirements', 'gitium' ), 'callback' => array( $this, 'requirements_callback' ) ) );

Spaces must be used to indent lines; tabs are not allowed
Open

    public function gitium() {

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p>' . __( 'Gitium requires:', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p>' . __( 'You may be wondering what is the difference between author and committer.', 'gitium' ) . '</p>';

Line exceeds 120 characters; contains 122 characters
Open

        echo '<p>' . __( 'You may be wondering what is the difference between author and committer.', 'gitium' ) . '</p>';

Line exceeds 120 characters; contains 195 characters
Open

        echo '<p>' . __( 'The <code>author</code> is the person who originally wrote the patch, whereas the <code>committer</code> is the person who last applied the patch.', 'gitium' ) . '</p>';

Line exceeds 120 characters; contains 293 characters
Open

        echo '<p>' . __( 'When deciding whether to ignore a path, Git normally checks gitignore patterns from multiple sources, with the following order of precedence, from highest to lowest (within one level of precedence, the last matching pattern decides the outcome)', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

    public function configuration_callback() {

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p>' . __( 'When you push the button <code>Merge & Push</code>, all code(plugins & themes) will be pushed on the git repository.', 'gitium' ) . '</p>';

Line exceeds 120 characters; contains 218 characters
Open

        echo '<p>' . __( 'So, if you send in a patch to a project and one of the core members applies the patch, both of you get credit — you as the author and the core member as the committer.', 'gitium' ) . '</p>';

Line exceeds 120 characters; contains 192 characters
Open

        echo '<p>' . __( 'Gitium requires <code>git</code> command line tool minimum version 1.7 installed on the server and <code>proc_open</code> PHP function enabled.', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p><strong>' . __( 'Could not connect to remote repository?', 'gitium' ) . '</strong><br />'. __( 'If you encounter this kind of error you can try to fix it by setting the proper username of the .git directory.', 'gitium' ) . '<br />' . __( 'Example', 'gitium' ) .': <code>chown -R www-data:www-data .git</code></p>';

Line exceeds 120 characters; contains 300 characters
Open

        echo '<p><strong>' . __( 'What happens in case of conflicts?', 'gitium' ) . '</strong><br />'. __( 'The behavior in case of conflicts is to overwrite the changes on the origin repository with the local changes (ie. local modifications take precedence over remote ones).', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

    public function configuration() {

Spaces must be used to indent lines; tabs are not allowed
Open

        $this->general();

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

    public function commits() {

Spaces must be used to indent lines; tabs are not allowed
Open

    public function commits_callback() {

Spaces must be used to indent lines; tabs are not allowed
Open

        $this->general();

Line exceeds 120 characters; contains 160 characters
Open

        echo '<p>' . sprintf( __( 'Read more on %s', 'gitium' ), '<a href="http://git-scm.com/docs/gitignore" target="_blank">git documentation</a>' ) . '</p>';

Line exceeds 120 characters; contains 130 characters
Open

        $screen->add_help_tab( array( 'id' => 'faq', 'title' => __( 'F.A.Q.', 'gitium' ), 'callback' => array( $this, 'faq' ) ) );

Line exceeds 120 characters; contains 170 characters
Open

        echo '<p><strong>' . __( 'How does gitium handle submodules?', 'gitium' ) . '</strong><br />'. __( 'Currently submodules are not supported.', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p>' . __( 'You can get this URL from your Git repository and it looks like this:', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p>' . __( 'On status page you can see what files are modified, and you can commit the changes to git.', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

        $screen = get_current_screen();

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p>' . __( 'Ninja code edits from the WordPress editor are also tracked into version control. Gitium is designed for sane development environments.', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p>' . __( 'Gitium requires <code>git</code> command line tool minimum version 1.7 installed on the server and <code>proc_open</code> PHP function enabled.', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

        printf( '<p>' . __( 'git version >= %s', 'gitium' ) . '</p>', GITIUM_MIN_GIT_VER );

Line exceeds 120 characters; contains 252 characters
Open

        echo '<p><strong>' . __( 'Is this plugin considered stable?', 'gitium' ) . '</strong><br />'. __( 'Right now this plugin is considered alpha quality and should be used in production environments only by adventurous kinds.', 'gitium' ) . '</p>';

Line exceeds 120 characters; contains 243 characters
Open

        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>';

Line exceeds 120 characters; contains 217 characters
Open

        $screen->set_help_sidebar( '<div style="width:auto; height:auto; float:right; padding-right:28px; padding-top:15px"><img src="' . plugins_url( 'img/gitium.svg', dirname( __FILE__ ) ) . '" width="96"></div>' );

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

        $screen->add_help_tab( array( 'id' => 'settings', 'title' => __( 'Settings', 'gitium' ), 'callback' => array( $this, 'settings_callback' ) ) );

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

    public function status_callback() {

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p><strong>' . __( 'What happens in case of conflicts?', 'gitium' ) . '</strong><br />'. __( 'The behavior in case of conflicts is to overwrite the changes on the origin repository with the local changes (ie. local modifications take precedence over remote ones).', 'gitium' ) . '</p>';

Line exceeds 120 characters; contains 148 characters
Open

        $screen->add_help_tab( array( 'id' => 'commits', 'title' => __( 'Commits', 'gitium' ), 'callback' => array( $this, 'commits_callback' ) ) );

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p>' . __( 'So, if you send in a patch to a project and one of the core members applies the patch, both of you get credit — you as the author and the core member as the committer.', 'gitium' ) . '</p>';

Line exceeds 120 characters; contains 318 characters
Open

        echo '<p><strong>' . __( 'How to deploy automatically after a push?', 'gitium' ) . '</strong><br />'. __( 'You can ping the webhook url after a push to automatically deploy the new code. The webhook url can be found under Code menu. This url plays well with Github or Bitbucket webhooks.', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

    public function faq() {

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p>' . __( 'can exec the file inc/ssh-git', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

        $screen->add_help_tab( array( 'id' => 'configuration', 'title' => __( 'Configuration', 'gitium' ), 'callback' => array( $this, 'configuration_callback' ) ) );

Spaces must be used to indent lines; tabs are not allowed
Open

        $screen = get_current_screen();

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p>' . __( 'The <code>author</code> is the person who originally wrote the patch, whereas the <code>committer</code> is the person who last applied the patch.', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

        $screen->add_help_tab( array( 'id' => 'faq', 'title' => __( 'F.A.Q.', 'gitium' ), 'callback' => array( $this, 'faq' ) ) );

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Line exceeds 120 characters; contains 184 characters
Open

        echo '<p>' . __( 'Ninja code edits from the WordPress editor are also tracked into version control. Gitium is designed for sane development environments.', 'gitium' ) . '</p>';

Line exceeds 120 characters; contains 169 characters
Open

        echo '<p>' . __( 'Staging and production can follow different branches of the same repository. You can deploy code simply trough git push.', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

        $screen = get_current_screen();

Spaces must be used to indent lines; tabs are not allowed
Open

    public function status() {

Line exceeds 120 characters; contains 139 characters
Open

        echo '<p>' . __( 'On status page you can see what files are modified, and you can commit the changes to git.', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p>' . __( 'When deciding whether to ignore a path, Git normally checks gitignore patterns from multiple sources, with the following order of precedence, from highest to lowest (within one level of precedence, the last matching pattern decides the outcome)', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

        add_action( "load-{$hook}", array( $this, $help ), 20 );

Spaces must be used to indent lines; tabs are not allowed
Open

        $screen->set_help_sidebar( '<div style="width:auto; height:auto; float:right; padding-right:28px; padding-top:15px"><img src="' . plugins_url( 'img/gitium.svg', dirname( __FILE__ ) ) . '" width="96"></div>' );

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p><strong>' . __( 'How does gitium handle submodules?', 'gitium' ) . '</strong><br />'. __( 'Currently submodules are not supported.', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

        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>';

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p>' . __( 'Only this branch will have all of your code modifications.', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

    public function requirements_callback() {

Spaces must be used to indent lines; tabs are not allowed
Open

        printf( '<p>' . __( 'PHP version >= %s', 'gitium' ) . '</p>', GITIUM_MIN_PHP_VER );

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p>' . __( 'github.com -> git@github.com:user/example.git', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

        $this->general();

Spaces must be used to indent lines; tabs are not allowed
Open

    private function general() {

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p>' . __( 'Staging and production can follow different branches of the same repository. You can deploy code simply trough git push.', 'gitium' ) . '</p>';

Line exceeds 120 characters; contains 188 characters
Open

        echo '<p><strong>' . __( 'Does it works on multi site setups?', 'gitium' ) . '</strong><br />'. __( 'Gitium is not supporting multisite setups at the moment.', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Line exceeds 120 characters; contains 166 characters
Open

        $screen->add_help_tab( array( 'id' => 'configuration', 'title' => __( 'Configuration', 'gitium' ), 'callback' => array( $this, 'configuration_callback' ) ) );

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p>' . __( 'bitbucket.org -> git@bitbucket.org:user/glowing-happiness.git', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p>' . __( 'To go to the next step, fill the <code>Remote URL</code> and then press the <code>Fetch</code> button.', 'gitium' ) . '</p>';

Line exceeds 120 characters; contains 151 characters
Open

        echo '<p>' . __( 'To go to the next step, fill the <code>Remote URL</code> and then press the <code>Fetch</code> button.', 'gitium' ) . '</p>';

Line exceeds 120 characters; contains 145 characters
Open

        $screen->add_help_tab( array( 'id' => 'status', 'title' => __( 'Status', 'gitium' ), 'callback' => array( $this, 'status_callback' ) ) );

Spaces must be used to indent lines; tabs are not allowed
Open

    public function settings() {

Line exceeds 120 characters; contains 151 characters
Open

        $screen->add_help_tab( array( 'id' => 'settings', 'title' => __( 'Settings', 'gitium' ), 'callback' => array( $this, 'settings_callback' ) ) );

Spaces must be used to indent lines; tabs are not allowed
Open

    public function settings_callback() {

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p>' . __( 'Each line from the gitignore file specifies a pattern.', 'gitium' ) . '</p>';

Spaces must be used to indent lines; tabs are not allowed
Open

        echo '<p>' . sprintf( __( 'Read more on %s', 'gitium' ), '<a href="http://git-scm.com/docs/gitignore" target="_blank">git documentation</a>' ) . '</p>';

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p>' . __( 'Gitium enables continuous deployment for WordPress integrating with tools such as Github, Bitbucket or Travis-CI. Plugin and theme updates, installs and removals are automatically versioned.', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        echo '<p><strong>' . __( 'Is this plugin considered stable?', 'gitium' ) . '</strong><br />'. __( 'Right now this plugin is considered alpha quality and should be used in production environments only by adventurous kinds.', 'gitium' ) . '</p>';

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p><strong>' . __( 'Is this plugin considered stable?', 'gitium' ) . '</strong><br />'. __( 'Right now this plugin is considered alpha quality and should be used in production environments only by adventurous kinds.', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        echo '<p><strong>' . __( 'Does it works on multi site setups?', 'gitium' ) . '</strong><br />'. __( 'Gitium is not supporting multisite setups at the moment.', 'gitium' ) . '</p>';

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p>' . __( 'Gitium requires:', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        $screen->add_help_tab( array( 'id' => 'configuration', 'title' => __( 'Configuration', 'gitium' ), 'callback' => array( $this, 'configuration_callback' ) ) );

Expected 0 spaces before closing bracket; 1 found
Open

        $screen->add_help_tab( array( 'id' => 'configuration', 'title' => __( 'Configuration', 'gitium' ), 'callback' => array( $this, 'configuration_callback' ) ) );

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p>' . __( 'To go to the next step, fill the <code>Remote URL</code> and then press the <code>Fetch</code> button.', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        echo '<p>' . __( 'The <code>author</code> is the person who originally wrote the patch, whereas the <code>committer</code> is the person who last applied the patch.', 'gitium' ) . '</p>';

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p>' . __( 'The <code>author</code> is the person who originally wrote the patch, whereas the <code>committer</code> is the person who last applied the patch.', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        echo '<p>' . __( 'So, if you send in a patch to a project and one of the core members applies the patch, both of you get credit — you as the author and the core member as the committer.', 'gitium' ) . '</p>';

Expected 0 spaces before closing bracket; 1 found
Open

        $screen->set_help_sidebar( '<div style="width:auto; height:auto; float:right; padding-right:28px; padding-top:15px"><img src="' . plugins_url( 'img/gitium.svg', dirname( __FILE__ ) ) . '" width="96"></div>' );

Space after opening parenthesis of function call prohibited
Open

        echo '<p>' . __( 'Gitium requires <code>git</code> command line tool minimum version 1.7 installed on the server and <code>proc_open</code> PHP function enabled.', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        echo '<p><strong>' . __( 'Does it works on multi site setups?', 'gitium' ) . '</strong><br />'. __( 'Gitium is not supporting multisite setups at the moment.', 'gitium' ) . '</p>';

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p>' . __( 'can exec the file inc/ssh-git', 'gitium' ) . '</p>';

Expected 0 spaces before closing bracket; 1 found
Open

        printf( '<p>' . __( 'git version >= %s', 'gitium' ) . '</p>', GITIUM_MIN_GIT_VER );

Opening brace should be on a new line
Open

    public function status() {

Expected 0 spaces before closing bracket; 1 found
Open

        $screen->add_help_tab( array( 'id' => 'settings', 'title' => __( 'Settings', 'gitium' ), 'callback' => array( $this, 'settings_callback' ) ) );

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p>' . sprintf( __( 'Read more on %s', 'gitium' ), '<a href="http://git-scm.com/docs/gitignore" target="_blank">git documentation</a>' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        add_action( "load-{$hook}", array( $this, $help ), 20 );

Expected 0 spaces before closing bracket; 1 found
Open

        $screen->add_help_tab( array( 'id' => 'faq', 'title' => __( 'F.A.Q.', 'gitium' ), 'callback' => array( $this, 'faq' ) ) );

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p><strong>' . __( 'Could not connect to remote repository?', 'gitium' ) . '</strong><br />'. __( 'If you encounter this kind of error you can try to fix it by setting the proper username of the .git directory.', 'gitium' ) . '<br />' . __( 'Example', 'gitium' ) .': <code>chown -R www-data:www-data .git</code></p>';

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p><strong>' . __( 'What happens in case of conflicts?', 'gitium' ) . '</strong><br />'. __( 'The behavior in case of conflicts is to overwrite the changes on the origin repository with the local changes (ie. local modifications take precedence over remote ones).', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        echo '<p><strong>' . __( 'How does gitium handle submodules?', 'gitium' ) . '</strong><br />'. __( 'Currently submodules are not supported.', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        printf( '<p>' . __( 'PHP version >= %s', 'gitium' ) . '</p>', GITIUM_MIN_PHP_VER );

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p><strong>' . __( 'Configuration step 2', 'gitium' ) . '</strong><br />' . __( 'In this step you must select the <code>branch</code> you want to follow.', 'gitium' ) . '</p>';

Expected 0 spaces before closing bracket; 1 found
Open

        $screen->add_help_tab( array( 'id' => 'commits', 'title' => __( 'Commits', 'gitium' ), 'callback' => array( $this, 'commits_callback' ) ) );

Opening brace should be on a new line
Open

    public function __construct( $hook, $help = 'gitium' ) {

Space after opening parenthesis of function call prohibited
Open

        echo '<p><strong>' . __( 'What happens in case of conflicts?', 'gitium' ) . '</strong><br />'. __( 'The behavior in case of conflicts is to overwrite the changes on the origin repository with the local changes (ie. local modifications take precedence over remote ones).', 'gitium' ) . '</p>';

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p><strong>' . __( 'How to deploy automatically after a push?', 'gitium' ) . '</strong><br />'. __( 'You can ping the webhook url after a push to automatically deploy the new code. The webhook url can be found under Code menu. This url plays well with Github or Bitbucket webhooks.', 'gitium' ) . '</p>';

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p><strong>' . __( 'Does it works on multi site setups?', 'gitium' ) . '</strong><br />'. __( 'Gitium is not supporting multisite setups at the moment.', 'gitium' ) . '</p>';

Opening brace should be on a new line
Open

    public function requirements_callback() {

Space after opening parenthesis of function call prohibited
Open

        echo '<p>' . __( 'the function proc_open available', 'gitium' ) . '</p>';

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p>' . __( 'the function proc_open available', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        echo '<p>' . __( 'github.com -> git@github.com:user/example.git', 'gitium' ) . '</p>';

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p>' . __( 'github.com -> git@github.com:user/example.git', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        echo '<p>' . __( 'Only this branch will have all of your code modifications.', 'gitium' ) . '</p>';

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p>' . __( 'When you push the button <code>Merge & Push</code>, all code(plugins & themes) will be pushed on the git repository.', 'gitium' ) . '</p>';

Expected 0 spaces before closing bracket; 1 found
Open

        $screen->add_help_tab( array( 'id' => 'status', 'title' => __( 'Status', 'gitium' ), 'callback' => array( $this, 'status_callback' ) ) );

Expected 0 spaces before closing bracket; 1 found
Open

        $screen->add_help_tab( array( 'id' => 'status', 'title' => __( 'Status', 'gitium' ), 'callback' => array( $this, 'status_callback' ) ) );

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p>' . __( 'You may be wondering what is the difference between author and committer.', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        $screen->add_help_tab( array( 'id' => 'settings', 'title' => __( 'Settings', 'gitium' ), 'callback' => array( $this, 'settings_callback' ) ) );

Space after opening parenthesis of function call prohibited
Open

        echo '<p>' . __( 'Each line from the gitignore file specifies a pattern.', 'gitium' ) . '</p>';

Class name "Gitium_Help" is not in camel caps format
Open

class Gitium_Help {

Space after opening parenthesis of function call prohibited
Open

        echo '<p>' . __( 'Gitium enables continuous deployment for WordPress integrating with tools such as Github, Bitbucket or Travis-CI. Plugin and theme updates, installs and removals are automatically versioned.', 'gitium' ) . '</p>';

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p>' . __( 'Staging and production can follow different branches of the same repository. You can deploy code simply trough git push.', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        echo '<p><strong>' . __( 'Could not connect to remote repository?', 'gitium' ) . '</strong><br />'. __( 'If you encounter this kind of error you can try to fix it by setting the proper username of the .git directory.', 'gitium' ) . '<br />' . __( 'Example', 'gitium' ) .': <code>chown -R www-data:www-data .git</code></p>';

Space after opening parenthesis of function call prohibited
Open

        echo '<p><strong>' . __( 'How to deploy automatically after a push?', 'gitium' ) . '</strong><br />'. __( 'You can ping the webhook url after a push to automatically deploy the new code. The webhook url can be found under Code menu. This url plays well with Github or Bitbucket webhooks.', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        echo '<p>' . __( 'Gitium requires:', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        printf( '<p>' . __( 'PHP version >= %s', 'gitium' ) . '</p>', GITIUM_MIN_PHP_VER );

Expected 0 spaces before closing bracket; 1 found
Open

        printf( '<p>' . __( 'PHP version >= %s', 'gitium' ) . '</p>', GITIUM_MIN_PHP_VER );

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p><strong>' . __( 'Configuration step 2', 'gitium' ) . '</strong><br />' . __( 'In this step you must select the <code>branch</code> you want to follow.', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        $screen->add_help_tab( array( 'id' => 'status', 'title' => __( 'Status', 'gitium' ), 'callback' => array( $this, 'status_callback' ) ) );

Space after opening parenthesis of function call prohibited
Open

        echo '<p>' . __( 'On status page you can see what files are modified, and you can commit the changes to git.', 'gitium' ) . '</p>';

Expected 0 spaces before closing bracket; 1 found
Open

        $screen->add_help_tab( array( 'id' => 'settings', 'title' => __( 'Settings', 'gitium' ), 'callback' => array( $this, 'settings_callback' ) ) );

Space after opening parenthesis of function call prohibited
Open

        $screen->add_help_tab( array( 'id' => 'faq', 'title' => __( 'F.A.Q.', 'gitium' ), 'callback' => array( $this, 'faq' ) ) );

Opening brace should be on a new line
Open

    public function gitium() {

Space after opening parenthesis of function call prohibited
Open

        echo '<p><strong>' . __( 'How to deploy automatically after a push?', 'gitium' ) . '</strong><br />'. __( 'You can ping the webhook url after a push to automatically deploy the new code. The webhook url can be found under Code menu. This url plays well with Github or Bitbucket webhooks.', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        printf( '<p>' . __( 'git version >= %s', 'gitium' ) . '</p>', GITIUM_MIN_GIT_VER );

Space after opening parenthesis of function call prohibited
Open

        $screen->add_help_tab( array( 'id' => 'configuration', 'title' => __( 'Configuration', 'gitium' ), 'callback' => array( $this, 'configuration_callback' ) ) );

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p>' . __( 'bitbucket.org -> git@bitbucket.org:user/glowing-happiness.git', 'gitium' ) . '</p>';

Expected 0 spaces before closing bracket; 1 found
Open

        add_action( "load-{$hook}", array( $this, $help ), 20 );

Expected 0 spaces before closing bracket; 1 found
Open

        $screen->add_help_tab( array( 'id' => 'gitium', 'title' => __( 'Gitium', 'gitium' ), 'callback' => array( $this, 'gitium' ) ) );

Space after opening parenthesis of function call prohibited
Open

        $screen->add_help_tab( array( 'id' => 'faq', 'title' => __( 'F.A.Q.', 'gitium' ), 'callback' => array( $this, 'faq' ) ) );

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p><strong>' . __( 'Could not connect to remote repository?', 'gitium' ) . '</strong><br />'. __( 'If you encounter this kind of error you can try to fix it by setting the proper username of the .git directory.', 'gitium' ) . '<br />' . __( 'Example', 'gitium' ) .': <code>chown -R www-data:www-data .git</code></p>';

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p><strong>' . __( 'Could not connect to remote repository?', 'gitium' ) . '</strong><br />'. __( 'If you encounter this kind of error you can try to fix it by setting the proper username of the .git directory.', 'gitium' ) . '<br />' . __( 'Example', 'gitium' ) .': <code>chown -R www-data:www-data .git</code></p>';

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p><strong>' . __( 'Is this plugin considered stable?', 'gitium' ) . '</strong><br />'. __( 'Right now this plugin is considered alpha quality and should be used in production environments only by adventurous kinds.', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        echo '<p><strong>' . __( 'How does gitium handle submodules?', 'gitium' ) . '</strong><br />'. __( 'Currently submodules are not supported.', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        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>';

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p>' . __( 'On status page you can see what files are modified, and you can commit the changes to git.', 'gitium' ) . '</p>';

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p><strong>' . __( 'Does it works on multi site setups?', 'gitium' ) . '</strong><br />'. __( 'Gitium is not supporting multisite setups at the moment.', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        echo '<p>' . __( 'can exec the file inc/ssh-git', 'gitium' ) . '</p>';

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p>' . __( 'You can get this URL from your Git repository and it looks like this:', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        echo '<p>' . __( 'To go to the next step, fill the <code>Remote URL</code> and then press the <code>Fetch</code> button.', 'gitium' ) . '</p>';

Opening brace should be on a new line
Open

    public function status_callback() {

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p>' . __( 'So, if you send in a patch to a project and one of the core members applies the patch, both of you get credit — you as the author and the core member as the committer.', 'gitium' ) . '</p>';

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p>' . sprintf( __( 'Read more on %s', 'gitium' ), '<a href="http://git-scm.com/docs/gitignore" target="_blank">git documentation</a>' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        $screen->set_help_sidebar( '<div style="width:auto; height:auto; float:right; padding-right:28px; padding-top:15px"><img src="' . plugins_url( 'img/gitium.svg', dirname( __FILE__ ) ) . '" width="96"></div>' );

Opening brace should be on a new line
Open

    private function general() {

Expected 0 spaces before closing bracket; 1 found
Open

        $screen->add_help_tab( array( 'id' => 'requirements', 'title' => __( 'Requirements', 'gitium' ), 'callback' => array( $this, 'requirements_callback' ) ) );

Space after opening parenthesis of function call prohibited
Open

        echo '<p>' . __( 'Staging and production can follow different branches of the same repository. You can deploy code simply trough git push.', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        echo '<p><strong>' . __( 'Could not connect to remote repository?', 'gitium' ) . '</strong><br />'. __( 'If you encounter this kind of error you can try to fix it by setting the proper username of the .git directory.', 'gitium' ) . '<br />' . __( 'Example', 'gitium' ) .': <code>chown -R www-data:www-data .git</code></p>';

Space after opening parenthesis of function call prohibited
Open

        echo '<p><strong>' . __( 'Is this plugin considered stable?', 'gitium' ) . '</strong><br />'. __( 'Right now this plugin is considered alpha quality and should be used in production environments only by adventurous kinds.', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        printf( '<p>' . __( 'git version >= %s', 'gitium' ) . '</p>', GITIUM_MIN_GIT_VER );

Expected 0 spaces before closing bracket; 1 found
Open

        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>';

Expected 0 spaces before closing bracket; 1 found
Open

        $screen->add_help_tab( array( 'id' => 'faq', 'title' => __( 'F.A.Q.', 'gitium' ), 'callback' => array( $this, 'faq' ) ) );

Expected 0 spaces before closing bracket; 1 found
Open

        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>';

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p><strong>' . __( 'What happens in case of conflicts?', 'gitium' ) . '</strong><br />'. __( 'The behavior in case of conflicts is to overwrite the changes on the origin repository with the local changes (ie. local modifications take precedence over remote ones).', 'gitium' ) . '</p>';

Expected 0 spaces before closing bracket; 1 found
Open

        $screen->set_help_sidebar( '<div style="width:auto; height:auto; float:right; padding-right:28px; padding-top:15px"><img src="' . plugins_url( 'img/gitium.svg', dirname( __FILE__ ) ) . '" width="96"></div>' );

Space after opening parenthesis of function call prohibited
Open

        echo '<p>' . __( 'bitbucket.org -> git@bitbucket.org:user/glowing-happiness.git', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        echo '<p>' . sprintf( __( 'Read more on %s', 'gitium' ), '<a href="http://git-scm.com/docs/gitignore" target="_blank">git documentation</a>' ) . '</p>';

Opening brace should be on a new line
Open

    public function faq() {

Space after opening parenthesis of function call prohibited
Open

        echo '<p><strong>' . __( 'Configuration step 2', 'gitium' ) . '</strong><br />' . __( 'In this step you must select the <code>branch</code> you want to follow.', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        echo '<p><strong>' . __( 'Could not connect to remote repository?', 'gitium' ) . '</strong><br />'. __( 'If you encounter this kind of error you can try to fix it by setting the proper username of the .git directory.', 'gitium' ) . '<br />' . __( 'Example', 'gitium' ) .': <code>chown -R www-data:www-data .git</code></p>';

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p><strong>' . __( 'How to deploy automatically after a push?', 'gitium' ) . '</strong><br />'. __( 'You can ping the webhook url after a push to automatically deploy the new code. The webhook url can be found under Code menu. This url plays well with Github or Bitbucket webhooks.', 'gitium' ) . '</p>';

Opening brace should be on a new line
Open

    public function settings_callback() {

Expected 0 spaces before closing bracket; 1 found
Open

        printf( '<p>' . __( 'git version >= %s', 'gitium' ) . '</p>', GITIUM_MIN_GIT_VER );

Space after opening parenthesis of function call prohibited
Open

        $screen->add_help_tab( array( 'id' => 'commits', 'title' => __( 'Commits', 'gitium' ), 'callback' => array( $this, 'commits_callback' ) ) );

Space after opening parenthesis of function call prohibited
Open

        $screen->add_help_tab( array( 'id' => 'settings', 'title' => __( 'Settings', 'gitium' ), 'callback' => array( $this, 'settings_callback' ) ) );

Space after opening parenthesis of function call prohibited
Open

        echo '<p>' . sprintf( __( 'Read more on %s', 'gitium' ), '<a href="http://git-scm.com/docs/gitignore" target="_blank">git documentation</a>' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        $screen->set_help_sidebar( '<div style="width:auto; height:auto; float:right; padding-right:28px; padding-top:15px"><img src="' . plugins_url( 'img/gitium.svg', dirname( __FILE__ ) ) . '" width="96"></div>' );

Expected 0 spaces before closing bracket; 1 found
Open

        $screen->set_help_sidebar( '<div style="width:auto; height:auto; float:right; padding-right:28px; padding-top:15px"><img src="' . plugins_url( 'img/gitium.svg', dirname( __FILE__ ) ) . '" width="96"></div>' );

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p>' . __( 'Gitium requires <code>git</code> command line tool minimum version 1.7 installed on the server and <code>proc_open</code> PHP function enabled.', 'gitium' ) . '</p>';

Expected 0 spaces before closing bracket; 1 found
Open

        printf( '<p>' . __( 'PHP version >= %s', 'gitium' ) . '</p>', GITIUM_MIN_PHP_VER );

Expected 0 spaces before closing bracket; 1 found
Open

        $screen->add_help_tab( array( 'id' => 'configuration', 'title' => __( 'Configuration', 'gitium' ), 'callback' => array( $this, 'configuration_callback' ) ) );

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p>' . __( 'Only this branch will have all of your code modifications.', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        $screen->add_help_tab( array( 'id' => 'commits', 'title' => __( 'Commits', 'gitium' ), 'callback' => array( $this, 'commits_callback' ) ) );

Opening brace should be on a new line
Open

    public function commits_callback() {

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p>' . __( 'When deciding whether to ignore a path, Git normally checks gitignore patterns from multiple sources, with the following order of precedence, from highest to lowest (within one level of precedence, the last matching pattern decides the outcome)', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        $screen->add_help_tab( array( 'id' => 'requirements', 'title' => __( 'Requirements', 'gitium' ), 'callback' => array( $this, 'requirements_callback' ) ) );

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p><strong>' . __( 'How does gitium handle submodules?', 'gitium' ) . '</strong><br />'. __( 'Currently submodules are not supported.', 'gitium' ) . '</p>';

Opening brace should be on a new line
Open

    public function configuration_callback() {

Space after opening parenthesis of function call prohibited
Open

        echo '<p><strong>' . __( 'Configuration step 2', 'gitium' ) . '</strong><br />' . __( 'In this step you must select the <code>branch</code> you want to follow.', 'gitium' ) . '</p>';

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p>' . __( 'Each line from the gitignore file specifies a pattern.', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        $screen->add_help_tab( array( 'id' => 'gitium', 'title' => __( 'Gitium', 'gitium' ), 'callback' => array( $this, 'gitium' ) ) );

Space after opening parenthesis of function call prohibited
Open

        $screen->add_help_tab( array( 'id' => 'gitium', 'title' => __( 'Gitium', 'gitium' ), 'callback' => array( $this, 'gitium' ) ) );

Space after opening parenthesis of function call prohibited
Open

        $screen->add_help_tab( array( 'id' => 'requirements', 'title' => __( 'Requirements', 'gitium' ), 'callback' => array( $this, 'requirements_callback' ) ) );

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p>' . __( 'Ninja code edits from the WordPress editor are also tracked into version control. Gitium is designed for sane development environments.', 'gitium' ) . '</p>';

Expected 0 spaces before closing bracket; 1 found
Open

        echo '<p><strong>' . __( 'How does gitium handle submodules?', 'gitium' ) . '</strong><br />'. __( 'Currently submodules are not supported.', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        echo '<p>' . __( 'You can get this URL from your Git repository and it looks like this:', 'gitium' ) . '</p>';

Opening brace should be on a new line
Open

    public function commits() {

Expected 0 spaces before closing bracket; 1 found
Open

        $screen->add_help_tab( array( 'id' => 'requirements', 'title' => __( 'Requirements', 'gitium' ), 'callback' => array( $this, 'requirements_callback' ) ) );

Space after opening parenthesis of function call prohibited
Open

        $screen->set_help_sidebar( '<div style="width:auto; height:auto; float:right; padding-right:28px; padding-top:15px"><img src="' . plugins_url( 'img/gitium.svg', dirname( __FILE__ ) ) . '" width="96"></div>' );

Space after opening parenthesis of function call prohibited
Open

        echo '<p>' . __( 'Ninja code edits from the WordPress editor are also tracked into version control. Gitium is designed for sane development environments.', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        echo '<p><strong>' . __( 'What happens in case of conflicts?', 'gitium' ) . '</strong><br />'. __( 'The behavior in case of conflicts is to overwrite the changes on the origin repository with the local changes (ie. local modifications take precedence over remote ones).', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        echo '<p>' . __( 'You may be wondering what is the difference between author and committer.', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        echo '<p>' . __( 'When deciding whether to ignore a path, Git normally checks gitignore patterns from multiple sources, with the following order of precedence, from highest to lowest (within one level of precedence, the last matching pattern decides the outcome)', 'gitium' ) . '</p>';

Expected 0 spaces before closing bracket; 1 found
Open

        $screen->add_help_tab( array( 'id' => 'gitium', 'title' => __( 'Gitium', 'gitium' ), 'callback' => array( $this, 'gitium' ) ) );

Opening brace should be on a new line
Open

    public function configuration() {

Space after opening parenthesis of function call prohibited
Open

        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>';

Space after opening parenthesis of function call prohibited
Open

        echo '<p>' . __( 'When you push the button <code>Merge & Push</code>, all code(plugins & themes) will be pushed on the git repository.', 'gitium' ) . '</p>';

Space after opening parenthesis of function call prohibited
Open

        $screen->add_help_tab( array( 'id' => 'status', 'title' => __( 'Status', 'gitium' ), 'callback' => array( $this, 'status_callback' ) ) );

Expected 0 spaces before closing bracket; 1 found
Open

        $screen->add_help_tab( array( 'id' => 'commits', 'title' => __( 'Commits', 'gitium' ), 'callback' => array( $this, 'commits_callback' ) ) );

Opening brace should be on a new line
Open

    public function settings() {

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

    public function commits_callback() {
        echo '<p>' . __( 'You may be wondering what is the difference between author and committer.', 'gitium' ) . '</p>';
        echo '<p>' . __( 'The <code>author</code> is the person who originally wrote the patch, whereas the <code>committer</code> is the person who last applied the patch.', 'gitium' ) . '</p>';
        echo '<p>' . __( 'So, if you send in a patch to a project and one of the core members applies the patch, both of you get credit — you as the author and the core member as the committer.', '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 settings_callback is not named in camelCase.
Open

    public function settings_callback() {
        echo '<p>' . __( 'Each line from the gitignore file specifies a pattern.', 'gitium' ) . '</p>';
        echo '<p>' . __( 'When deciding whether to ignore a path, Git normally checks gitignore patterns from multiple sources, with the following order of precedence, from highest to lowest (within one level of precedence, the last matching pattern decides the outcome)', 'gitium' ) . '</p>';
        echo '<p>' . sprintf( __( 'Read more on %s', 'gitium' ), '<a href="http://git-scm.com/docs/gitignore" target="_blank">git documentation</a>' ) . '</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

There are no issues that match your filters.

Category
Status