Skip to content

Commit 05b7c16

Browse files
committed
Lint fixes
1 parent 5c8bd84 commit 05b7c16

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

phpcs.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
<exclude-pattern>*/src/Site(_Meta|_Option)?_Command\.php$</exclude-pattern>
7070
<exclude-pattern>*/src/Term(_Meta)?_Command\.php$</exclude-pattern>
7171
<exclude-pattern>*/src/User(_Application_Password|_Meta|_Session|_Term)?_Command\.php$</exclude-pattern>
72+
<exclude-pattern>*/src/Ability(_Category)?_Command\.php$</exclude-pattern>
7273
</rule>
7374

7475
<!-- Whitelisting to provide backward compatibility to classes possibly extending this class. -->

src/Ability_Category_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function list_( $args, $assoc_args ) {
8585
if ( function_exists( 'wp_get_ability_categories' ) ) {
8686
$categories = wp_get_ability_categories();
8787
} elseif ( function_exists( 'wp_ability_categories' ) ) {
88-
$registry = wp_ability_categories();
88+
$registry = wp_ability_categories();
8989
$categories = $registry->get_all();
9090
} else {
9191
$categories = array();

src/Ability_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function list_( $args, $assoc_args ) {
105105
if ( function_exists( 'wp_get_abilities' ) ) {
106106
$abilities = wp_get_abilities();
107107
} elseif ( function_exists( 'wp_abilities' ) ) {
108-
$registry = wp_abilities();
108+
$registry = wp_abilities();
109109
$abilities = $registry->get_all();
110110
} else {
111111
$abilities = array();

0 commit comments

Comments
 (0)