Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CS: minor cleanup #349

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Yoast/Sniffs/Commenting/FileCommentSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use PHP_CodeSniffer\Files\File;
use PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\FileCommentSniff as Squiz_FileCommentSniff;
use PHP_CodeSniffer\Util\Tokens;
use PHPCSUtils\Tokens\Collections;

/**
* Namespaced files containing an OO structure do not need a file docblock in YoastCS.
Expand Down
4 changes: 3 additions & 1 deletion Yoast/Tests/Utils/PSR4PathsTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ final class PSR4PathsTraitTest extends NonSniffTestCase {
* Clean up the trait after each test.
*
* @after
*
* @return void
*/
protected function clean_up() {
$this->psr4_paths = [];
Expand Down Expand Up @@ -114,7 +116,7 @@ public function test_get_psr4_info_explicit( $psr4_paths, $file_path, $expected
* @see test_get_psr4_info() For the array format.
* @see test_get_psr4_info_explicit() For the array format.
*
* @return array<string, array<string, string|array<string, string|bool>>>
* @return array<string, array<string, string|array<string, string|bool|array<string, string>>>>
*/
public static function data_is_get_psr4_info() {
$default_psr4_paths = self::data_validate_psr4_paths()['multiple prefixes, variation of paths']['psr4_paths'];
Expand Down