Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions gitium/inc/class-git-wrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ function is_dot_git_dir( $dir ) {
$git_config = realpath( $realpath . '/config' );
$git_index = realpath( $realpath . '/index' );
if ( ! empty( $realpath ) && is_dir( $realpath ) && file_exists( $git_config ) && file_exists( $git_index ) ) {
return True;
return true;
}
return False;
return false;
}

function cleanup() {
Expand All @@ -262,12 +262,12 @@ function cleanup() {
if ( WP_DEBUG ) {
error_log( "Gitium cleanup successfull. Removed '$dot_git_dir'." );
}
return True;
return true;
}
if ( WP_DEBUG ) {
error_log( "Gitium cleanup failed. '$dot_git_dir' is not a .git dir." );
}
return False;
return false;
}

function add_remote_url( $url ) {
Expand Down
4 changes: 2 additions & 2 deletions tests/test-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function test_gitium_get_remote_tracking_branch() {
}

function test_gitium_get_remote_tracking_branch_true() {
$this->assertEquals( '', _gitium_get_remote_tracking_branch(True) );
$this->assertEquals( '', _gitium_get_remote_tracking_branch(true) );
}

function test_gitium_update_remote_tracking_branch() {
Expand All @@ -48,7 +48,7 @@ function test_gitium_is_status_working() {
}

function test_gitium_is_status_working_true() {
$this->assertFalse( _gitium_is_status_working(True) );
$this->assertFalse( _gitium_is_status_working(true) );
}

function test_gitium_update_is_status_working() {
Expand Down
4 changes: 2 additions & 2 deletions tests/test-gitium.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function test_gitium_uninstall_hook() {
'gitium_webhook_key'
);
foreach ( $deleted_options as $option ) {
add_option( $option, True );
add_option( $option, true );
}

$deleted_transients = array(
Expand All @@ -76,7 +76,7 @@ function test_gitium_uninstall_hook() {
'gitium_is_status_working',
);
foreach ( $deleted_transients as $transient ) {
set_transient( $transient, True );
set_transient( $transient, true );
}

gitium_uninstall_hook();
Expand Down