Skip to content

Commit

Permalink
Merge pull request #1214 from crstauf/phpcs/cleanup
Browse files Browse the repository at this point in the history
PHPCS: Cleanup
  • Loading branch information
barryhughes authored Nov 1, 2024
2 parents a2e0549 + 09cd29c commit 72db3da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
15 changes: 6 additions & 9 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,16 @@
<exclude-pattern>tests/*</exclude-pattern>
</rule>

<rule ref="PEAR.NamingConventions.ValidClassName.Invalid">
<exclude-pattern>classes/WP_CLI/ActionScheduler_WPCLI_Scheduler_command.php</exclude-pattern>
</rule>

<rule ref="PEAR.NamingConventions.ValidClassName">
<exclude-pattern>tests/phpunit/logging/ActionScheduler_wpCommentLogger_Test.php</exclude-pattern>
<exclude-pattern>classes/ActionScheduler_wcSystemStatus.php</exclude-pattern>
<exclude-pattern>classes/data-stores/ActionScheduler_wpCommentLogger.php</exclude-pattern>
<exclude-pattern>classes/data-stores/ActionScheduler_wpPostStore.php</exclude-pattern>
<exclude-pattern>classes/data-stores/ActionScheduler_wpPostStore_PostStatusRegistrar.php</exclude-pattern>
<exclude-pattern>classes/data-stores/ActionScheduler_wpPostStore_PostTypeRegistrar.php</exclude-pattern>
<exclude-pattern>classes/data-stores/ActionScheduler_wpPostStore_TaxonomyRegistrar.php</exclude-pattern>
<exclude-pattern>classes/WP_CLI/ActionScheduler_WPCLI_Scheduler_command.php</exclude-pattern>
<exclude-pattern>tests/phpunit/jobstore/ActionScheduler_wpPostStore_Test.php</exclude-pattern>
<exclude-pattern>classes/data-stores/ActionScheduler_wpCommentLogger.php</exclude-pattern>
<exclude-pattern>classes/data-stores/ActionScheduler_wpPostStore_PostTypeRegistrar.php</exclude-pattern>
<exclude-pattern>classes/data-stores/ActionScheduler_wpPostStore.php</exclude-pattern>
<exclude-pattern>classes/ActionScheduler_wcSystemStatus.php</exclude-pattern>
<exclude-pattern>tests/phpunit/logging/ActionScheduler_wpCommentLogger_Test.php</exclude-pattern>
<exclude-pattern>tests/phpunit/procedural_api/wc_get_scheduled_actions_Test.php</exclude-pattern>
</rule>

Expand Down
1 change: 1 addition & 0 deletions tests/phpunit/deprecated/ActionScheduler_UnitTestCase.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
// phpcs:disable WordPress.DateTime.RestrictedFunctions.timezone_change_date_default_timezone_set
// phpcs:disable Generic.Classes.DuplicateClassName.Found

/**
* Class ActionScheduler_UnitTestCase
Expand Down

0 comments on commit 72db3da

Please sign in to comment.