Skip to content

Commit ccc480c

Browse files
committed
PHPCS: fix up the code base [3] - prefix global variables
Fixes relate to the following rules: * Variables in the global namespace should be prefixed to prevent clashing with plugins/themes/WP core.
1 parent 58dd01e commit ccc480c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

language-command.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
return;
55
}
66

7-
$autoload = dirname( __FILE__ ) . '/vendor/autoload.php';
7+
$wpcli_language_autoloader = dirname( __FILE__ ) . '/vendor/autoload.php';
88

9-
if ( file_exists( $autoload ) ) {
10-
require_once $autoload;
9+
if ( file_exists( $wpcli_language_autoloader ) ) {
10+
require_once $wpcli_language_autoloader;
1111
}
1212

1313
WP_CLI::add_command( 'language core', 'Core_Language_Command', array(

0 commit comments

Comments
 (0)