-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changelog + rename + message change for #2750
- Loading branch information
Showing
5 changed files
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...HP/DisallowRequestSuperGlobalStandard.xml → ...HP/DisallowRequestSuperglobalStandard.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<documentation title="$_REQUEST Super Global"> | ||
<documentation title="$_REQUEST Superglobal"> | ||
<standard> | ||
<![CDATA[ | ||
$_REQUEST should never be used due to the ambiguity created to identify where the data is coming from. Use $_POST, $_GET or $_COOKIE instead | ||
$_REQUEST should never be used due to the ambiguity created as to where the data is coming from. Use $_POST, $_GET, or $_COOKIE instead. | ||
]]> | ||
</standard> | ||
</documentation> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
/** | ||
* Ensures the $_REQUEST super global is not used | ||
* Ensures the $_REQUEST superglobal is not used | ||
* | ||
* @author Jeantwan Teuma <[email protected]> | ||
* @copyright 2006-2019 Squiz Pty Ltd (ABN 77 084 670 600) | ||
|
@@ -12,7 +12,7 @@ | |
use PHP_CodeSniffer\Files\File; | ||
use PHP_CodeSniffer\Sniffs\Sniff; | ||
|
||
class DisallowRequestSuperGlobalSniff implements Sniff | ||
class DisallowRequestSuperglobalSniff implements Sniff | ||
{ | ||
|
||
|
||
|
@@ -45,7 +45,7 @@ public function process(File $phpcsFile, $stackPtr) | |
return; | ||
} | ||
|
||
$error = 'The $_REQUEST super global should not be used. Use $_GET, $_POST or $_COOKIE instead'; | ||
$error = 'The $_REQUEST superglobal should not be used; use $_GET, $_POST, or $_COOKIE instead'; | ||
$phpcsFile->addError($error, $stackPtr, 'Found'); | ||
|
||
}//end process() | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
/** | ||
* Unit test class for the DisallowRequestSuperGlobal sniff. | ||
* Unit test class for the DisallowRequestSuperglobal sniff. | ||
* | ||
* @author Jeantwan Teuma <[email protected]> | ||
* @copyright 2006-2019 Squiz Pty Ltd (ABN 77 084 670 600) | ||
|
@@ -10,7 +10,7 @@ | |
|
||
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; | ||
|
||
class DisallowRequestSuperGlobalUnitTest extends AbstractSniffUnitTest | ||
class DisallowRequestSuperglobalUnitTest extends AbstractSniffUnitTest | ||
{ | ||
|
||
|
||
|