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'] ) ) {
- Read upRead up
- Exclude checks
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']) {
- Read upRead up
- Exclude checks
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();
}
}
- Read upRead up
- Exclude checks
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'] ) ) {
- Read upRead up
- Exclude checks
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'] ) ) {
- Read upRead up
- Exclude checks
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']) {
- Read upRead up
- Exclude checks
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']) {
- Read upRead up
- Exclude checks
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']) {
- Read upRead up
- Exclude checks
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();
}
}
- Read upRead up
- Exclude checks
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;
- Read upRead up
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;
File gitium.php
has 269 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Plugin Name: Gitium
* Version: 1.0.6
* Author: Presslabs
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 ) );
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 ) );
- Read upRead up
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']) {
- Read upRead up
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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'];
- Read upRead up
- Exclude checks
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(
- Read upRead up
- Exclude checks
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'];
- Read upRead up
- Exclude checks
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 ) ) {
- Read upRead up
- Exclude checks
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 ) ) {
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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(
- Read upRead up
- Exclude checks
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";
- Read upRead up
- Exclude checks
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']}`";
- Read upRead up
- Exclude checks
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 . '`';
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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.
- Read upRead up
- Exclude checks
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
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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() ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( is_resource( $process ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( ! empty( $theme_versions ) ) {
- Exclude checks
Expected 0 spaces between argument "$result" and closing bracket; 1 found Open
function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
} else if ( isset( $hook_extra['theme'] ) ) {
- Exclude checks
Space found after opening bracket of FOREACH loop Open
foreach ( $all_themes as $theme_name => $theme ) :
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( ! function_exists( 'get_plugins' ) ) {
- Exclude checks
Space found after opening bracket of FOREACH loop Open
foreach ( $all_plugins as $name => $data ) :
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( ! empty( $plugin_versions ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( isset( $hook_extra['type'] ) && ( 'plugin' === $hook_extra['type'] ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
foreach ( $all_themes as $theme_name => $theme ) :
- Exclude checks
Space found before closing bracket of FOREACH loop Open
foreach ( $all_plugins as $name => $data ) :
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( isset( $hook_extra['plugin'] ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( ! empty( $version ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
} else if ( isset( $hook_extra['type'] ) && ( 'theme' === $hook_extra['type'] ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( ! empty( $data['Version'] ) ) {
- Exclude checks
Expected 0 spaces between opening bracket and argument "$res"; 1 found Open
function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
- Exclude checks
Space found before closing bracket of FOREACH loop Open
foreach ( $all_themes as $theme_name => $theme ) :
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
foreach ( $all_plugins as $name => $data ) :
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( empty( $name ) ) {
- Exclude checks
Expected 0 spaces between argument "$msg_prepend" and closing bracket; 1 found Open
function gitium_auto_push( $msg_prepend = '' ) {
- Exclude checks
Space found after opening bracket of FOREACH loop Open
foreach ( $result['source_files'] as $file ) :
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( ! $git_private_key )
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( 'install' === $action ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
switch ( $type ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( version_compare( $GLOBALS['wp_version'], '4.9', '>=' ) )
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( ! $git->can_exec_git() ) { wp_die( 'Cannot exec git' ); }
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( isset( $_GET['deleted'] ) && ( 1 <= (int) $_GET['deleted'] || 'true' == $_GET['deleted'] ) ) {
- Exclude checks
Expected 0 spaces between opening bracket and argument "$hook"; 1 found Open
function gitium_hook_plugin_and_theme_editor_page( $hook )
- Exclude checks
Space found before closing bracket of FOREACH loop Open
foreach ( $result['source_files'] as $file ) :
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( $plugin_data['Name'] ) :
- Exclude checks
Terminating statement must be indented to the same level as the CASE body Open
break;
- Exclude checks
Expected 0 spaces between argument "$plugin" and closing bracket; 1 found Open
function gitium_check_after_activate_modifications( $plugin ) {
- Exclude checks
Expected 0 spaces between argument "$hook" and closing bracket; 1 found Open
function gitium_hook_plugin_and_theme_editor_page( $hook )
- Exclude checks
Expected 0 spaces between opening bracket and argument "$plugin"; 1 found Open
function gitium_check_after_activate_modifications( $plugin ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( isset( $_GET['deleted'] ) && 'true' == $_GET['deleted'] ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( current_user_can( GITIUM_MANAGE_OPTIONS_CAPABILITY ) && $message = get_transient( 'gitium_remote_disconnected' ) ) : ?>
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( 'update' === $action ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( WP_DEBUG ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( ABSPATH == substr( $git_dir, 0, strlen( ABSPATH ) ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
foreach ( $result['source_files'] as $file ) :
- Exclude checks
Expected 0 spaces between opening bracket and argument "$plugin"; 1 found Open
function gitium_check_after_deactivate_modifications( $plugin ) {
- Exclude checks
Expected 0 spaces between opening bracket and argument "$msg_prepend"; 1 found Open
function gitium_auto_push( $msg_prepend = '' ) {
- Exclude checks
Expected 0 spaces between argument "$plugin" and closing bracket; 1 found Open
function gitium_check_after_deactivate_modifications( $plugin ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( '.php' != substr( $file, -4 ) ) { continue; }
- Exclude checks
Terminating statement must be indented to the same level as the CASE body Open
break;
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( isset( $hook_extra['action'] ) ) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
define( 'GITIUM_ADMIN_MENU_ACTION', 'admin_menu' );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
0 => array( 'pipe', 'r' ), // stdin
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
define( 'GITIUM_ADMIN_MENU_ACTION', 'network_admin_menu' );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
define( 'GITIUM_ADMIN_NOTICES_ACTION', 'admin_notices' );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
array(
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
load_plugin_textdomain( 'gitium', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$pipes
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
proc_close( $process );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
1 => array( 'pipe', 'w' ), // stdout
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
delete_transient( 'gitium_git_version' );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
define( 'GITIUM_ADMIN_NOTICES_ACTION', 'network_admin_notices' );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
define( 'GITIUM_MANAGE_OPTIONS_CAPABILITY', 'manage_network_options' );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
fclose( $pipes[0] );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$ssh_wrapper = dirname( __FILE__ ) . '/inc/ssh-git';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
"chmod -f +x $ssh_wrapper",
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
define( 'GITIUM_MANAGE_OPTIONS_CAPABILITY', 'manage_options' );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$process = proc_open(
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ( is_resource( $process ) ) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
delete_transient( 'gitium_menu_bubble' );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
delete_option( 'gitium_keypair' );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$all_themes = wp_get_themes( array( 'allowed' => true ) );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$plugin_versions[ $name ]['msg'] = "`{$data['Name']}`";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$type = null;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$theme_versions[ $theme_name ]['msg'] = '`' . $theme->Name . '`';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ( ! empty( $plugin_versions ) ) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// get all themes from WP
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
endforeach;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// get action if missed above
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'version' => null,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ( ! empty( $data['Version'] ) ) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$type = 'plugin';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
delete_transient( 'gitium_uncommited_changes' );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
delete_transient( 'gitium_versions' );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ( ! empty( $theme_versions ) ) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$all_plugins = get_plugins();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$plugin_versions[ $name ]['version'] .= $data['Version'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
} else if ( isset( $hook_extra['theme'] ) ) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
delete_transient( 'gitium_git_version' );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$type = 'theme';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
delete_transient( 'gitium_is_status_working' );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$theme_versions[ $theme_name ] = array(
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
endforeach;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$new_versions['themes'] = $theme_versions;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$new_versions['plugins'] = $plugin_versions;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$type = 'theme';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
delete_transient( 'gitium_remote_disconnected' );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
delete_option( 'gitium_webhook_key' );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
} else if ( isset( $hook_extra['type'] ) && ( 'theme' === $hook_extra['type'] ) ) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$action = 'updated';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$type = 'plugin';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ( isset( $hook_extra['action'] ) ) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
foreach ( $all_themes as $theme_name => $theme ) :
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return $new_versions;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
foreach ( $all_plugins as $name => $data ) :
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$action = 'installed';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// update/upgrade logic
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
delete_transient( 'gitium_remote_tracking_branch' );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$theme_versions[ $theme_name ]['msg'] .= " version $version";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ( ! function_exists( 'get_plugins' ) ) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$action = 'updated';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$version = $theme->Version;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$plugin_versions[ $name ]['msg'] .= ' version ' . $data['Version'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'msg' => '',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$theme_versions[ $theme_name ]['version'] .= $version;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
require_once ABSPATH . 'wp-admin/includes/plugin.php';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$plugin_versions[ $name ] = array(
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'version' => null,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
set_transient( 'gitium_versions', $new_versions );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$new_versions = [];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// get all plugins from WP
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'msg' => '',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
_gitium_make_ssh_git_file_exe();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'name' => $theme->Name,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'name' => $data['Name'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$action = null;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ( isset( $hook_extra['type'] ) && ( 'plugin' === $hook_extra['type'] ) ) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$action = 'installed';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ( isset( $hook_extra['plugin'] ) ) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ( ! empty( $version ) ) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// install logic
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$theme_data = wp_get_theme( $result['destination_name'] );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
break;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
gitium_check_after_event( $plugin );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
<script type='text/javascript'>
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$git_dir = $result['destination'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$commit = _gitium_commit_changes( $commit_message, $git_dir, false );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
gitium_update_versions();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
gitium_auto_push();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$git_dir = substr( $git_dir, strlen( ABSPATH ) );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
wp_clean_themes_cache();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$filepath = trailingslashit( $result['destination'] ) . $file;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
endif;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
case 'plugin':
- Exclude checks
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
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
gitium_merge_and_push( $commit );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$git->set_key( $git_private_key );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
jQuery(document).on( 'wp-plugin-delete-success', function() {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
</script>
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
</script>
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
case 'theme':
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
});
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
jQuery(document).on( 'wp-theme-delete-success', function() {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ( ABSPATH == substr( $git_dir, 0, strlen( ABSPATH ) ) ) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
<?php endif;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ( '.php' != substr( $file, -4 ) ) { continue; }
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$commit_message = _gitium_format_message( $name,$version,"$action $type" );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$commits = gitium_group_commit_modified_plugins_and_themes( $msg_prepend );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
jQuery.post(ajaxurl, data={'action': 'wp-plugin-delete-success'});
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ( isset( $_GET['deleted'] ) && 'true' == $_GET['deleted'] ) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
global $git;
- Exclude checks
Line exceeds 120 characters; contains 128 characters Open
if ( current_user_can( GITIUM_MANAGE_OPTIONS_CAPABILITY ) && $message = get_transient( 'gitium_remote_disconnected' ) ) : ?>
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
</div>
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$name = $theme_data->get( 'Name' );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ( $plugin_data['Name'] ) :
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
switch ( $type ) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$version = $theme_data->get( 'Version' );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
break;
- Exclude checks
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' ) ) : ?>
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ( 'install' === $action ) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$action = 'updated';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
<script type='text/javascript'>
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$version = '';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ( empty( $name ) ) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ( isset( $_GET['deleted'] ) && ( 1 <= (int) $_GET['deleted'] || 'true' == $_GET['deleted'] ) ) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ( ! $git_private_key )
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
jQuery(document).ready(function() {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
gitium_merge_and_push( $commits );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
});
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
add_filter('wp_die_ajax_handler', 'gitium_check_ajax_success_call', 1);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Could not connect to remote repository.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ( WP_DEBUG ) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
error_log( __FUNCTION__ . ':hook_extra:' . serialize( $hook_extra ) );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
error_log( __FUNCTION__ . ':action:type:' . $action . ':' . $type );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$name = $plugin_data['Name'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return $res;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
global $git;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
});
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
gitium_check_after_event( $plugin, 'deactivation' );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
gitium_auto_push();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
<p>
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
</p>
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$name = $result['destination_name'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
jQuery(document).ready(function() {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return true;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
});
- Exclude checks
Inline control structures are not allowed Open
if ( version_compare( $GLOBALS['wp_version'], '4.9', '>=' ) )
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
<div class="error-nag error">
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
endforeach;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
break;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
list( , $git_private_key ) = gitium_get_keypair();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
jQuery.post(ajaxurl, data={'action': 'wp-theme-delete-success'});
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$action = $hook_extra['action'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$action = 'installed';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ( 'update' === $action ) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
<pre><?php echo esc_html( $message ); ?></pre>
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
foreach ( $result['source_files'] as $file ) :
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$plugin_data = get_plugin_data( $filepath );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$version = $plugin_data['Version'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
// We get info from the first plugin in the package
- Exclude checks
Inline control structures are not allowed Open
if ( ! $git_private_key )
- Exclude checks
Inline control structures are not allowed Open
else
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ( ! $git->can_exec_git() ) { wp_die( 'Cannot exec git' ); }
- Exclude checks
Space after opening parenthesis of function call prohibited Open
if ( is_resource( $process ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
register_activation_hook( __FILE__, '_gitium_make_ssh_git_file_exe' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
define( 'GITIUM_ADMIN_MENU_ACTION', 'admin_menu' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
define( 'GITIUM_ADMIN_NOTICES_ACTION', 'admin_notices' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
add_action( 'plugins_loaded', 'gitium_load_textdomain' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
define( 'GITIUM_MIN_PHP_VER', '5.6' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
define( 'GITIUM_MANAGE_OPTIONS_CAPABILITY', 'manage_network_options' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
define( 'GITIUM_MANAGE_OPTIONS_CAPABILITY', 'manage_network_options' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
load_plugin_textdomain( 'gitium', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
delete_transient( 'gitium_git_version' );
- Exclude checks
Opening brace should be on a new line Open
function gitium_uninstall_hook() {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
define( 'GITIUM_LAST_COMMITS', 20 );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
define( 'GITIUM_LAST_COMMITS', 20 );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
define( 'GITIUM_ADMIN_NOTICES_ACTION', 'network_admin_notices' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
$ssh_wrapper = dirname( __FILE__ ) . '/inc/ssh-git';
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
fclose( $pipes[0] );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
define( 'GITIUM_ADMIN_MENU_ACTION', 'admin_menu' );
- Exclude checks
Opening brace should be on a new line Open
function gitium_deactivation() {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
define( 'GITIUM_MANAGE_OPTIONS_CAPABILITY', 'manage_options' );
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
if ( is_resource( $process ) ) {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
proc_close( $process );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
define( 'GITIUM_MIN_GIT_VER', '1.7' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
load_plugin_textdomain( 'gitium', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
fclose( $pipes[0] );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
define( 'GITIUM_MANAGE_OPTIONS_CAPABILITY', 'manage_options' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
define( 'GITIUM_ADMIN_MENU_ACTION', 'network_admin_menu' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
load_plugin_textdomain( 'gitium', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
add_action( 'plugins_loaded', 'gitium_load_textdomain' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
proc_close( $process );
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
if ( is_multisite() ) {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
register_deactivation_hook( __FILE__, 'gitium_deactivation' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
register_deactivation_hook( __FILE__, 'gitium_deactivation' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
define( 'GITIUM_MIN_GIT_VER', '1.7' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
define( 'GITIUM_ADMIN_NOTICES_ACTION', 'network_admin_notices' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
define( 'GITIUM_ADMIN_NOTICES_ACTION', 'admin_notices' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
load_plugin_textdomain( 'gitium', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( is_resource( $process ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
delete_transient( 'gitium_git_version' );
- Exclude checks
Opening brace should be on a new line Open
function _gitium_make_ssh_git_file_exe() {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
$ssh_wrapper = dirname( __FILE__ ) . '/inc/ssh-git';
- Exclude checks
Space after opening parenthesis of function call prohibited Open
register_activation_hook( __FILE__, '_gitium_make_ssh_git_file_exe' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
define( 'GITIUM_MIN_PHP_VER', '5.6' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
define( 'GITIUM_ADMIN_MENU_ACTION', 'network_admin_menu' );
- Exclude checks
Opening brace should be on a new line Open
function gitium_load_textdomain() {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
load_plugin_textdomain( 'gitium', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
load_plugin_textdomain( 'gitium', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
add_action( 'load-plugins.php', 'gitium_update_versions', 999 );
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
if ( isset( $hook_extra['type'] ) && ( 'plugin' === $hook_extra['type'] ) ) {
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
if ( ! empty( $plugin_versions ) ) {
- Exclude checks
Closing brace indented incorrectly; expected 4 spaces, found 8 Open
}
- Exclude checks
Space after opening parenthesis of function call prohibited Open
if ( isset( $hook_extra['plugin'] ) ) {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
delete_transient( 'gitium_is_status_working' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
if ( ! empty( $version ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( ! empty( $theme_versions ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( ! empty( $data['Version'] ) ) {
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
if ( isset( $hook_extra['action'] ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
delete_transient( 'gitium_uncommited_changes' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
register_uninstall_hook( __FILE__, 'gitium_uninstall_hook' );
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
foreach ( $all_themes as $theme_name => $theme ) :
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
set_transient( 'gitium_versions', $new_versions );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( isset( $hook_extra['type'] ) && ( 'plugin' === $hook_extra['type'] ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
delete_transient( 'gitium_remote_disconnected' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
delete_transient( 'gitium_menu_bubble' );
- Exclude checks
Opening brace should be on a new line Open
function gitium_update_versions() {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
} else if ( isset( $hook_extra['theme'] ) ) {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
delete_transient( 'gitium_git_version' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
if ( ! empty( $plugin_versions ) ) {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
set_transient( 'gitium_versions', $new_versions );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
delete_transient( 'gitium_remote_tracking_branch' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
delete_transient( 'gitium_versions' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
if ( isset( $hook_extra['type'] ) && ( 'plugin' === $hook_extra['type'] ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
delete_option( 'gitium_keypair' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
delete_option( 'gitium_webhook_key' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( ! empty( $version ) ) {
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
if ( ! function_exists( 'get_plugins' ) ) {
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
if ( ! empty( $data['Version'] ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
} else if ( isset( $hook_extra['type'] ) && ( 'theme' === $hook_extra['type'] ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( isset( $hook_extra['plugin'] ) ) {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
if ( isset( $hook_extra['action'] ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
delete_transient( 'gitium_versions' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
$all_themes = wp_get_themes( array( 'allowed' => true ) );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
if ( ! empty( $data['Version'] ) ) {
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
if ( isset( $hook_extra['plugin'] ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
delete_transient( 'gitium_is_status_working' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
$all_themes = wp_get_themes( array( 'allowed' => true ) );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( ! function_exists( 'get_plugins' ) ) {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
delete_transient( 'gitium_uncommited_changes' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
register_uninstall_hook( __FILE__, 'gitium_uninstall_hook' );
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
if ( ! empty( $theme_versions ) ) {
- Exclude checks
Opening brace should be on a new line Open
function gitium_upgrader_post_install( $res, $hook_extra, $result ) {
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
} else if ( isset( $hook_extra['type'] ) && ( 'theme' === $hook_extra['type'] ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
delete_option( 'gitium_webhook_key' );
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
if ( ! empty( $version ) ) {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
if ( ! empty( $theme_versions ) ) {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
if ( ! function_exists( 'get_plugins' ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( ! empty( $plugin_versions ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
delete_transient( 'gitium_git_version' );
- Exclude checks
Usage of ELSE IF is discouraged; use ELSEIF instead Open
} else if ( isset( $hook_extra['theme'] ) ) {
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
foreach ( $all_plugins as $name => $data ) :
- Exclude checks
Space after opening parenthesis of function call prohibited Open
add_action( 'load-plugins.php', 'gitium_update_versions', 999 );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
delete_option( 'gitium_keypair' );
- Exclude checks
Usage of ELSE IF is discouraged; use ELSEIF instead Open
} else if ( isset( $hook_extra['type'] ) && ( 'theme' === $hook_extra['type'] ) ) {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
} else if ( isset( $hook_extra['type'] ) && ( 'theme' === $hook_extra['type'] ) ) {
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
}
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
} else if ( isset( $hook_extra['theme'] ) ) {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
} else if ( isset( $hook_extra['theme'] ) ) {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
delete_transient( 'gitium_remote_tracking_branch' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
delete_transient( 'gitium_remote_disconnected' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
delete_transient( 'gitium_menu_bubble' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
$plugin_data = get_plugin_data( $filepath );
- Exclude checks
No space found after comma in function call Open
$commit_message = _gitium_format_message( $name,$version,"$action $type" );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
$git->set_key( $git_private_key );
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
if ( isset( $_GET['deleted'] ) && ( 1 <= (int) $_GET['deleted'] || 'true' == $_GET['deleted'] ) ) {
- Exclude checks
Opening brace should be on a new line Open
function gitium_wp_plugin_delete_success() {
- Exclude checks
Opening brace should be on a new line Open
function gitium_options_page_check() {
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
if ( 'install' === $action ) {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
error_log( __FUNCTION__ . ':action:type:' . $action . ':' . $type );
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
switch ( $type ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( empty( $name ) ) {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
$commits = gitium_group_commit_modified_plugins_and_themes( $msg_prepend );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
gitium_merge_and_push( $commits );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
gitium_check_after_event( $plugin );
- Exclude checks
Opening brace must be the last content on the line Open
function gitium_check_for_plugin_deletions() { // Handle plugin deletion
- Exclude checks
Space after opening parenthesis of function call prohibited Open
if ( version_compare( $GLOBALS['wp_version'], '4.9', '>=' ) )
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
add_action( 'admin_enqueue_scripts', 'gitium_hook_plugin_and_theme_editor_page' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
add_action( 'admin_notices', 'gitium_remote_disconnected_notice' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
error_log( __FUNCTION__ . ':hook_extra:' . serialize( $hook_extra ) );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
$filepath = trailingslashit( $result['destination'] ) . $file;
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
$filepath = trailingslashit( $result['destination'] ) . $file;
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
gitium_merge_and_push( $commit );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
$git->set_key( $git_private_key );
- Exclude checks
Opening brace should be on a new line Open
function gitium_check_after_activate_modifications( $plugin ) {
- Exclude checks
Opening brace should be on a new line Open
function gitium_check_after_deactivate_modifications( $plugin ) {
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
if ( WP_DEBUG ) {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
gitium_check_after_event( $plugin, 'deactivation' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
$name = $theme_data->get( 'Name' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
$version = $theme_data->get( 'Version' );
- Exclude checks
Closing brace must be on a line by itself Open
if ( ! $git->can_exec_git() ) { wp_die( 'Cannot exec git' ); }
- Exclude checks
Closing brace must be on a line by itself Open
if ( '.php' != substr( $file, -4 ) ) { continue; }
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
if ( $plugin_data['Name'] ) :
- Exclude checks
Space after opening parenthesis of function call prohibited Open
add_action( 'wp_ajax_edit-theme-plugin-file', 'add_filter_for_ajax_save', 1, 0 );
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
if ( current_user_can( GITIUM_MANAGE_OPTIONS_CAPABILITY ) && $message = get_transient( 'gitium_remote_disconnected' ) ) : ?>
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( ABSPATH == substr( $git_dir, 0, strlen( ABSPATH ) ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
$version = $theme_data->get( 'Version' );
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
if ( empty( $name ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
$commit_message = _gitium_format_message( $name,$version,"$action $type" );
- Exclude checks
No space found after comma in function call Open
$commit_message = _gitium_format_message( $name,$version,"$action $type" );
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
if ( 'update' === $action ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( version_compare( $GLOBALS['wp_version'], '4.9', '>=' ) )
- Exclude checks
Newline required after opening brace Open
if ( ! $git->can_exec_git() ) { wp_die( 'Cannot exec git' ); }
- Exclude checks
Space after opening parenthesis of function call prohibited Open
$theme_data = wp_get_theme( $result['destination_name'] );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( ! $git->can_exec_git() ) { wp_die( 'Cannot exec git' ); }
- Exclude checks
Space after opening parenthesis of function call prohibited Open
$commit_message = _gitium_format_message( $name,$version,"$action $type" );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
$commit = _gitium_commit_changes( $commit_message, $git_dir, false );
- Exclude checks
Opening brace should be on a new line Open
function gitium_auto_push( $msg_prepend = '' ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
add_action( 'wp_ajax_wp-plugin-delete-success', 'gitium_auto_push' );
- Exclude checks
Opening brace must be the last content on the line Open
function gitium_check_for_themes_deletions() { // Handle theme deletion
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
if ( ! $git->can_exec_git() ) { wp_die( 'Cannot exec git' ); }
- Exclude checks
Space after opening parenthesis of function call prohibited Open
if ( current_user_can( GITIUM_MANAGE_OPTIONS_CAPABILITY ) && $message = get_transient( 'gitium_remote_disconnected' ) ) : ?>
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
error_log( __FUNCTION__ . ':hook_extra:' . serialize( $hook_extra ) );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( ABSPATH == substr( $git_dir, 0, strlen( ABSPATH ) ) ) {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
$name = $theme_data->get( 'Name' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
add_filter( 'upgrader_post_install', 'gitium_upgrader_post_install', 10, 3 );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
gitium_merge_and_push( $commits );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
$git_dir = substr( $git_dir, strlen( ABSPATH ) );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
add_action( 'deactivated_plugin', 'gitium_check_after_deactivate_modifications', 999 );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
add_action( 'deactivated_plugin', 'gitium_check_after_deactivate_modifications', 999 );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
$theme_data = wp_get_theme( $result['destination_name'] );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( '.php' != substr( $file, -4 ) ) { continue; }
- Exclude checks
Space after opening parenthesis of function call prohibited Open
if ( isset( $_GET['deleted'] ) && 'true' == $_GET['deleted'] ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
add_action( 'wp_ajax_edit-theme-plugin-file', 'add_filter_for_ajax_save', 1, 0 );
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
foreach ( $result['source_files'] as $file ) :
- Exclude checks
Space after opening parenthesis of function call prohibited Open
error_log( __FUNCTION__ . ':hook_extra:' . serialize( $hook_extra ) );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
if ( empty( $name ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
error_log( __FUNCTION__ . ':action:type:' . $action . ':' . $type );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
if ( ABSPATH == substr( $git_dir, 0, strlen( ABSPATH ) ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
$git_dir = substr( $git_dir, strlen( ABSPATH ) );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
gitium_merge_and_push( $commit );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
if ( '.php' != substr( $file, -4 ) ) { continue; }
- Exclude checks
Space after opening parenthesis of function call prohibited Open
add_action( 'load-plugins.php', 'gitium_check_for_plugin_deletions' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
add_action( 'wp_ajax_wp-theme-delete-success', 'gitium_auto_push' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
add_action( 'admin_head', 'gitium_wp_theme_delete_success' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
add_action( 'admin_head', 'gitium_wp_plugin_delete_success' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
add_action( 'admin_head', 'gitium_wp_theme_delete_success' );
- Exclude checks
Expected 1 space after ELSE keyword; newline found Open
else
- Exclude checks
Space after opening parenthesis of function call prohibited Open
add_action( 'load-themes.php', 'gitium_check_for_themes_deletions' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
add_action( 'admin_enqueue_scripts', 'gitium_hook_plugin_and_theme_editor_page' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( current_user_can( GITIUM_MANAGE_OPTIONS_CAPABILITY ) && $message = get_transient( 'gitium_remote_disconnected' ) ) : ?>
- Exclude checks
Opening brace should be on a new line Open
function gitium_remote_disconnected_notice() {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
<pre><?php echo esc_html( $message ); ?></pre>
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
<pre><?php echo esc_html( $message ); ?></pre>
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
error_log( __FUNCTION__ . ':hook_extra:' . serialize( $hook_extra ) );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( isset( $hook_extra['action'] ) ) {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
if ( ABSPATH == substr( $git_dir, 0, strlen( ABSPATH ) ) ) {
- Exclude checks
Newline required after opening brace Open
if ( '.php' != substr( $file, -4 ) ) { continue; }
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
if ( ABSPATH == substr( $git_dir, 0, strlen( ABSPATH ) ) ) {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
$git_dir = substr( $git_dir, strlen( ABSPATH ) );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
$commits = gitium_group_commit_modified_plugins_and_themes( $msg_prepend );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
add_action( 'activated_plugin', 'gitium_check_after_activate_modifications', 999 );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
add_action( 'upgrader_process_complete', 'gitium_auto_push', 11, 0 );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
add_action( 'load-plugins.php', 'gitium_check_for_plugin_deletions' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
gitium_check_after_event( $plugin );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
add_action( 'activated_plugin', 'gitium_check_after_activate_modifications', 999 );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
if ( ! $git->can_exec_git() ) { wp_die( 'Cannot exec git' ); }
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
if ( '.php' != substr( $file, -4 ) ) { continue; }
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( current_user_can( GITIUM_MANAGE_OPTIONS_CAPABILITY ) && $message = get_transient( 'gitium_remote_disconnected' ) ) : ?>
- Exclude checks
Space after opening parenthesis of function call prohibited Open
$plugin_data = get_plugin_data( $filepath );
- Exclude checks
Opening brace should be on a new line Open
function gitium_check_for_themes_deletions() { // Handle theme deletion
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
add_action( 'load-themes.php', 'gitium_check_for_themes_deletions' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
$commit = _gitium_commit_changes( $commit_message, $git_dir, false );
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
if ( version_compare( $GLOBALS['wp_version'], '4.9', '>=' ) )
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( isset( $_GET['deleted'] ) && ( 1 <= (int) $_GET['deleted'] || 'true' == $_GET['deleted'] ) ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( isset( $_GET['deleted'] ) && 'true' == $_GET['deleted'] ) {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
if ( current_user_can( GITIUM_MANAGE_OPTIONS_CAPABILITY ) && $message = get_transient( 'gitium_remote_disconnected' ) ) : ?>
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
add_action( 'admin_notices', 'gitium_remote_disconnected_notice' );
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
if ( ! $git_private_key )
- Exclude checks
Space after opening parenthesis of function call prohibited Open
add_action( 'upgrader_process_complete', 'gitium_auto_push', 11, 0 );
- Exclude checks
Opening brace should be on a new line Open
function gitium_check_for_plugin_deletions() { // Handle plugin deletion
- Exclude checks
Space after opening parenthesis of function call prohibited Open
add_action( 'wp_ajax_wp-plugin-delete-success', 'gitium_auto_push' );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
add_action( 'admin_head', 'gitium_wp_plugin_delete_success' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
$git_dir = substr( $git_dir, strlen( ABSPATH ) );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
add_filter( 'upgrader_post_install', 'gitium_upgrader_post_install', 10, 3 );
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
gitium_check_after_event( $plugin, 'deactivation' );
- Exclude checks
Space after opening parenthesis of function call prohibited Open
if ( isset( $_GET['deleted'] ) && ( 1 <= (int) $_GET['deleted'] || 'true' == $_GET['deleted'] ) ) {
- Exclude checks
Space after opening parenthesis of function call prohibited Open
add_action( 'wp_ajax_wp-theme-delete-success', 'gitium_auto_push' );
- Exclude checks
Opening brace should be on a new line Open
function gitium_wp_theme_delete_success() {
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
if ( isset( $_GET['deleted'] ) && 'true' == $_GET['deleted'] ) {
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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(
- Read upRead up
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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(
- Read upRead up
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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 ) );
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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();
}
}