Skip to content

Commit

Permalink
Merge pull request #325 from Yoast/JRF/yoastcs-sync-with-phpcs
Browse files Browse the repository at this point in the history
YoastCS: sync parameter names with PHPCS
  • Loading branch information
jrfnl authored Nov 4, 2023
2 parents da20b9b + 41bbad2 commit bb16cf2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Yoast/Tests/Files/FileNameUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ final class FileNameUnitTest extends AbstractSniffUnitTest {
/**
* Set CLI values before the file is tested.
*
* @param string $testFile The name of the file being tested.
* @param string $filename The name of the file being tested.
* @param Config $config The config data for the test run.
*
* @return void
*/
public function setCliValues( $testFile, $config ): void {
if ( $testFile === 'no-basepath.inc' ) {
public function setCliValues( $filename, $config ): void {
if ( $filename === 'no-basepath.inc' ) {
return;
}

Expand Down
6 changes: 3 additions & 3 deletions Yoast/Tests/Files/TestDoublesUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ final class TestDoublesUnitTest extends AbstractSniffUnitTest {
/**
* Set CLI values before the file is tested.
*
* @param string $testFile The name of the file being tested.
* @param string $filename The name of the file being tested.
* @param Config $config The config data for the test run.
*
* @return void
*/
public function setCliValues( $testFile, $config ): void {
if ( $testFile === 'no-basepath.inc' ) {
public function setCliValues( $filename, $config ): void {
if ( $filename === 'no-basepath.inc' ) {
return;
}

Expand Down
6 changes: 3 additions & 3 deletions Yoast/Tests/NamingConventions/NamespaceNameUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ final class NamespaceNameUnitTest extends AbstractSniffUnitTest {
/**
* Set CLI values before the file is tested.
*
* @param string $testFile The name of the file being tested.
* @param string $filename The name of the file being tested.
* @param Config $config The config data for the test run.
*
* @return void
*/
public function setCliValues( $testFile, $config ): void {
if ( \strpos( $testFile, 'no-basepath' ) === 0 ) {
public function setCliValues( $filename, $config ): void {
if ( \strpos( $filename, 'no-basepath' ) === 0 ) {
return;
}

Expand Down

0 comments on commit bb16cf2

Please sign in to comment.