PressLabs/gitium

View on GitHub
gitium/gitium.php

Summary

Maintainability
C
1 day
Test Coverage

gitium_check_for_plugin_deletions accesses the super-global variable $_GET.
Open

function gitium_check_for_plugin_deletions() { // Handle plugin deletion
    // $_GET['deleted'] used to resemble if a plugin has been deleted (true)
    // ...meanwhile commit b28dd45f3dad19f0e06c546fdc89ed5b24bacd72 in github.com/WordPress/WordPress...
    // Now it resembles the number of deleted plugins (a number). Thanks WP
    if ( isset( $_GET['deleted'] ) && ( 1 <= (int) $_GET['deleted'] || 'true' == $_GET['deleted'] ) ) {
Severity: Minor
Found in gitium/gitium.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

gitium_hook_plugin_and_theme_editor_page accesses the super-global variable $_GET.
Open

function gitium_hook_plugin_and_theme_editor_page( $hook )
{
    switch ($hook) {
        case 'plugin-editor.php':
            if (isset($_GET['a']) && 'te' == $_GET['a']) {
Severity: Minor
Found in gitium/gitium.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

gitium_check_for_themes_deletions accesses the super-global variable $_GET.
Open

function gitium_check_for_themes_deletions() { // Handle theme deletion
    if ( isset( $_GET['deleted'] ) && 'true' == $_GET['deleted'] ) {
        gitium_auto_push();
    }
}
Severity: Minor
Found in gitium/gitium.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

gitium_check_for_plugin_deletions accesses the super-global variable $_GET.
Open

function gitium_check_for_plugin_deletions() { // Handle plugin deletion
    // $_GET['deleted'] used to resemble if a plugin has been deleted (true)
    // ...meanwhile commit b28dd45f3dad19f0e06c546fdc89ed5b24bacd72 in github.com/WordPress/WordPress...
    // Now it resembles the number of deleted plugins (a number). Thanks WP
    if ( isset( $_GET['deleted'] ) && ( 1 <= (int) $_GET['deleted'] || 'true' == $_GET['deleted'] ) ) {
Severity: Minor
Found in gitium/gitium.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

gitium_check_for_plugin_deletions accesses the super-global variable $_GET.
Open

function gitium_check_for_plugin_deletions() { // Handle plugin deletion
    // $_GET['deleted'] used to resemble if a plugin has been deleted (true)
    // ...meanwhile commit b28dd45f3dad19f0e06c546fdc89ed5b24bacd72 in github.com/WordPress/WordPress...
    // Now it resembles the number of deleted plugins (a number). Thanks WP
    if ( isset( $_GET['deleted'] ) && ( 1 <= (int) $_GET['deleted'] || 'true' == $_GET['deleted'] ) ) {
Severity: Minor
Found in gitium/gitium.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

gitium_hook_plugin_and_theme_editor_page accesses the super-global variable $_GET.
Open

function gitium_hook_plugin_and_theme_editor_page( $hook )
{
    switch ($hook) {
        case 'plugin-editor.php':
            if (isset($_GET['a']) && 'te' == $_GET['a']) {
Severity: Minor
Found in gitium/gitium.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

gitium_hook_plugin_and_theme_editor_page accesses the super-global variable $_GET.
Open

function gitium_hook_plugin_and_theme_editor_page( $hook )
{
    switch ($hook) {
        case 'plugin-editor.php':
            if (isset($_GET['a']) && 'te' == $_GET['a']) {
Severity: Minor
Found in gitium/gitium.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

gitium_hook_plugin_and_theme_editor_page accesses the super-global variable $_GET.
Open

function gitium_hook_plugin_and_theme_editor_page( $hook )
{
    switch ($hook) {
        case 'plugin-editor.php':
            if (isset($_GET['a']) && 'te' == $_GET['a']) {
Severity: Minor
Found in gitium/gitium.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

gitium_check_for_themes_deletions accesses the super-global variable $_GET.
Open

function gitium_check_for_themes_deletions() { // Handle theme deletion
    if ( isset( $_GET['deleted'] ) && 'true' == $_GET['deleted'] ) {
        gitium_auto_push();
    }
}
Severity: Minor
Found in gitium/gitium.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

Function gitium_upgrader_post_install has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
Open

function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
    _gitium_make_ssh_git_file_exe();

    $action = null;
    $type   = null;
Severity: Minor
Found in gitium/gitium.php - About 4 hrs to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Method gitium_upgrader_post_install has 62 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
    _gitium_make_ssh_git_file_exe();

    $action = null;
    $type   = null;
Severity: Major
Found in gitium/gitium.php - About 2 hrs to fix

    File gitium.php has 269 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    /**
     * Plugin Name: Gitium
     * Version: 1.0.6
     * Author: Presslabs
    Severity: Minor
    Found in gitium/gitium.php - About 2 hrs to fix

      Method gitium_update_versions has 39 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function gitium_update_versions() {
          $new_versions = [];
      
          // get all themes from WP
          $all_themes = wp_get_themes( array( 'allowed' => true ) );
      Severity: Minor
      Found in gitium/gitium.php - About 1 hr to fix

        Function gitium_update_versions has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php - About 55 mins to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function gitium_hook_plugin_and_theme_editor_page has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
        Open

        function gitium_hook_plugin_and_theme_editor_page( $hook )
        {
            switch ($hook) {
                case 'plugin-editor.php':
                    if (isset($_GET['a']) && 'te' == $_GET['a']) {
        Severity: Minor
        Found in gitium/gitium.php - About 25 mins to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        The function gitium_upgrader_post_install() has an NPath complexity of 3600. The configured NPath complexity threshold is 200.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        NPathComplexity

        Since: 0.1

        The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

        Example

        class Foo {
            function bar() {
                // lots of complicated code
            }
        }

        Source https://phpmd.org/rules/codesize.html#npathcomplexity

        The function gitium_upgrader_post_install() has a Cyclomatic Complexity of 18. The configured cyclomatic complexity threshold is 10.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CyclomaticComplexity

        Since: 0.1

        Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

        Example

        // Cyclomatic Complexity = 11
        class Foo {
        1   public function example() {
        2       if ($a == $b) {
        3           if ($a1 == $b1) {
                        fiddle();
        4           } elseif ($a2 == $b2) {
                        fiddle();
                    } else {
                        fiddle();
                    }
        5       } elseif ($c == $d) {
        6           while ($c == $d) {
                        fiddle();
                    }
        7        } elseif ($e == $f) {
        8           for ($n = 0; $n < $h; $n++) {
                        fiddle();
                    }
                } else {
                    switch ($z) {
        9               case 1:
                            fiddle();
                            break;
        10              case 2:
                            fiddle();
                            break;
        11              case 3:
                            fiddle();
                            break;
                        default:
                            fiddle();
                            break;
                    }
                }
            }
        }

        Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

        Avoid using undefined variables such as '$plugin_versions' which will lead to PHP notices.
        Open

                    $plugin_versions[ $name ]['msg']     .= ' version ' . $data['Version'];
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        UndefinedVariable

        Since: 2.8.0

        Detects when a variable is used that has not been defined before.

        Example

        class Foo
        {
            private function bar()
            {
                // $message is undefined
                echo $message;
            }
        }

        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

        Avoid using undefined variables such as '$theme_versions' which will lead to PHP notices.
        Open

                $theme_versions[ $theme_name ] = array(
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        UndefinedVariable

        Since: 2.8.0

        Detects when a variable is used that has not been defined before.

        Example

        class Foo
        {
            private function bar()
            {
                // $message is undefined
                echo $message;
            }
        }

        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

        Avoid using undefined variables such as '$plugin_versions' which will lead to PHP notices.
        Open

                    $plugin_versions[ $name ]['version'] .= $data['Version'];
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        UndefinedVariable

        Since: 2.8.0

        Detects when a variable is used that has not been defined before.

        Example

        class Foo
        {
            private function bar()
            {
                // $message is undefined
                echo $message;
            }
        }

        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

        Avoid using undefined variables such as '$plugin_versions' which will lead to PHP notices.
        Open

            if ( ! empty( $plugin_versions ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        UndefinedVariable

        Since: 2.8.0

        Detects when a variable is used that has not been defined before.

        Example

        class Foo
        {
            private function bar()
            {
                // $message is undefined
                echo $message;
            }
        }

        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

        Avoid using undefined variables such as '$theme_versions' which will lead to PHP notices.
        Open

            if ( ! empty( $theme_versions ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        UndefinedVariable

        Since: 2.8.0

        Detects when a variable is used that has not been defined before.

        Example

        class Foo
        {
            private function bar()
            {
                // $message is undefined
                echo $message;
            }
        }

        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

        Avoid using undefined variables such as '$plugin_versions' which will lead to PHP notices.
        Open

                $new_versions['plugins'] = $plugin_versions;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        UndefinedVariable

        Since: 2.8.0

        Detects when a variable is used that has not been defined before.

        Example

        class Foo
        {
            private function bar()
            {
                // $message is undefined
                echo $message;
            }
        }

        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

        Avoid using undefined variables such as '$theme_versions' which will lead to PHP notices.
        Open

                    $theme_versions[ $theme_name ]['version'] .= $version;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        UndefinedVariable

        Since: 2.8.0

        Detects when a variable is used that has not been defined before.

        Example

        class Foo
        {
            private function bar()
            {
                // $message is undefined
                echo $message;
            }
        }

        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

        Avoid using undefined variables such as '$plugin_versions' which will lead to PHP notices.
        Open

                $plugin_versions[ $name ] = array(
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        UndefinedVariable

        Since: 2.8.0

        Detects when a variable is used that has not been defined before.

        Example

        class Foo
        {
            private function bar()
            {
                // $message is undefined
                echo $message;
            }
        }

        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

        Avoid using undefined variables such as '$theme_versions' which will lead to PHP notices.
        Open

                    $theme_versions[ $theme_name ]['msg']     .= " version $version";
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        UndefinedVariable

        Since: 2.8.0

        Detects when a variable is used that has not been defined before.

        Example

        class Foo
        {
            private function bar()
            {
                // $message is undefined
                echo $message;
            }
        }

        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

        Avoid using undefined variables such as '$plugin_versions' which will lead to PHP notices.
        Open

                $plugin_versions[ $name ]['msg'] = "`{$data['Name']}`";
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        UndefinedVariable

        Since: 2.8.0

        Detects when a variable is used that has not been defined before.

        Example

        class Foo
        {
            private function bar()
            {
                // $message is undefined
                echo $message;
            }
        }

        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

        Avoid using undefined variables such as '$theme_versions' which will lead to PHP notices.
        Open

                $theme_versions[ $theme_name ]['msg'] = '`' . $theme->Name . '`';
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        UndefinedVariable

        Since: 2.8.0

        Detects when a variable is used that has not been defined before.

        Example

        class Foo
        {
            private function bar()
            {
                // $message is undefined
                echo $message;
            }
        }

        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

        Avoid using undefined variables such as '$theme_versions' which will lead to PHP notices.
        Open

                $new_versions['themes'] = $theme_versions;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        UndefinedVariable

        Since: 2.8.0

        Detects when a variable is used that has not been defined before.

        Example

        class Foo
        {
            private function bar()
            {
                // $message is undefined
                echo $message;
            }
        }

        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

        Avoid assigning values to variables in if clauses and the like (line '365', column '63').
        Open

        function gitium_remote_disconnected_notice() {
            if ( current_user_can( GITIUM_MANAGE_OPTIONS_CAPABILITY ) && $message = get_transient( 'gitium_remote_disconnected' ) ) : ?>
                <div class="error-nag error">
                    <p>
                        Could not connect to remote repository.
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        IfStatementAssignment

        Since: 2.7.0

        Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

        Example

        class Foo
        {
            public function bar($flag)
            {
                if ($foo = 'bar') { // possible typo
                    // ...
                }
                if ($baz = 0) { // always false
                    // ...
                }
            }
        }

        Source http://phpmd.org/rules/cleancode.html#ifstatementassignment

        A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 28 and the first side effect is on line 42.
        Open

        <?php
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        The parameter $hook_extra is not named in camelCase.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseParameterName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name parameters.

        Example

        class ClassName {
            public function doSomething($user_name) {
            }
        }

        Source

        The parameter $msg_prepend is not named in camelCase.
        Open

        function gitium_auto_push( $msg_prepend = '' ) {
            global $git;
            list( , $git_private_key ) = gitium_get_keypair();
            if ( ! $git_private_key )
                return;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseParameterName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name parameters.

        Example

        class ClassName {
            public function doSomething($user_name) {
            }
        }

        Source

        Expected 0 spaces before closing bracket; 1 found
        Open

        if ( is_multisite() ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( is_resource( $process ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( ! empty( $theme_versions ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            } else if ( isset( $hook_extra['theme'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space found after opening bracket of FOREACH loop
        Open

            foreach ( $all_themes as $theme_name => $theme ) :
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( ! function_exists( 'get_plugins' ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space found after opening bracket of FOREACH loop
        Open

            foreach ( $all_plugins as $name => $data ) :
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( ! empty( $plugin_versions ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( isset( $hook_extra['type'] ) && ( 'plugin' === $hook_extra['type'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            foreach ( $all_themes as $theme_name => $theme ) :
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space found before closing bracket of FOREACH loop
        Open

            foreach ( $all_plugins as $name => $data ) :
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( isset( $hook_extra['plugin'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

                if ( ! empty( $version ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            } else if ( isset( $hook_extra['type'] ) && ( 'theme' === $hook_extra['type'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

                if ( ! empty( $data['Version'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space found before closing bracket of FOREACH loop
        Open

            foreach ( $all_themes as $theme_name => $theme ) :
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            foreach ( $all_plugins as $name => $data ) :
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( empty( $name ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

        function gitium_auto_push( $msg_prepend = '' ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space found after opening bracket of FOREACH loop
        Open

                    foreach ( $result['source_files'] as $file ) :
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( ! $git_private_key )
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

                if ( 'install' === $action ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            switch ( $type ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

        if ( version_compare( $GLOBALS['wp_version'], '4.9', '>=' ) )
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( ! $git->can_exec_git() ) { wp_die( 'Cannot exec git' ); }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( isset( $_GET['deleted'] ) && ( 1 <= (int) $_GET['deleted'] || 'true' == $_GET['deleted'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

        function gitium_hook_plugin_and_theme_editor_page( $hook )
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space found before closing bracket of FOREACH loop
        Open

                    foreach ( $result['source_files'] as $file ) :
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

                        if ( $plugin_data['Name'] ) :
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Terminating statement must be indented to the same level as the CASE body
        Open

                break;
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

        function gitium_check_after_activate_modifications( $plugin ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

        function gitium_hook_plugin_and_theme_editor_page( $hook )
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

        function gitium_check_after_activate_modifications( $plugin ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( isset( $_GET['deleted'] ) && 'true' == $_GET['deleted'] ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( current_user_can( GITIUM_MANAGE_OPTIONS_CAPABILITY ) && $message = get_transient( 'gitium_remote_disconnected' ) ) : ?>
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

                if ( 'update' === $action ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( WP_DEBUG ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( ABSPATH == substr( $git_dir, 0, strlen( ABSPATH ) ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

                    foreach ( $result['source_files'] as $file ) :
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

        function gitium_check_after_deactivate_modifications( $plugin ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

        function gitium_auto_push( $msg_prepend = '' ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

        function gitium_check_after_deactivate_modifications( $plugin ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

                        if ( '.php' != substr( $file, -4 ) ) { continue; }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Terminating statement must be indented to the same level as the CASE body
        Open

                break;
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( isset( $hook_extra['action'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            define( 'GITIUM_ADMIN_MENU_ACTION', 'admin_menu' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    0 => array( 'pipe', 'r' ),  // stdin
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            define( 'GITIUM_ADMIN_MENU_ACTION', 'network_admin_menu' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            define( 'GITIUM_ADMIN_NOTICES_ACTION', 'admin_notices' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                array(
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            load_plugin_textdomain( 'gitium', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                $pipes
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                proc_close( $process );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    1 => array( 'pipe', 'w' ),  // stdout
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            delete_transient( 'gitium_git_version' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            define( 'GITIUM_ADMIN_NOTICES_ACTION', 'network_admin_notices' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            define( 'GITIUM_MANAGE_OPTIONS_CAPABILITY', 'manage_network_options' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                fclose( $pipes[0] );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            $ssh_wrapper = dirname( __FILE__ ) . '/inc/ssh-git';
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                "chmod -f +x $ssh_wrapper",
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                ),
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            define( 'GITIUM_MANAGE_OPTIONS_CAPABILITY', 'manage_options' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            $process = proc_open(
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            if ( is_resource( $process ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            delete_transient( 'gitium_menu_bubble' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            delete_option( 'gitium_keypair' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                $plugin_versions[ $name ]['msg'] = "`{$data['Name']}`";
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                $theme_versions[ $theme_name ]['msg'] = '`' . $theme->Name . '`';
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            if ( ! empty( $plugin_versions ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            // get all themes from WP
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            endforeach;
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            // get action if missed above
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    'version' => null,
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                if ( ! empty( $data['Version'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                $type   = 'plugin';
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            delete_transient( 'gitium_uncommited_changes' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            delete_transient( 'gitium_versions' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            if ( ! empty( $theme_versions ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            $all_plugins = get_plugins();
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    $plugin_versions[ $name ]['version'] .= $data['Version'];
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            } else if ( isset( $hook_extra['theme'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            delete_transient( 'gitium_git_version' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                $type   = 'theme';
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            delete_transient( 'gitium_is_status_working' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                $theme_versions[ $theme_name ] = array(
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            endforeach;
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                $new_versions['themes'] = $theme_versions;
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                $new_versions['plugins'] = $plugin_versions;
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                $type   = 'theme';
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            delete_transient( 'gitium_remote_disconnected' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            delete_option( 'gitium_webhook_key' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            } else if ( isset( $hook_extra['type'] ) && ( 'theme' === $hook_extra['type'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                $action = 'updated';
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                $type   = 'plugin';
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            if ( isset( $hook_extra['action'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            foreach ( $all_themes as $theme_name => $theme ) :
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            return $new_versions;
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            foreach ( $all_plugins as $name => $data ) :
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                $action = 'installed';
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            // update/upgrade logic
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            delete_transient( 'gitium_remote_tracking_branch' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    $theme_versions[ $theme_name ]['msg']     .= " version $version";
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            if ( ! function_exists( 'get_plugins' ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                $action = 'updated';
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                $version = $theme->Version;
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    $plugin_versions[ $name ]['msg']     .= ' version ' . $data['Version'];
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    'msg'     => '',
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    $theme_versions[ $theme_name ]['version'] .= $version;
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                require_once ABSPATH . 'wp-admin/includes/plugin.php';
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                $plugin_versions[ $name ] = array(
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    'version' => null,
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            set_transient( 'gitium_versions', $new_versions );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            $new_versions = [];
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            // get all plugins from WP
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    'msg'     => '',
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            _gitium_make_ssh_git_file_exe();
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    'name'    => $theme->Name,
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    'name'    => $data['Name'],
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            $action = null;
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            if ( isset( $hook_extra['type'] ) && ( 'plugin' === $hook_extra['type'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                $action = 'installed';
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            if ( isset( $hook_extra['plugin'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                if ( ! empty( $version ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            // install logic
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    $theme_data = wp_get_theme( $result['destination_name'] );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                break;
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            gitium_check_after_event( $plugin );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            <script type='text/javascript'>
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            $git_dir = $result['destination'];
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            $commit = _gitium_commit_changes( $commit_message, $git_dir, false );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            gitium_update_versions();
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                gitium_auto_push();
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                $git_dir = substr( $git_dir, strlen( ABSPATH ) );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    wp_clean_themes_cache();
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                        $filepath    = trailingslashit( $result['destination'] ) . $file;
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                        endif;
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                case 'plugin':
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                        // every .php file is a possible plugin so we check if it's a plugin
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            gitium_merge_and_push( $commit );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            $git->set_key( $git_private_key );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                            jQuery(document).on( 'wp-plugin-delete-success', function() {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            </script>
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            </script>
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                case 'theme':
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    });
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                            jQuery(document).on( 'wp-theme-delete-success', function() {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            if ( ABSPATH == substr( $git_dir, 0, strlen( ABSPATH ) ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            <?php endif;
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                        if ( '.php' != substr( $file, -4 ) ) { continue; }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            $commit_message = _gitium_format_message( $name,$version,"$action $type" );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            $commits = gitium_group_commit_modified_plugins_and_themes( $msg_prepend );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                                    jQuery.post(ajaxurl, data={'action': 'wp-plugin-delete-success'});
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            if ( isset( $_GET['deleted'] ) && 'true' == $_GET['deleted'] ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            global $git;
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Line exceeds 120 characters; contains 128 characters
        Open

            if ( current_user_can( GITIUM_MANAGE_OPTIONS_CAPABILITY ) && $message = get_transient( 'gitium_remote_disconnected' ) ) : ?>
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                </div>
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    $name       = $theme_data->get( 'Name' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                        if ( $plugin_data['Name'] ) :
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            switch ( $type ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    $version    = $theme_data->get( 'Version' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                            break;
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            if ( current_user_can( GITIUM_MANAGE_OPTIONS_CAPABILITY ) && $message = get_transient( 'gitium_remote_disconnected' ) ) : ?>
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                if ( 'install' === $action ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    $action = 'updated';
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            <script type='text/javascript'>
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            $version = '';
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            if ( empty( $name ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            if ( isset( $_GET['deleted'] ) && ( 1 <= (int) $_GET['deleted'] || 'true' == $_GET['deleted'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            if ( ! $git_private_key )
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    jQuery(document).ready(function() {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            gitium_merge_and_push( $commits );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    });
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            add_filter('wp_die_ajax_handler', 'gitium_check_ajax_success_call', 1);
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                        Could not connect to remote repository.
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            if ( WP_DEBUG ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                error_log( __FUNCTION__ . ':hook_extra:' . serialize( $hook_extra ) );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                error_log( __FUNCTION__ . ':action:type:' . $action . ':' . $type );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                            $name    = $plugin_data['Name'];
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            return $res;
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            global $git;
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                            });
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            gitium_check_after_event( $plugin, 'deactivation' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                gitium_auto_push();
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    <p>
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    </p>
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                $name = $result['destination_name'];
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                return;
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    jQuery(document).ready(function() {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            return true;
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                            });
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Inline control structures are not allowed
        Open

        if ( version_compare( $GLOBALS['wp_version'], '4.9', '>=' ) )
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                <div class="error-nag error">
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    endforeach;
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                break;
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            list( , $git_private_key ) = gitium_get_keypair();
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                                    jQuery.post(ajaxurl, data={'action': 'wp-theme-delete-success'});
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                $action = $hook_extra['action'];
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    $action = 'installed';
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                if ( 'update' === $action ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                        <pre><?php echo esc_html( $message ); ?></pre>
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                    foreach ( $result['source_files'] as $file ) :
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                        $plugin_data = get_plugin_data( $filepath );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                            $version = $plugin_data['Version'];
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

                            // We get info from the first plugin in the package
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Inline control structures are not allowed
        Open

            if ( ! $git_private_key )
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Inline control structures are not allowed
        Open

        else
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

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

            if ( ! $git->can_exec_git() ) { wp_die( 'Cannot exec git' ); }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            if ( is_resource( $process ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

        register_activation_hook( __FILE__, '_gitium_make_ssh_git_file_exe' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            define( 'GITIUM_ADMIN_MENU_ACTION', 'admin_menu' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            define( 'GITIUM_ADMIN_NOTICES_ACTION', 'admin_notices' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

        add_action( 'plugins_loaded', 'gitium_load_textdomain' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

        define( 'GITIUM_MIN_PHP_VER', '5.6' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            define( 'GITIUM_MANAGE_OPTIONS_CAPABILITY', 'manage_network_options' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            define( 'GITIUM_MANAGE_OPTIONS_CAPABILITY', 'manage_network_options' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            load_plugin_textdomain( 'gitium', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            delete_transient( 'gitium_git_version' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Opening brace should be on a new line
        Open

        function gitium_uninstall_hook() {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

        define( 'GITIUM_LAST_COMMITS', 20 );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

        define( 'GITIUM_LAST_COMMITS', 20 );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            define( 'GITIUM_ADMIN_NOTICES_ACTION', 'network_admin_notices' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            $ssh_wrapper = dirname( __FILE__ ) . '/inc/ssh-git';
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

                fclose( $pipes[0] );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            define( 'GITIUM_ADMIN_MENU_ACTION', 'admin_menu' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Opening brace should be on a new line
        Open

        function gitium_deactivation() {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            define( 'GITIUM_MANAGE_OPTIONS_CAPABILITY', 'manage_options' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

            if ( is_resource( $process ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

                proc_close( $process );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

        define( 'GITIUM_MIN_GIT_VER', '1.7' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            load_plugin_textdomain( 'gitium', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

                fclose( $pipes[0] );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            define( 'GITIUM_MANAGE_OPTIONS_CAPABILITY', 'manage_options' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            define( 'GITIUM_ADMIN_MENU_ACTION', 'network_admin_menu' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            load_plugin_textdomain( 'gitium', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

        add_action( 'plugins_loaded', 'gitium_load_textdomain' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

                proc_close( $process );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

        if ( is_multisite() ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

        register_deactivation_hook( __FILE__, 'gitium_deactivation' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

        register_deactivation_hook( __FILE__, 'gitium_deactivation' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

        define( 'GITIUM_MIN_GIT_VER', '1.7' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            define( 'GITIUM_ADMIN_NOTICES_ACTION', 'network_admin_notices' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            define( 'GITIUM_ADMIN_NOTICES_ACTION', 'admin_notices' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            load_plugin_textdomain( 'gitium', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( is_resource( $process ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            delete_transient( 'gitium_git_version' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Opening brace should be on a new line
        Open

        function _gitium_make_ssh_git_file_exe() {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            $ssh_wrapper = dirname( __FILE__ ) . '/inc/ssh-git';
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

        register_activation_hook( __FILE__, '_gitium_make_ssh_git_file_exe' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

        define( 'GITIUM_MIN_PHP_VER', '5.6' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            define( 'GITIUM_ADMIN_MENU_ACTION', 'network_admin_menu' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Opening brace should be on a new line
        Open

        function gitium_load_textdomain() {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            load_plugin_textdomain( 'gitium', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            load_plugin_textdomain( 'gitium', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

        add_action( 'load-plugins.php', 'gitium_update_versions', 999 );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

            if ( isset( $hook_extra['type'] ) && ( 'plugin' === $hook_extra['type'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

            if ( ! empty( $plugin_versions ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Closing brace indented incorrectly; expected 4 spaces, found 8
        Open

                }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            if ( isset( $hook_extra['plugin'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            delete_transient( 'gitium_is_status_working' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

                if ( ! empty( $version ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( ! empty( $theme_versions ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

                if ( ! empty( $data['Version'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

            if ( isset( $hook_extra['action'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            delete_transient( 'gitium_uncommited_changes' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

        register_uninstall_hook( __FILE__, 'gitium_uninstall_hook' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

            foreach ( $all_themes as $theme_name => $theme ) :
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            set_transient( 'gitium_versions', $new_versions );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( isset( $hook_extra['type'] ) && ( 'plugin' === $hook_extra['type'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            delete_transient( 'gitium_remote_disconnected' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            delete_transient( 'gitium_menu_bubble' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Opening brace should be on a new line
        Open

        function gitium_update_versions() {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            } else if ( isset( $hook_extra['theme'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            delete_transient( 'gitium_git_version' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            if ( ! empty( $plugin_versions ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            set_transient( 'gitium_versions', $new_versions );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            delete_transient( 'gitium_remote_tracking_branch' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            delete_transient( 'gitium_versions' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            if ( isset( $hook_extra['type'] ) && ( 'plugin' === $hook_extra['type'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            delete_option( 'gitium_keypair' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            delete_option( 'gitium_webhook_key' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

                if ( ! empty( $version ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

            if ( ! function_exists( 'get_plugins' ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

                if ( ! empty( $data['Version'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            } else if ( isset( $hook_extra['type'] ) && ( 'theme' === $hook_extra['type'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( isset( $hook_extra['plugin'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            if ( isset( $hook_extra['action'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            delete_transient( 'gitium_versions' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

                if ( ! empty( $data['Version'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

            if ( isset( $hook_extra['plugin'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            delete_transient( 'gitium_is_status_working' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( ! function_exists( 'get_plugins' ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            delete_transient( 'gitium_uncommited_changes' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

        register_uninstall_hook( __FILE__, 'gitium_uninstall_hook' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

            if ( ! empty( $theme_versions ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Opening brace should be on a new line
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

            } else if ( isset( $hook_extra['type'] ) && ( 'theme' === $hook_extra['type'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            delete_option( 'gitium_webhook_key' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

                if ( ! empty( $version ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            if ( ! empty( $theme_versions ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            if ( ! function_exists( 'get_plugins' ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( ! empty( $plugin_versions ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            delete_transient( 'gitium_git_version' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Usage of ELSE IF is discouraged; use ELSEIF instead
        Open

            } else if ( isset( $hook_extra['theme'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

            foreach ( $all_plugins as $name => $data ) :
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

        add_action( 'load-plugins.php', 'gitium_update_versions', 999 );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            delete_option( 'gitium_keypair' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Usage of ELSE IF is discouraged; use ELSEIF instead
        Open

            } else if ( isset( $hook_extra['type'] ) && ( 'theme' === $hook_extra['type'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            } else if ( isset( $hook_extra['type'] ) && ( 'theme' === $hook_extra['type'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Line indented incorrectly; expected 4 spaces, found 8
        Open

                }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

            } else if ( isset( $hook_extra['theme'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            } else if ( isset( $hook_extra['theme'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            delete_transient( 'gitium_remote_tracking_branch' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            delete_transient( 'gitium_remote_disconnected' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            delete_transient( 'gitium_menu_bubble' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

                        $plugin_data = get_plugin_data( $filepath );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        No space found after comma in function call
        Open

            $commit_message = _gitium_format_message( $name,$version,"$action $type" );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            $git->set_key( $git_private_key );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

            if ( isset( $_GET['deleted'] ) && ( 1 <= (int) $_GET['deleted'] || 'true' == $_GET['deleted'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Opening brace should be on a new line
        Open

        function gitium_wp_plugin_delete_success() {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Opening brace should be on a new line
        Open

        function gitium_options_page_check() {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

                if ( 'install' === $action ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

                error_log( __FUNCTION__ . ':action:type:' . $action . ':' . $type );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

            switch ( $type ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( empty( $name ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            $commits = gitium_group_commit_modified_plugins_and_themes( $msg_prepend );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            gitium_merge_and_push( $commits );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            gitium_check_after_event( $plugin );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Opening brace must be the last content on the line
        Open

        function gitium_check_for_plugin_deletions() { // Handle plugin deletion
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

        if ( version_compare( $GLOBALS['wp_version'], '4.9', '>=' ) )
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            add_action( 'admin_enqueue_scripts', 'gitium_hook_plugin_and_theme_editor_page' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

        add_action( 'admin_notices', 'gitium_remote_disconnected_notice' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

                error_log( __FUNCTION__ . ':hook_extra:' . serialize( $hook_extra ) );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

                        $filepath    = trailingslashit( $result['destination'] ) . $file;
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

                        $filepath    = trailingslashit( $result['destination'] ) . $file;
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            gitium_merge_and_push( $commit );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            $git->set_key( $git_private_key );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Opening brace should be on a new line
        Open

        function gitium_check_after_activate_modifications( $plugin ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Opening brace should be on a new line
        Open

        function gitium_check_after_deactivate_modifications( $plugin ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

            if ( WP_DEBUG ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            gitium_check_after_event( $plugin, 'deactivation' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

                    $name       = $theme_data->get( 'Name' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

                    $version    = $theme_data->get( 'Version' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Closing brace must be on a line by itself
        Open

            if ( ! $git->can_exec_git() ) { wp_die( 'Cannot exec git' ); }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Closing brace must be on a line by itself
        Open

                        if ( '.php' != substr( $file, -4 ) ) { continue; }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

                        if ( $plugin_data['Name'] ) :
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            add_action( 'wp_ajax_edit-theme-plugin-file', 'add_filter_for_ajax_save', 1, 0 );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

            if ( current_user_can( GITIUM_MANAGE_OPTIONS_CAPABILITY ) && $message = get_transient( 'gitium_remote_disconnected' ) ) : ?>
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( ABSPATH == substr( $git_dir, 0, strlen( ABSPATH ) ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

                    $version    = $theme_data->get( 'Version' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

            if ( empty( $name ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            $commit_message = _gitium_format_message( $name,$version,"$action $type" );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        No space found after comma in function call
        Open

            $commit_message = _gitium_format_message( $name,$version,"$action $type" );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

                if ( 'update' === $action ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

        if ( version_compare( $GLOBALS['wp_version'], '4.9', '>=' ) )
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Newline required after opening brace
        Open

            if ( ! $git->can_exec_git() ) { wp_die( 'Cannot exec git' ); }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

                    $theme_data = wp_get_theme( $result['destination_name'] );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( ! $git->can_exec_git() ) { wp_die( 'Cannot exec git' ); }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            $commit_message = _gitium_format_message( $name,$version,"$action $type" );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            $commit = _gitium_commit_changes( $commit_message, $git_dir, false );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Opening brace should be on a new line
        Open

        function gitium_auto_push( $msg_prepend = '' ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

        add_action( 'wp_ajax_wp-plugin-delete-success', 'gitium_auto_push' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Opening brace must be the last content on the line
        Open

        function gitium_check_for_themes_deletions() { // Handle theme deletion
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

            if ( ! $git->can_exec_git() ) { wp_die( 'Cannot exec git' ); }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            if ( current_user_can( GITIUM_MANAGE_OPTIONS_CAPABILITY ) && $message = get_transient( 'gitium_remote_disconnected' ) ) : ?>
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

                error_log( __FUNCTION__ . ':hook_extra:' . serialize( $hook_extra ) );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( ABSPATH == substr( $git_dir, 0, strlen( ABSPATH ) ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

                    $name       = $theme_data->get( 'Name' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

        add_filter( 'upgrader_post_install', 'gitium_upgrader_post_install', 10, 3 );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            gitium_merge_and_push( $commits );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

                $git_dir = substr( $git_dir, strlen( ABSPATH ) );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

        add_action( 'deactivated_plugin', 'gitium_check_after_deactivate_modifications', 999 );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

        add_action( 'deactivated_plugin', 'gitium_check_after_deactivate_modifications', 999 );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

                    $theme_data = wp_get_theme( $result['destination_name'] );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

                        if ( '.php' != substr( $file, -4 ) ) { continue; }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            if ( isset( $_GET['deleted'] ) && 'true' == $_GET['deleted'] ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            add_action( 'wp_ajax_edit-theme-plugin-file', 'add_filter_for_ajax_save', 1, 0 );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

                    foreach ( $result['source_files'] as $file ) :
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

                error_log( __FUNCTION__ . ':hook_extra:' . serialize( $hook_extra ) );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            if ( empty( $name ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

                error_log( __FUNCTION__ . ':action:type:' . $action . ':' . $type );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            if ( ABSPATH == substr( $git_dir, 0, strlen( ABSPATH ) ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

                $git_dir = substr( $git_dir, strlen( ABSPATH ) );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            gitium_merge_and_push( $commit );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

                        if ( '.php' != substr( $file, -4 ) ) { continue; }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

        add_action( 'load-plugins.php', 'gitium_check_for_plugin_deletions' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

        add_action( 'wp_ajax_wp-theme-delete-success', 'gitium_auto_push' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

        add_action( 'admin_head', 'gitium_wp_theme_delete_success' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

        add_action( 'admin_head', 'gitium_wp_plugin_delete_success' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

        add_action( 'admin_head', 'gitium_wp_theme_delete_success' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 1 space after ELSE keyword; newline found
        Open

        else
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

        add_action( 'load-themes.php', 'gitium_check_for_themes_deletions' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            add_action( 'admin_enqueue_scripts', 'gitium_hook_plugin_and_theme_editor_page' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( current_user_can( GITIUM_MANAGE_OPTIONS_CAPABILITY ) && $message = get_transient( 'gitium_remote_disconnected' ) ) : ?>
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Opening brace should be on a new line
        Open

        function gitium_remote_disconnected_notice() {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

                        <pre><?php echo esc_html( $message ); ?></pre>
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

                        <pre><?php echo esc_html( $message ); ?></pre>
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

                error_log( __FUNCTION__ . ':hook_extra:' . serialize( $hook_extra ) );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( isset( $hook_extra['action'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            if ( ABSPATH == substr( $git_dir, 0, strlen( ABSPATH ) ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Newline required after opening brace
        Open

                        if ( '.php' != substr( $file, -4 ) ) { continue; }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

            if ( ABSPATH == substr( $git_dir, 0, strlen( ABSPATH ) ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

                $git_dir = substr( $git_dir, strlen( ABSPATH ) );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            $commits = gitium_group_commit_modified_plugins_and_themes( $msg_prepend );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

        add_action( 'activated_plugin', 'gitium_check_after_activate_modifications', 999 );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

        add_action( 'upgrader_process_complete', 'gitium_auto_push', 11, 0 );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

        add_action( 'load-plugins.php', 'gitium_check_for_plugin_deletions' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            gitium_check_after_event( $plugin );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

        add_action( 'activated_plugin', 'gitium_check_after_activate_modifications', 999 );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            if ( ! $git->can_exec_git() ) { wp_die( 'Cannot exec git' ); }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

                        if ( '.php' != substr( $file, -4 ) ) { continue; }
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( current_user_can( GITIUM_MANAGE_OPTIONS_CAPABILITY ) && $message = get_transient( 'gitium_remote_disconnected' ) ) : ?>
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

                        $plugin_data = get_plugin_data( $filepath );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Opening brace should be on a new line
        Open

        function gitium_check_for_themes_deletions() { // Handle theme deletion
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

        add_action( 'load-themes.php', 'gitium_check_for_themes_deletions' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            $commit = _gitium_commit_changes( $commit_message, $git_dir, false );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

        if ( version_compare( $GLOBALS['wp_version'], '4.9', '>=' ) )
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( isset( $_GET['deleted'] ) && ( 1 <= (int) $_GET['deleted'] || 'true' == $_GET['deleted'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            if ( isset( $_GET['deleted'] ) && 'true' == $_GET['deleted'] ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            if ( current_user_can( GITIUM_MANAGE_OPTIONS_CAPABILITY ) && $message = get_transient( 'gitium_remote_disconnected' ) ) : ?>
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

        add_action( 'admin_notices', 'gitium_remote_disconnected_notice' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

            if ( ! $git_private_key )
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

        add_action( 'upgrader_process_complete', 'gitium_auto_push', 11, 0 );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Opening brace should be on a new line
        Open

        function gitium_check_for_plugin_deletions() { // Handle plugin deletion
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

        add_action( 'wp_ajax_wp-plugin-delete-success', 'gitium_auto_push' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

        add_action( 'admin_head', 'gitium_wp_plugin_delete_success' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

                $git_dir = substr( $git_dir, strlen( ABSPATH ) );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

        add_filter( 'upgrader_post_install', 'gitium_upgrader_post_install', 10, 3 );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces before closing bracket; 1 found
        Open

            gitium_check_after_event( $plugin, 'deactivation' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

            if ( isset( $_GET['deleted'] ) && ( 1 <= (int) $_GET['deleted'] || 'true' == $_GET['deleted'] ) ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Space after opening parenthesis of function call prohibited
        Open

        add_action( 'wp_ajax_wp-theme-delete-success', 'gitium_auto_push' );
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Opening brace should be on a new line
        Open

        function gitium_wp_theme_delete_success() {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        Expected 0 spaces after opening bracket; 1 found
        Open

            if ( isset( $_GET['deleted'] ) && 'true' == $_GET['deleted'] ) {
        Severity: Minor
        Found in gitium/gitium.php by phpcodesniffer

        The variable $all_plugins is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $hook_extra is not named in camelCase.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $hook_extra is not named in camelCase.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $git_dir is not named in camelCase.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $theme_data is not named in camelCase.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $commit_message is not named in camelCase.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $git_dir is not named in camelCase.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $new_versions is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $hook_extra is not named in camelCase.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $git_private_key is not named in camelCase.
        Open

        function gitium_auto_push( $msg_prepend = '' ) {
            global $git;
            list( , $git_private_key ) = gitium_get_keypair();
            if ( ! $git_private_key )
                return;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $git_private_key is not named in camelCase.
        Open

        function gitium_auto_push( $msg_prepend = '' ) {
            global $git;
            list( , $git_private_key ) = gitium_get_keypair();
            if ( ! $git_private_key )
                return;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $all_themes is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $theme_versions is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $theme_name is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $theme_data is not named in camelCase.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $commit_message is not named in camelCase.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $plugin_versions is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $plugin_data is not named in camelCase.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $plugin_versions is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $hook_extra is not named in camelCase.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $theme_versions is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $hook_extra is not named in camelCase.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $hook_extra is not named in camelCase.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $theme_data is not named in camelCase.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $new_versions is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $hook_extra is not named in camelCase.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $git_dir is not named in camelCase.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $theme_name is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $git_private_key is not named in camelCase.
        Open

        function gitium_auto_push( $msg_prepend = '' ) {
            global $git;
            list( , $git_private_key ) = gitium_get_keypair();
            if ( ! $git_private_key )
                return;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $new_versions is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $new_versions is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $hook_extra is not named in camelCase.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $theme_name is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $plugin_versions is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $new_versions is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $plugin_data is not named in camelCase.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $ssh_wrapper is not named in camelCase.
        Open

        function _gitium_make_ssh_git_file_exe() {
            $ssh_wrapper = dirname( __FILE__ ) . '/inc/ssh-git';
            $process = proc_open(
                "chmod -f +x $ssh_wrapper",
                array(
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $all_themes is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $theme_versions is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $theme_versions is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $plugin_data is not named in camelCase.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $plugin_versions is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $hook_extra is not named in camelCase.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $git_dir is not named in camelCase.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $theme_name is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $theme_name is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $all_plugins is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $git_dir is not named in camelCase.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $msg_prepend is not named in camelCase.
        Open

        function gitium_auto_push( $msg_prepend = '' ) {
            global $git;
            list( , $git_private_key ) = gitium_get_keypair();
            if ( ! $git_private_key )
                return;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $ssh_wrapper is not named in camelCase.
        Open

        function _gitium_make_ssh_git_file_exe() {
            $ssh_wrapper = dirname( __FILE__ ) . '/inc/ssh-git';
            $process = proc_open(
                "chmod -f +x $ssh_wrapper",
                array(
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $theme_versions is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $theme_versions is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $plugin_versions is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $plugin_versions is not named in camelCase.
        Open

        function gitium_update_versions() {
            $new_versions = [];
        
            // get all themes from WP
            $all_themes = wp_get_themes( array( 'allowed' => true ) );
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        The variable $plugin_data is not named in camelCase.
        Open

        function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
            _gitium_make_ssh_git_file_exe();
        
            $action = null;
            $type   = null;
        Severity: Minor
        Found in gitium/gitium.php by phpmd

        CamelCaseVariableName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name variables.

        Example

        class ClassName {
            public function doSomething() {
                $data_module = new DataModule();
            }
        }

        Source

        There are no issues that match your filters.

        Category
        Status