gitium/inc/class-gitium-help.php
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class Gitium_Help {
- Exclude checks
The class Gitium_Help is not named in CamelCase. Open
Open
class Gitium_Help {
public function __construct( $hook, $help = 'gitium' ) {
add_action( "load-{$hook}", array( $this, $help ), 20 );
}
- Read upRead up
- Exclude checks
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
Open
public function requirements_callback() {
- Exclude checks
Opening brace of a class must be on the line after the definition Open
Open
class Gitium_Help {
- Exclude checks
Method name "Gitium_Help::settings_callback" is not in camel caps format Open
Open
public function settings_callback() {
- Exclude checks
Expected 0 spaces between argument "$help" and closing bracket; 1 found Open
Open
public function __construct( $hook, $help = 'gitium' ) {
- Exclude checks
Expected 0 spaces between opening bracket and argument "$hook"; 1 found Open
Open
public function __construct( $hook, $help = 'gitium' ) {
- Exclude checks
Method name "Gitium_Help::configuration_callback" is not in camel caps format Open
Open
public function configuration_callback() {
- Exclude checks
Method name "Gitium_Help::status_callback" is not in camel caps format Open
Open
public function status_callback() {
- Exclude checks
Method name "Gitium_Help::commits_callback" is not in camel caps format Open
Open
public function commits_callback() {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function __construct( $hook, $help = 'gitium' ) {
- Exclude checks
Line exceeds 120 characters; contains 163 characters Open
Open
$screen->add_help_tab( array( 'id' => 'requirements', 'title' => __( 'Requirements', 'gitium' ), 'callback' => array( $this, 'requirements_callback' ) ) );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
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>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
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>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
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>';
- Exclude checks
Line exceeds 120 characters; contains 165 characters Open
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>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$screen = get_current_screen();
- Exclude checks
Line exceeds 120 characters; contains 239 characters Open
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>';
- Exclude checks
Line exceeds 120 characters; contains 331 characters Open
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>';
- Exclude checks
Line exceeds 120 characters; contains 190 characters Open
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>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Line exceeds 120 characters; contains 136 characters Open
Open
$screen->add_help_tab( array( 'id' => 'gitium', 'title' => __( 'Gitium', 'gitium' ), 'callback' => array( $this, 'gitium' ) ) );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
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>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo '<p>' . __( 'the function proc_open available', 'gitium' ) . '</p>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
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>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$screen->add_help_tab( array( 'id' => 'status', 'title' => __( 'Status', 'gitium' ), 'callback' => array( $this, 'status_callback' ) ) );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$this->general();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$screen = get_current_screen();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$screen->add_help_tab( array( 'id' => 'commits', 'title' => __( 'Commits', 'gitium' ), 'callback' => array( $this, 'commits_callback' ) ) );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$screen->add_help_tab( array( 'id' => 'gitium', 'title' => __( 'Gitium', 'gitium' ), 'callback' => array( $this, 'gitium' ) ) );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$screen->add_help_tab( array( 'id' => 'requirements', 'title' => __( 'Requirements', 'gitium' ), 'callback' => array( $this, 'requirements_callback' ) ) );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function gitium() {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo '<p>' . __( 'Gitium requires:', 'gitium' ) . '</p>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo '<p>' . __( 'You may be wondering what is the difference between author and committer.', 'gitium' ) . '</p>';
- Exclude checks
Line exceeds 120 characters; contains 122 characters Open
Open
echo '<p>' . __( 'You may be wondering what is the difference between author and committer.', 'gitium' ) . '</p>';
- Exclude checks
Line exceeds 120 characters; contains 195 characters Open
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>';
- Exclude checks
Line exceeds 120 characters; contains 293 characters Open
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>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function configuration_callback() {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
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>';
- Exclude checks
Line exceeds 120 characters; contains 218 characters Open
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>';
- Exclude checks
Line exceeds 120 characters; contains 192 characters Open
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>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
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>';
- Exclude checks
Line exceeds 120 characters; contains 300 characters Open
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>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function configuration() {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$this->general();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function commits() {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function commits_callback() {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$this->general();
- Exclude checks
Line exceeds 120 characters; contains 160 characters Open
Open
echo '<p>' . sprintf( __( 'Read more on %s', 'gitium' ), '<a href="http://git-scm.com/docs/gitignore" target="_blank">git documentation</a>' ) . '</p>';
- Exclude checks
Line exceeds 120 characters; contains 130 characters Open
Open
$screen->add_help_tab( array( 'id' => 'faq', 'title' => __( 'F.A.Q.', 'gitium' ), 'callback' => array( $this, 'faq' ) ) );
- Exclude checks
Line exceeds 120 characters; contains 170 characters Open
Open
echo '<p><strong>' . __( 'How does gitium handle submodules?', 'gitium' ) . '</strong><br />'. __( 'Currently submodules are not supported.', 'gitium' ) . '</p>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo '<p>' . __( 'You can get this URL from your Git repository and it looks like this:', 'gitium' ) . '</p>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo '<p>' . __( 'On status page you can see what files are modified, and you can commit the changes to git.', 'gitium' ) . '</p>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$screen = get_current_screen();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
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>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
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>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
printf( '<p>' . __( 'git version >= %s', 'gitium' ) . '</p>', GITIUM_MIN_GIT_VER );
- Exclude checks
Line exceeds 120 characters; contains 252 characters Open
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>';
- Exclude checks
Line exceeds 120 characters; contains 243 characters Open
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>';
- Exclude checks
Line exceeds 120 characters; contains 217 characters Open
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>' );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$screen->add_help_tab( array( 'id' => 'settings', 'title' => __( 'Settings', 'gitium' ), 'callback' => array( $this, 'settings_callback' ) ) );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function status_callback() {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
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>';
- Exclude checks
Line exceeds 120 characters; contains 148 characters Open
Open
$screen->add_help_tab( array( 'id' => 'commits', 'title' => __( 'Commits', 'gitium' ), 'callback' => array( $this, 'commits_callback' ) ) );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
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>';
- Exclude checks
Line exceeds 120 characters; contains 318 characters Open
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>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function faq() {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo '<p>' . __( 'can exec the file inc/ssh-git', 'gitium' ) . '</p>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$screen->add_help_tab( array( 'id' => 'configuration', 'title' => __( 'Configuration', 'gitium' ), 'callback' => array( $this, 'configuration_callback' ) ) );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$screen = get_current_screen();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
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>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$screen->add_help_tab( array( 'id' => 'faq', 'title' => __( 'F.A.Q.', 'gitium' ), 'callback' => array( $this, 'faq' ) ) );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Line exceeds 120 characters; contains 184 characters Open
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>';
- Exclude checks
Line exceeds 120 characters; contains 169 characters Open
Open
echo '<p>' . __( 'Staging and production can follow different branches of the same repository. You can deploy code simply trough git push.', 'gitium' ) . '</p>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$screen = get_current_screen();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function status() {
- Exclude checks
Line exceeds 120 characters; contains 139 characters Open
Open
echo '<p>' . __( 'On status page you can see what files are modified, and you can commit the changes to git.', 'gitium' ) . '</p>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
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>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
add_action( "load-{$hook}", array( $this, $help ), 20 );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
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>' );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo '<p><strong>' . __( 'How does gitium handle submodules?', 'gitium' ) . '</strong><br />'. __( 'Currently submodules are not supported.', 'gitium' ) . '</p>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
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>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo '<p>' . __( 'Only this branch will have all of your code modifications.', 'gitium' ) . '</p>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function requirements_callback() {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
printf( '<p>' . __( 'PHP version >= %s', 'gitium' ) . '</p>', GITIUM_MIN_PHP_VER );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo '<p>' . __( 'github.com -> git@github.com:user/example.git', 'gitium' ) . '</p>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$this->general();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
private function general() {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo '<p>' . __( 'Staging and production can follow different branches of the same repository. You can deploy code simply trough git push.', 'gitium' ) . '</p>';
- Exclude checks
Line exceeds 120 characters; contains 188 characters Open
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>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Line exceeds 120 characters; contains 166 characters Open
Open
$screen->add_help_tab( array( 'id' => 'configuration', 'title' => __( 'Configuration', 'gitium' ), 'callback' => array( $this, 'configuration_callback' ) ) );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo '<p>' . __( 'bitbucket.org -> git@bitbucket.org:user/glowing-happiness.git', 'gitium' ) . '</p>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
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>';
- Exclude checks
Line exceeds 120 characters; contains 151 characters Open
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>';
- Exclude checks
Line exceeds 120 characters; contains 145 characters Open
Open
$screen->add_help_tab( array( 'id' => 'status', 'title' => __( 'Status', 'gitium' ), 'callback' => array( $this, 'status_callback' ) ) );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function settings() {
- Exclude checks
Line exceeds 120 characters; contains 151 characters Open
Open
$screen->add_help_tab( array( 'id' => 'settings', 'title' => __( 'Settings', 'gitium' ), 'callback' => array( $this, 'settings_callback' ) ) );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function settings_callback() {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo '<p>' . __( 'Each line from the gitignore file specifies a pattern.', 'gitium' ) . '</p>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo '<p>' . sprintf( __( 'Read more on %s', 'gitium' ), '<a href="http://git-scm.com/docs/gitignore" target="_blank">git documentation</a>' ) . '</p>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
echo '<p>' . __( 'Gitium requires:', 'gitium' ) . '</p>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
$screen->add_help_tab( array( 'id' => 'configuration', 'title' => __( 'Configuration', 'gitium' ), 'callback' => array( $this, 'configuration_callback' ) ) );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
$screen->add_help_tab( array( 'id' => 'configuration', 'title' => __( 'Configuration', 'gitium' ), 'callback' => array( $this, 'configuration_callback' ) ) );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
echo '<p>' . __( 'can exec the file inc/ssh-git', 'gitium' ) . '</p>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
printf( '<p>' . __( 'git version >= %s', 'gitium' ) . '</p>', GITIUM_MIN_GIT_VER );
- Exclude checks
Opening brace should be on a new line Open
Open
public function status() {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
$screen->add_help_tab( array( 'id' => 'settings', 'title' => __( 'Settings', 'gitium' ), 'callback' => array( $this, 'settings_callback' ) ) );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
echo '<p>' . sprintf( __( 'Read more on %s', 'gitium' ), '<a href="http://git-scm.com/docs/gitignore" target="_blank">git documentation</a>' ) . '</p>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
add_action( "load-{$hook}", array( $this, $help ), 20 );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
$screen->add_help_tab( array( 'id' => 'faq', 'title' => __( 'F.A.Q.', 'gitium' ), 'callback' => array( $this, 'faq' ) ) );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
echo '<p><strong>' . __( 'How does gitium handle submodules?', 'gitium' ) . '</strong><br />'. __( 'Currently submodules are not supported.', 'gitium' ) . '</p>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
printf( '<p>' . __( 'PHP version >= %s', 'gitium' ) . '</p>', GITIUM_MIN_PHP_VER );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
$screen->add_help_tab( array( 'id' => 'commits', 'title' => __( 'Commits', 'gitium' ), 'callback' => array( $this, 'commits_callback' ) ) );
- Exclude checks
Opening brace should be on a new line Open
Open
public function __construct( $hook, $help = 'gitium' ) {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>';
- Exclude checks
Opening brace should be on a new line Open
Open
public function requirements_callback() {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
echo '<p>' . __( 'the function proc_open available', 'gitium' ) . '</p>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
echo '<p>' . __( 'the function proc_open available', 'gitium' ) . '</p>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
echo '<p>' . __( 'github.com -> git@github.com:user/example.git', 'gitium' ) . '</p>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
echo '<p>' . __( 'github.com -> git@github.com:user/example.git', 'gitium' ) . '</p>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
echo '<p>' . __( 'Only this branch will have all of your code modifications.', 'gitium' ) . '</p>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
$screen->add_help_tab( array( 'id' => 'status', 'title' => __( 'Status', 'gitium' ), 'callback' => array( $this, 'status_callback' ) ) );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
$screen->add_help_tab( array( 'id' => 'status', 'title' => __( 'Status', 'gitium' ), 'callback' => array( $this, 'status_callback' ) ) );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
echo '<p>' . __( 'You may be wondering what is the difference between author and committer.', 'gitium' ) . '</p>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
$screen->add_help_tab( array( 'id' => 'settings', 'title' => __( 'Settings', 'gitium' ), 'callback' => array( $this, 'settings_callback' ) ) );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
echo '<p>' . __( 'Each line from the gitignore file specifies a pattern.', 'gitium' ) . '</p>';
- Exclude checks
Class name "Gitium_Help" is not in camel caps format Open
Open
class Gitium_Help {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
echo '<p>' . __( 'Staging and production can follow different branches of the same repository. You can deploy code simply trough git push.', 'gitium' ) . '</p>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
echo '<p>' . __( 'Gitium requires:', 'gitium' ) . '</p>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
printf( '<p>' . __( 'PHP version >= %s', 'gitium' ) . '</p>', GITIUM_MIN_PHP_VER );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
printf( '<p>' . __( 'PHP version >= %s', 'gitium' ) . '</p>', GITIUM_MIN_PHP_VER );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
$screen->add_help_tab( array( 'id' => 'status', 'title' => __( 'Status', 'gitium' ), 'callback' => array( $this, 'status_callback' ) ) );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
echo '<p>' . __( 'On status page you can see what files are modified, and you can commit the changes to git.', 'gitium' ) . '</p>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
$screen->add_help_tab( array( 'id' => 'settings', 'title' => __( 'Settings', 'gitium' ), 'callback' => array( $this, 'settings_callback' ) ) );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
$screen->add_help_tab( array( 'id' => 'faq', 'title' => __( 'F.A.Q.', 'gitium' ), 'callback' => array( $this, 'faq' ) ) );
- Exclude checks
Opening brace should be on a new line Open
Open
public function gitium() {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
printf( '<p>' . __( 'git version >= %s', 'gitium' ) . '</p>', GITIUM_MIN_GIT_VER );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
$screen->add_help_tab( array( 'id' => 'configuration', 'title' => __( 'Configuration', 'gitium' ), 'callback' => array( $this, 'configuration_callback' ) ) );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
echo '<p>' . __( 'bitbucket.org -> git@bitbucket.org:user/glowing-happiness.git', 'gitium' ) . '</p>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
add_action( "load-{$hook}", array( $this, $help ), 20 );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
$screen->add_help_tab( array( 'id' => 'gitium', 'title' => __( 'Gitium', 'gitium' ), 'callback' => array( $this, 'gitium' ) ) );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
$screen->add_help_tab( array( 'id' => 'faq', 'title' => __( 'F.A.Q.', 'gitium' ), 'callback' => array( $this, 'faq' ) ) );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
echo '<p><strong>' . __( 'How does gitium handle submodules?', 'gitium' ) . '</strong><br />'. __( 'Currently submodules are not supported.', 'gitium' ) . '</p>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
echo '<p>' . __( 'On status page you can see what files are modified, and you can commit the changes to git.', 'gitium' ) . '</p>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
echo '<p>' . __( 'can exec the file inc/ssh-git', 'gitium' ) . '</p>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
echo '<p>' . __( 'You can get this URL from your Git repository and it looks like this:', 'gitium' ) . '</p>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>';
- Exclude checks
Opening brace should be on a new line Open
Open
public function status_callback() {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
echo '<p>' . sprintf( __( 'Read more on %s', 'gitium' ), '<a href="http://git-scm.com/docs/gitignore" target="_blank">git documentation</a>' ) . '</p>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>' );
- Exclude checks
Opening brace should be on a new line Open
Open
private function general() {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
$screen->add_help_tab( array( 'id' => 'requirements', 'title' => __( 'Requirements', 'gitium' ), 'callback' => array( $this, 'requirements_callback' ) ) );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
echo '<p>' . __( 'Staging and production can follow different branches of the same repository. You can deploy code simply trough git push.', 'gitium' ) . '</p>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
printf( '<p>' . __( 'git version >= %s', 'gitium' ) . '</p>', GITIUM_MIN_GIT_VER );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
$screen->add_help_tab( array( 'id' => 'faq', 'title' => __( 'F.A.Q.', 'gitium' ), 'callback' => array( $this, 'faq' ) ) );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
echo '<p>' . __( 'bitbucket.org -> git@bitbucket.org:user/glowing-happiness.git', 'gitium' ) . '</p>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
echo '<p>' . sprintf( __( 'Read more on %s', 'gitium' ), '<a href="http://git-scm.com/docs/gitignore" target="_blank">git documentation</a>' ) . '</p>';
- Exclude checks
Opening brace should be on a new line Open
Open
public function faq() {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>';
- Exclude checks
Opening brace should be on a new line Open
Open
public function settings_callback() {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
printf( '<p>' . __( 'git version >= %s', 'gitium' ) . '</p>', GITIUM_MIN_GIT_VER );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
$screen->add_help_tab( array( 'id' => 'commits', 'title' => __( 'Commits', 'gitium' ), 'callback' => array( $this, 'commits_callback' ) ) );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
$screen->add_help_tab( array( 'id' => 'settings', 'title' => __( 'Settings', 'gitium' ), 'callback' => array( $this, 'settings_callback' ) ) );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
echo '<p>' . sprintf( __( 'Read more on %s', 'gitium' ), '<a href="http://git-scm.com/docs/gitignore" target="_blank">git documentation</a>' ) . '</p>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
printf( '<p>' . __( 'PHP version >= %s', 'gitium' ) . '</p>', GITIUM_MIN_PHP_VER );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
$screen->add_help_tab( array( 'id' => 'configuration', 'title' => __( 'Configuration', 'gitium' ), 'callback' => array( $this, 'configuration_callback' ) ) );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
echo '<p>' . __( 'Only this branch will have all of your code modifications.', 'gitium' ) . '</p>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
$screen->add_help_tab( array( 'id' => 'commits', 'title' => __( 'Commits', 'gitium' ), 'callback' => array( $this, 'commits_callback' ) ) );
- Exclude checks
Opening brace should be on a new line Open
Open
public function commits_callback() {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
$screen->add_help_tab( array( 'id' => 'requirements', 'title' => __( 'Requirements', 'gitium' ), 'callback' => array( $this, 'requirements_callback' ) ) );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
echo '<p><strong>' . __( 'How does gitium handle submodules?', 'gitium' ) . '</strong><br />'. __( 'Currently submodules are not supported.', 'gitium' ) . '</p>';
- Exclude checks
Opening brace should be on a new line Open
Open
public function configuration_callback() {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
echo '<p>' . __( 'Each line from the gitignore file specifies a pattern.', 'gitium' ) . '</p>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
$screen->add_help_tab( array( 'id' => 'gitium', 'title' => __( 'Gitium', 'gitium' ), 'callback' => array( $this, 'gitium' ) ) );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
$screen->add_help_tab( array( 'id' => 'gitium', 'title' => __( 'Gitium', 'gitium' ), 'callback' => array( $this, 'gitium' ) ) );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
$screen->add_help_tab( array( 'id' => 'requirements', 'title' => __( 'Requirements', 'gitium' ), 'callback' => array( $this, 'requirements_callback' ) ) );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
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>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
echo '<p><strong>' . __( 'How does gitium handle submodules?', 'gitium' ) . '</strong><br />'. __( 'Currently submodules are not supported.', 'gitium' ) . '</p>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
echo '<p>' . __( 'You can get this URL from your Git repository and it looks like this:', 'gitium' ) . '</p>';
- Exclude checks
Opening brace should be on a new line Open
Open
public function commits() {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
$screen->add_help_tab( array( 'id' => 'requirements', 'title' => __( 'Requirements', 'gitium' ), 'callback' => array( $this, 'requirements_callback' ) ) );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
echo '<p>' . __( 'You may be wondering what is the difference between author and committer.', 'gitium' ) . '</p>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
$screen->add_help_tab( array( 'id' => 'gitium', 'title' => __( 'Gitium', 'gitium' ), 'callback' => array( $this, 'gitium' ) ) );
- Exclude checks
Opening brace should be on a new line Open
Open
public function configuration() {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
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>';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
$screen->add_help_tab( array( 'id' => 'status', 'title' => __( 'Status', 'gitium' ), 'callback' => array( $this, 'status_callback' ) ) );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
$screen->add_help_tab( array( 'id' => 'commits', 'title' => __( 'Commits', 'gitium' ), 'callback' => array( $this, 'commits_callback' ) ) );
- Exclude checks
Opening brace should be on a new line Open
Open
public function settings() {
- Exclude checks
The method status_callback is not named in camelCase. Open
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>';
}
- Read upRead up
- Exclude checks
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
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>';
- Read upRead up
- Exclude checks
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
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>';
}
- Read upRead up
- Exclude checks
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
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>';
- Read upRead up
- Exclude checks
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
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>';
}
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}