Skip to content

Commit b56bd2b

Browse files
committed
Prefix global variables
1 parent 9842fd6 commit b56bd2b

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎phpcs.xml.dist‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
<properties>
4747
<property name="prefixes" type="array" extend="true">
4848
<element value="WP_CLI"/><!-- Namespaces. -->
49+
<element value="wpcli"/><!-- Global variables and such. -->
4950
</property>
5051
</properties>
5152
</rule>

‎shell-command.php‎

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

7-
$autoload = dirname( __FILE__ ) . '/vendor/autoload.php';
8-
if ( file_exists( $autoload ) ) {
9-
require_once $autoload;
7+
$wpcli_shell_autoloader = dirname( __FILE__ ) . '/vendor/autoload.php';
8+
if ( file_exists( $wpcli_shell_autoloader ) ) {
9+
require_once $wpcli_shell_autoloader;
1010
}
1111

1212
WP_CLI::add_command( 'shell', 'Shell_Command' );

0 commit comments

Comments
 (0)