Showing 4,852 of 4,852 total issues
Avoid using undefined variables such as '$plugin_versions' which will lead to PHP notices. Open
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 '$commits' which will lead to PHP notices. Open
Open
return $commits;
- 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 '$subject' which will lead to PHP notices. Open
Open
<div style="float:left; width:auto; height:auto;"><strong><?php echo esc_html( $subject ); ?></strong><br />
- 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 '$author_name' which will lead to PHP notices. Open
Open
<span title="<?php echo esc_attr( $author_email ); ?>"><?php echo esc_html( $author_name ) . ' ' . sprintf( __( 'authored %s ago', 'gitium' ), human_time_diff( strtotime( $author_date ) ) ); ?></span><?php echo $committer; ?></div>
- 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
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
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 using undefined variables such as '$committer_date' which will lead to PHP notices. Open
Open
$committer = "<span title='$committer_email'> -> $committer_name " . sprintf( __( 'committed %s ago', 'gitium' ), human_time_diff( strtotime( $committer_date ) ) ) . '</span>';
- 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 '$committer_name' which will lead to PHP notices. Open
Open
$committer = "<span title='$committer_email'> -> $committer_name " . sprintf( __( 'committed %s ago', 'gitium' ), human_time_diff( strtotime( $committer_date ) ) ) . '</span>';
- 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 '$author_email' which will lead to PHP notices. Open
Open
<div style="float:left; width:auto; height:auto; padding-left:2px; padding-right:5px; padding-top:2px; margin-right:5px; border-radius:2px"><?php echo get_avatar( $author_email, 32 ); ?></div>
- 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 '$committer_name' which will lead to PHP notices. Open
Open
if ( isset( $committer_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
Method merge_with_accept_mine
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function merge_with_accept_mine(...$commits) {
do_action( 'gitium_before_merge_with_accept_mine' );
if ( 1 == count($commits) && is_array( $commits[0] ) ) {
$commits = $commits[0];
Method setup_step_2
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function setup_step_2() {
$git = $this->git; ?>
<div class="wrap">
<h2><?php _e( 'Configuration step 2', 'gitium' ); ?></h2>
<p><?php _e( 'If you need help to set this up, please click on the "Help" button from the top right corner of this screen.' ); ?></p>
Method show_git_changes_table_rows
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function show_git_changes_table_rows( $changes = '' ) {
?>
<script type="application/javascript">
function add_path_and_submit( elem ) {
var container = document.getElementById( 'form_status' );
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class Git_Wrapper {
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class Gitium_Menu_Bubble extends Gitium_Menu {
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class Gitium_Admin {
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class Gitium_Help {
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class Gitium_Menu {
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class Gitium_Submenu_Commits extends Gitium_Menu {
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class Gitium_Submenu_Configure extends Gitium_Menu {
- Exclude checks