Skip to content

Commit

Permalink
Rename sniff based on suggestions during PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoprimo committed Jul 29, 2024
1 parent 4b47564 commit fa399d1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion WordPress-Extra/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
<!-- Flags calls to get_*_meta() and get_metadata*() functions
that include the $key/$meta_key parameter but omit the $single parameter.
https://github.com/WordPress/WordPress-Coding-Standards/issues/2459 -->
<rule ref="WordPress.WP.GetMetaSingle"/>
<rule ref="WordPress.WP.GetMetaFunctionSingleParameter"/>

<!--
#############################################################################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<documentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://phpcsstandards.github.io/PHPCSDevTools/phpcsdocs.xsd"
title="Get Meta Single"
title="Get Meta Function Single Parameter"
>
<standard>
<![CDATA[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*
* @since 3.2.0
*/
final class GetMetaSingleSniff extends AbstractFunctionParameterSniff {
final class GetMetaFunctionSingleParameterSniff extends AbstractFunctionParameterSniff {

/**
* The group name for this group of functions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;

/**
* Unit test class for the GetMetaSingle sniff.
* Unit test class for the GetMetaFunctionSingleParameter sniff.
*
* @since 3.2.0
*
* @covers \WordPressCS\WordPress\Sniffs\WP\GetMetaSingleSniff
* @covers \WordPressCS\WordPress\Sniffs\WP\GetMetaFunctionSingleParameterSniff
*/
final class GetMetaSingleUnitTest extends AbstractSniffUnitTest {
final class GetMetaFunctionSingleParameterUnitTest extends AbstractSniffUnitTest {

/**
* Returns the lines where errors should occur.
Expand Down

0 comments on commit fa399d1

Please sign in to comment.