Skip to content

Commit

Permalink
Files/IncludingNonPHPFile: fix class docblocks
Browse files Browse the repository at this point in the history
The existing text was unrelated to the actual sniff. Probably legacy copy/paste.
  • Loading branch information
jrfnl committed Sep 24, 2020
1 parent 06fe610 commit 1b4fccb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 2 additions & 4 deletions WordPressVIPMinimum/Sniffs/Files/IncludingNonPHPFileSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
use PHP_CodeSniffer\Util\Tokens;

/**
* WordPressVIPMinimum_Sniffs_Files_IncludingNonPHPFileSniff.
* Ensure that non-PHP files are included via `file_get_contents()` instead of using `include/require[_once]`.
*
* Checks that __DIR__, dirname( __FILE__ ) or plugin_dir_path( __FILE__ )
* is used when including or requiring files.
* This prevents potential PHP code embedded in those files from being automatically executed.
*
* @package VIPCS\WordPressVIPMinimum
*/
Expand Down Expand Up @@ -52,7 +51,6 @@ public function register() {
return Tokens::$includeTokens;
}


/**
* Processes this test, when one of its tokens is encountered.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
namespace WordPressVIPMinimum\Tests\Files;

use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;

/**
* Unit test class for the IncludingFile sniff.
* Unit test class for the IncludingNonPHPFile sniff.
*
* @package VIPCS\WordPressVIPMinimum
*
Expand Down

0 comments on commit 1b4fccb

Please sign in to comment.