From 6b64b1debbf48ca8307ebebbee2eb120c4a2ca20 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Wed, 13 Jul 2016 06:08:39 +0200 Subject: [PATCH] Documentation fixes. * Added generic file docblock to sniff files which didn't have one. * Added/replaced generic file docblock for all unit test files. * Use `@link` rather than `@see` for links to external documentation about a sniff in the file/class docblock. * Consistent placement of the `@link` tag if available and pointing to WPCS relevant info. * Removed `PHP version 5` notes. No longer relevant. * Fixed a few class description referring to the wrong rule/sniff. Docs still need a lot of love to get up to scratch properly. --- WordPress/Sniff.php | 2 -- .../Arrays/ArrayAssignmentRestrictionsSniff.php | 8 ++++++++ WordPress/Sniffs/Arrays/ArrayDeclarationSniff.php | 2 -- .../Arrays/ArrayKeySpacingRestrictionsSniff.php | 10 +++++++++- WordPress/Sniffs/CSRF/NonceVerificationSniff.php | 7 +++---- WordPress/Sniffs/Classes/ValidClassNameSniff.php | 2 -- WordPress/Sniffs/Files/FileNameSniff.php | 5 +---- .../Functions/FunctionRestrictionsSniff.php | 8 ++++++++ .../NamingConventions/ValidFunctionNameSniff.php | 4 +--- .../Sniffs/PHP/DiscouragedFunctionsSniff.php | 2 -- WordPress/Sniffs/PHP/StrictComparisonsSniff.php | 10 ++++++++-- WordPress/Sniffs/PHP/StrictInArraySniff.php | 11 ++++++++++- WordPress/Sniffs/PHP/YodaConditionsSniff.php | 4 +--- WordPress/Sniffs/VIP/AdminBarRemovalSniff.php | 8 ++++++++ WordPress/Sniffs/VIP/CronIntervalSniff.php | 8 ++++++++ WordPress/Sniffs/VIP/DirectDatabaseQuerySniff.php | 11 +++++++++-- .../Sniffs/VIP/FileSystemWritesDisallowSniff.php | 13 ++++++++++--- WordPress/Sniffs/VIP/OrderByRandSniff.php | 11 ++++++++++- WordPress/Sniffs/VIP/PluginMenuSlugSniff.php | 10 +++++++++- WordPress/Sniffs/VIP/PostsPerPageSniff.php | 8 ++++++++ WordPress/Sniffs/VIP/RestrictedFunctionsSniff.php | 8 ++++++++ WordPress/Sniffs/VIP/RestrictedVariablesSniff.php | 8 ++++++++ .../Sniffs/VIP/SessionFunctionsUsageSniff.php | 11 ++++++++++- .../Sniffs/VIP/SessionVariableUsageSniff.php | 11 ++++++++++- WordPress/Sniffs/VIP/SlowDBQuerySniff.php | 8 ++++++++ .../Sniffs/VIP/SuperGlobalInputUsageSniff.php | 11 ++++++++++- WordPress/Sniffs/VIP/TimezoneChangeSniff.php | 11 ++++++++++- .../Sniffs/VIP/ValidatedSanitizedInputSniff.php | 10 ++++++++-- .../Sniffs/Variables/GlobalVariablesSniff.php | 8 ++++++++ .../Variables/VariableRestrictionsSniff.php | 8 ++++++++ WordPress/Sniffs/WP/EnqueuedResourcesSniff.php | 10 +++++++++- WordPress/Sniffs/WP/I18nSniff.php | 10 +++++++++- WordPress/Sniffs/WP/PreparedSQLSniff.php | 8 ++++++++ .../WhiteSpace/CastStructureSpacingSniff.php | 2 -- .../WhiteSpace/ControlStructureSpacingSniff.php | 2 -- .../Sniffs/WhiteSpace/OperatorSpacingSniff.php | 4 +--- WordPress/Sniffs/XSS/EscapeOutputSniff.php | 5 ++--- .../ArrayAssignmentRestrictionsUnitTest.php | 8 ++++++++ .../Tests/Arrays/ArrayDeclarationUnitTest.php | 14 ++++---------- .../ArrayKeySpacingRestrictionsUnitTest.php | 8 ++++++++ .../Tests/CSRF/NonceVerificationUnitTest.php | 10 +++++++--- .../Tests/Classes/ValidClassNameUnitTest.php | 14 ++++---------- WordPress/Tests/Files/FileNameUnitTest.php | 14 ++++---------- .../ValidFunctionNameUnitTest.php | 14 ++++---------- .../ValidVariableNameUnitTest.php | 15 ++++----------- .../Tests/PHP/DiscouragedFunctionsUnitTest.php | 14 ++++---------- WordPress/Tests/PHP/StrictComparisonsUnitTest.php | 12 ++++-------- WordPress/Tests/PHP/StrictInArrayUnitTest.php | 12 ++++-------- WordPress/Tests/PHP/YodaConditionsUnitTest.php | 12 ++++-------- WordPress/Tests/VIP/AdminBarRemovalUnitTest.php | 8 ++++++++ WordPress/Tests/VIP/CronIntervalUnitTest.php | 8 ++++++++ .../Tests/VIP/DirectDatabaseQueryUnitTest.php | 11 ++++++++--- .../VIP/FileSystemWritesDisallowUnitTest.php | 11 ++++++++--- WordPress/Tests/VIP/OrderByRandUnitTest.php | 8 ++++++++ WordPress/Tests/VIP/PluginMenuSlugUnitTest.php | 8 ++++++++ WordPress/Tests/VIP/PostsPerPageUnitTest.php | 8 ++++++++ .../Tests/VIP/RestrictedFunctionsUnitTest.php | 8 ++++++++ .../Tests/VIP/RestrictedVariablesUnitTest.php | 8 ++++++++ .../Tests/VIP/SessionFunctionsUsageUnitTest.php | 11 ++++++++--- .../Tests/VIP/SessionVariableUsageUnitTest.php | 11 ++++++++--- WordPress/Tests/VIP/SlowDBQueryUnitTest.php | 8 ++++++++ .../Tests/VIP/SuperGlobalInputUsageUnitTest.php | 11 ++++++++--- WordPress/Tests/VIP/TimezoneChangeUnitTest.php | 11 ++++++++--- .../Tests/VIP/ValidatedSanitizedInputUnitTest.php | 11 ++++++++--- .../Tests/Variables/GlobalVariablesUnitTest.php | 8 ++++++++ .../Variables/VariableRestrictionsUnitTest.php | 8 ++++++++ WordPress/Tests/WP/EnqueuedResourcesUnitTest.php | 10 ++++++++-- WordPress/Tests/WP/I18nUnitTest.php | 10 ++++++++-- WordPress/Tests/WP/PreparedSQLUnitTest.php | 7 ++++--- .../WhiteSpace/CastStructureSpacingUnitTest.php | 12 ++++-------- .../ControlStructureSpacingUnitTest.php | 14 ++++---------- .../Tests/WhiteSpace/OperatorSpacingUnitTest.php | 14 ++++---------- WordPress/Tests/XSS/EscapeOutputUnitTest.php | 14 ++++---------- 73 files changed, 459 insertions(+), 205 deletions(-) diff --git a/WordPress/Sniff.php b/WordPress/Sniff.php index f0ff14a49b..a61440cbb6 100644 --- a/WordPress/Sniff.php +++ b/WordPress/Sniff.php @@ -2,8 +2,6 @@ /** * Represents a PHP_CodeSniffer sniff for sniffing WordPress coding standards. * - * PHP version 5 - * * @category PHP * @package PHP_CodeSniffer */ diff --git a/WordPress/Sniffs/Arrays/ArrayAssignmentRestrictionsSniff.php b/WordPress/Sniffs/Arrays/ArrayAssignmentRestrictionsSniff.php index d3358437ce..8505110adb 100644 --- a/WordPress/Sniffs/Arrays/ArrayAssignmentRestrictionsSniff.php +++ b/WordPress/Sniffs/Arrays/ArrayAssignmentRestrictionsSniff.php @@ -1,4 +1,12 @@ diff --git a/WordPress/Sniffs/Arrays/ArrayKeySpacingRestrictionsSniff.php b/WordPress/Sniffs/Arrays/ArrayKeySpacingRestrictionsSniff.php index bb7742a87c..1950547ed6 100644 --- a/WordPress/Sniffs/Arrays/ArrayKeySpacingRestrictionsSniff.php +++ b/WordPress/Sniffs/Arrays/ArrayKeySpacingRestrictionsSniff.php @@ -1,8 +1,16 @@ - * @link https://developer.wordpress.org/plugins/security/nonces/ Nonces on Plugin Developer Handbook */ class WordPress_Sniffs_CSRF_NonceVerificationSniff extends WordPress_Sniff { diff --git a/WordPress/Sniffs/Classes/ValidClassNameSniff.php b/WordPress/Sniffs/Classes/ValidClassNameSniff.php index 35e513d8aa..c5c2bd31f2 100644 --- a/WordPress/Sniffs/Classes/ValidClassNameSniff.php +++ b/WordPress/Sniffs/Classes/ValidClassNameSniff.php @@ -2,8 +2,6 @@ /** * Modified Squiz_Sniffs_Classes_ValidClassNameSniff. * - * PHP version 5 - * * @category PHP * @package PHP_CodeSniffer * @author Greg Sherwood diff --git a/WordPress/Sniffs/Files/FileNameSniff.php b/WordPress/Sniffs/Files/FileNameSniff.php index eb15d3843d..4e24b72b8a 100644 --- a/WordPress/Sniffs/Files/FileNameSniff.php +++ b/WordPress/Sniffs/Files/FileNameSniff.php @@ -2,12 +2,9 @@ /** * WordPress Coding Standard. * - * PHP version 5 - * * @category PHP * @package PHP_CodeSniffer - * @author John Godley - * @link http://codex.wordpress.org/WordPress_Coding_Standards + * @link https://make.wordpress.org/core/handbook/best-practices/coding-standards/ */ /** diff --git a/WordPress/Sniffs/Functions/FunctionRestrictionsSniff.php b/WordPress/Sniffs/Functions/FunctionRestrictionsSniff.php index d8f74a5b4f..0c9367ab12 100644 --- a/WordPress/Sniffs/Functions/FunctionRestrictionsSniff.php +++ b/WordPress/Sniffs/Functions/FunctionRestrictionsSniff.php @@ -1,4 +1,12 @@ */ /** - * Enforces WordPress array format. + * Enforces WordPress function name format. * * @category PHP * @package PHP_CodeSniffer diff --git a/WordPress/Sniffs/PHP/DiscouragedFunctionsSniff.php b/WordPress/Sniffs/PHP/DiscouragedFunctionsSniff.php index 898d8b5dc8..9afd07deda 100644 --- a/WordPress/Sniffs/PHP/DiscouragedFunctionsSniff.php +++ b/WordPress/Sniffs/PHP/DiscouragedFunctionsSniff.php @@ -2,8 +2,6 @@ /** * WordPress_Sniffs_PHP_DiscouragedFunctionsSniff. * - * PHP version 5 - * * @category PHP * @package PHP_CodeSniffer * @author John Godley diff --git a/WordPress/Sniffs/PHP/StrictComparisonsSniff.php b/WordPress/Sniffs/PHP/StrictComparisonsSniff.php index 1b6b9368e1..8a7f94af98 100644 --- a/WordPress/Sniffs/PHP/StrictComparisonsSniff.php +++ b/WordPress/Sniffs/PHP/StrictComparisonsSniff.php @@ -1,8 +1,14 @@ - * @link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/69 */ class WordPress_Sniffs_VIP_DirectDatabaseQuerySniff implements PHP_CodeSniffer_Sniff { diff --git a/WordPress/Sniffs/VIP/FileSystemWritesDisallowSniff.php b/WordPress/Sniffs/VIP/FileSystemWritesDisallowSniff.php index 28749570eb..3e9897e4ff 100644 --- a/WordPress/Sniffs/VIP/FileSystemWritesDisallowSniff.php +++ b/WordPress/Sniffs/VIP/FileSystemWritesDisallowSniff.php @@ -1,13 +1,20 @@ - * @link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/69 */ class WordPress_Sniffs_VIP_FileSystemWritesDisallowSniff extends Generic_Sniffs_PHP_ForbiddenFunctionsSniff { diff --git a/WordPress/Sniffs/VIP/OrderByRandSniff.php b/WordPress/Sniffs/VIP/OrderByRandSniff.php index a3e8bfdc17..fe93e57577 100644 --- a/WordPress/Sniffs/VIP/OrderByRandSniff.php +++ b/WordPress/Sniffs/VIP/OrderByRandSniff.php @@ -1,8 +1,17 @@ rand. * - * @link https://vip.wordpress.com/documentation/code-review-what-we-look-for/#order-by-rand + * @link https://vip.wordpress.com/documentation/code-review-what-we-look-for/#order-by-rand + * * @category PHP * @package PHP_CodeSniffer */ diff --git a/WordPress/Sniffs/VIP/PluginMenuSlugSniff.php b/WordPress/Sniffs/VIP/PluginMenuSlugSniff.php index 7ef6066fae..4a6ea1ba27 100644 --- a/WordPress/Sniffs/VIP/PluginMenuSlugSniff.php +++ b/WordPress/Sniffs/VIP/PluginMenuSlugSniff.php @@ -1,6 +1,14 @@ - * @see https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/75 */ class WordPress_Sniffs_VIP_SessionFunctionsUsageSniff extends Generic_Sniffs_PHP_ForbiddenFunctionsSniff { diff --git a/WordPress/Sniffs/VIP/SessionVariableUsageSniff.php b/WordPress/Sniffs/VIP/SessionVariableUsageSniff.php index b823ace6fa..6b2c73b338 100644 --- a/WordPress/Sniffs/VIP/SessionVariableUsageSniff.php +++ b/WordPress/Sniffs/VIP/SessionVariableUsageSniff.php @@ -1,14 +1,23 @@ - * @link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/75 */ class WordPress_Sniffs_VIP_SessionVariableUsageSniff extends Generic_Sniffs_PHP_ForbiddenFunctionsSniff { diff --git a/WordPress/Sniffs/VIP/SlowDBQuerySniff.php b/WordPress/Sniffs/VIP/SlowDBQuerySniff.php index 1f1df05724..d0ad890a5a 100644 --- a/WordPress/Sniffs/VIP/SlowDBQuerySniff.php +++ b/WordPress/Sniffs/VIP/SlowDBQuerySniff.php @@ -1,4 +1,12 @@ - * @link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/79 */ class WordPress_Sniffs_VIP_SuperGlobalInputUsageSniff extends WordPress_Sniff { diff --git a/WordPress/Sniffs/VIP/TimezoneChangeSniff.php b/WordPress/Sniffs/VIP/TimezoneChangeSniff.php index 3d771790f9..58dcafe6f8 100644 --- a/WordPress/Sniffs/VIP/TimezoneChangeSniff.php +++ b/WordPress/Sniffs/VIP/TimezoneChangeSniff.php @@ -1,13 +1,22 @@ - * @see http://vip.wordpress.com/documentation/use-current_time-not-date_default_timezone_set/ */ class WordPress_Sniffs_VIP_TimezoneChangeSniff extends Generic_Sniffs_PHP_ForbiddenFunctionsSniff { diff --git a/WordPress/Sniffs/VIP/ValidatedSanitizedInputSniff.php b/WordPress/Sniffs/VIP/ValidatedSanitizedInputSniff.php index 419a176bab..d000d94599 100644 --- a/WordPress/Sniffs/VIP/ValidatedSanitizedInputSniff.php +++ b/WordPress/Sniffs/VIP/ValidatedSanitizedInputSniff.php @@ -1,14 +1,20 @@ - * @link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/69 */ class WordPress_Sniffs_VIP_ValidatedSanitizedInputSniff extends WordPress_Sniff { diff --git a/WordPress/Sniffs/Variables/GlobalVariablesSniff.php b/WordPress/Sniffs/Variables/GlobalVariablesSniff.php index ca26f59724..3fa3fd8c81 100644 --- a/WordPress/Sniffs/Variables/GlobalVariablesSniff.php +++ b/WordPress/Sniffs/Variables/GlobalVariablesSniff.php @@ -1,4 +1,12 @@ diff --git a/WordPress/Sniffs/WhiteSpace/ControlStructureSpacingSniff.php b/WordPress/Sniffs/WhiteSpace/ControlStructureSpacingSniff.php index f5088e9cce..571ffae3b4 100644 --- a/WordPress/Sniffs/WhiteSpace/ControlStructureSpacingSniff.php +++ b/WordPress/Sniffs/WhiteSpace/ControlStructureSpacingSniff.php @@ -2,8 +2,6 @@ /** * Enforces spacing around logical operators and assignments, based upon Squiz code. * - * PHP version 5 - * * @category PHP * @package PHP_CodeSniffer * @author John Godley diff --git a/WordPress/Sniffs/WhiteSpace/OperatorSpacingSniff.php b/WordPress/Sniffs/WhiteSpace/OperatorSpacingSniff.php index 724055bf3b..89941a5c76 100644 --- a/WordPress/Sniffs/WhiteSpace/OperatorSpacingSniff.php +++ b/WordPress/Sniffs/WhiteSpace/OperatorSpacingSniff.php @@ -2,8 +2,6 @@ /** * Modified version of Squiz operator white spacing, based upon Squiz code * - * PHP version 5 - * * @category PHP * @package PHP_CodeSniffer * @author Greg Sherwood @@ -11,7 +9,7 @@ */ /** - * Enforces WordPress array format + * Modified version of Squiz operator white spacing. * * @category PHP * @package PHP_CodeSniffer diff --git a/WordPress/Sniffs/XSS/EscapeOutputSniff.php b/WordPress/Sniffs/XSS/EscapeOutputSniff.php index 924fc66e4b..3ee31b4a81 100644 --- a/WordPress/Sniffs/XSS/EscapeOutputSniff.php +++ b/WordPress/Sniffs/XSS/EscapeOutputSniff.php @@ -2,8 +2,6 @@ /** * Squiz_Sniffs_XSS_EscapeOutputSniff. * - * PHP version 5 - * * @category PHP * @package PHP_CodeSniffer * @author Weston Ruter @@ -12,10 +10,11 @@ /** * Verifies that all outputted strings are escaped. * + * @link http://codex.wordpress.org/Data_Validation Data Validation on WordPress Codex + * * @category PHP * @package PHP_CodeSniffer * @author Weston Ruter - * @link http://codex.wordpress.org/Data_Validation Data Validation on WordPress Codex */ class WordPress_Sniffs_XSS_EscapeOutputSniff extends WordPress_Sniff { diff --git a/WordPress/Tests/Arrays/ArrayAssignmentRestrictionsUnitTest.php b/WordPress/Tests/Arrays/ArrayAssignmentRestrictionsUnitTest.php index 7ee0061cab..32be51af7f 100644 --- a/WordPress/Tests/Arrays/ArrayAssignmentRestrictionsUnitTest.php +++ b/WordPress/Tests/Arrays/ArrayAssignmentRestrictionsUnitTest.php @@ -1,4 +1,12 @@ - * @author Greg Sherwood - * @author Marc McIntyre - * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence - * @link http://pear.php.net/package/PHP_CodeSniffer + * @category PHP + * @package PHP_CodeSniffer + * @link https://make.wordpress.org/core/handbook/best-practices/coding-standards/ */ /** diff --git a/WordPress/Tests/Arrays/ArrayKeySpacingRestrictionsUnitTest.php b/WordPress/Tests/Arrays/ArrayKeySpacingRestrictionsUnitTest.php index ced0f2614d..0298fe50b5 100644 --- a/WordPress/Tests/Arrays/ArrayKeySpacingRestrictionsUnitTest.php +++ b/WordPress/Tests/Arrays/ArrayKeySpacingRestrictionsUnitTest.php @@ -1,4 +1,12 @@ * @link http://pear.php.net/package/PHP_CodeSniffer */ - class WordPress_Tests_CSRF_NonceVerificationUnitTest extends AbstractSniffUnitTest { /** diff --git a/WordPress/Tests/Classes/ValidClassNameUnitTest.php b/WordPress/Tests/Classes/ValidClassNameUnitTest.php index 58b42a1ca2..2469ffeca7 100644 --- a/WordPress/Tests/Classes/ValidClassNameUnitTest.php +++ b/WordPress/Tests/Classes/ValidClassNameUnitTest.php @@ -1,16 +1,10 @@ - * @author Greg Sherwood - * @author Marc McIntyre - * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence - * @link http://pear.php.net/package/PHP_CodeSniffer + * @category PHP + * @package PHP_CodeSniffer + * @link https://make.wordpress.org/core/handbook/best-practices/coding-standards/ */ /** diff --git a/WordPress/Tests/Files/FileNameUnitTest.php b/WordPress/Tests/Files/FileNameUnitTest.php index a352e6f451..7770770826 100644 --- a/WordPress/Tests/Files/FileNameUnitTest.php +++ b/WordPress/Tests/Files/FileNameUnitTest.php @@ -1,16 +1,10 @@ - * @author Greg Sherwood - * @author Marc McIntyre - * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence - * @link http://pear.php.net/package/PHP_CodeSniffer + * @category PHP + * @package PHP_CodeSniffer + * @link https://make.wordpress.org/core/handbook/best-practices/coding-standards/ */ /** diff --git a/WordPress/Tests/NamingConventions/ValidFunctionNameUnitTest.php b/WordPress/Tests/NamingConventions/ValidFunctionNameUnitTest.php index 156c00b9ce..d33b7ab8e2 100644 --- a/WordPress/Tests/NamingConventions/ValidFunctionNameUnitTest.php +++ b/WordPress/Tests/NamingConventions/ValidFunctionNameUnitTest.php @@ -1,16 +1,10 @@ - * @author Greg Sherwood - * @author Marc McIntyre - * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence - * @link http://pear.php.net/package/PHP_CodeSniffer + * @category PHP + * @package PHP_CodeSniffer + * @link https://make.wordpress.org/core/handbook/best-practices/coding-standards/ */ /** diff --git a/WordPress/Tests/NamingConventions/ValidVariableNameUnitTest.php b/WordPress/Tests/NamingConventions/ValidVariableNameUnitTest.php index fecb971dfd..fbbb92876c 100644 --- a/WordPress/Tests/NamingConventions/ValidVariableNameUnitTest.php +++ b/WordPress/Tests/NamingConventions/ValidVariableNameUnitTest.php @@ -1,17 +1,10 @@ - * @author Marc McIntyre - * @author Weston Ruter - * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600) - * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence - * @link http://pear.php.net/package/PHP_CodeSniffer + * @category PHP + * @package PHP_CodeSniffer + * @link https://make.wordpress.org/core/handbook/best-practices/coding-standards/ */ /** diff --git a/WordPress/Tests/PHP/DiscouragedFunctionsUnitTest.php b/WordPress/Tests/PHP/DiscouragedFunctionsUnitTest.php index 40b2ec26fe..80640d2e62 100644 --- a/WordPress/Tests/PHP/DiscouragedFunctionsUnitTest.php +++ b/WordPress/Tests/PHP/DiscouragedFunctionsUnitTest.php @@ -1,16 +1,10 @@ - * @author Greg Sherwood - * @author Marc McIntyre - * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence - * @link http://pear.php.net/package/PHP_CodeSniffer + * @category PHP + * @package PHP_CodeSniffer + * @link https://make.wordpress.org/core/handbook/best-practices/coding-standards/ */ /** diff --git a/WordPress/Tests/PHP/StrictComparisonsUnitTest.php b/WordPress/Tests/PHP/StrictComparisonsUnitTest.php index e99b4bb34a..0c2e6c1888 100644 --- a/WordPress/Tests/PHP/StrictComparisonsUnitTest.php +++ b/WordPress/Tests/PHP/StrictComparisonsUnitTest.php @@ -1,14 +1,10 @@ * @link http://pear.php.net/package/PHP_CodeSniffer */ - class WordPress_Tests_VIP_DirectDatabaseQueryUnitTest extends AbstractSniffUnitTest { /** diff --git a/WordPress/Tests/VIP/FileSystemWritesDisallowUnitTest.php b/WordPress/Tests/VIP/FileSystemWritesDisallowUnitTest.php index d5552d34ed..575fc68a3b 100644 --- a/WordPress/Tests/VIP/FileSystemWritesDisallowUnitTest.php +++ b/WordPress/Tests/VIP/FileSystemWritesDisallowUnitTest.php @@ -1,15 +1,20 @@ * @link http://pear.php.net/package/PHP_CodeSniffer */ - class WordPress_Tests_VIP_FileSystemWritesDisallowUnitTest extends AbstractSniffUnitTest { /** diff --git a/WordPress/Tests/VIP/OrderByRandUnitTest.php b/WordPress/Tests/VIP/OrderByRandUnitTest.php index df85a7109f..3faadd2216 100644 --- a/WordPress/Tests/VIP/OrderByRandUnitTest.php +++ b/WordPress/Tests/VIP/OrderByRandUnitTest.php @@ -1,4 +1,12 @@ * @link http://pear.php.net/package/PHP_CodeSniffer */ - class WordPress_Tests_VIP_SessionFunctionsUsageUnitTest extends AbstractSniffUnitTest { /** diff --git a/WordPress/Tests/VIP/SessionVariableUsageUnitTest.php b/WordPress/Tests/VIP/SessionVariableUsageUnitTest.php index 89f0701dcb..c6cc975887 100644 --- a/WordPress/Tests/VIP/SessionVariableUsageUnitTest.php +++ b/WordPress/Tests/VIP/SessionVariableUsageUnitTest.php @@ -1,15 +1,20 @@ * @link http://pear.php.net/package/PHP_CodeSniffer */ - class WordPress_Tests_VIP_SessionVariableUsageUnitTest extends AbstractSniffUnitTest { /** diff --git a/WordPress/Tests/VIP/SlowDBQueryUnitTest.php b/WordPress/Tests/VIP/SlowDBQueryUnitTest.php index 8fd81bb3eb..07b3b00a9b 100644 --- a/WordPress/Tests/VIP/SlowDBQueryUnitTest.php +++ b/WordPress/Tests/VIP/SlowDBQueryUnitTest.php @@ -1,4 +1,12 @@ * @link http://pear.php.net/package/PHP_CodeSniffer */ - class WordPress_Tests_VIP_SuperGlobalInputUsageUnitTest extends AbstractSniffUnitTest { /** diff --git a/WordPress/Tests/VIP/TimezoneChangeUnitTest.php b/WordPress/Tests/VIP/TimezoneChangeUnitTest.php index d7ac7e0f21..48247224a6 100644 --- a/WordPress/Tests/VIP/TimezoneChangeUnitTest.php +++ b/WordPress/Tests/VIP/TimezoneChangeUnitTest.php @@ -1,15 +1,20 @@ * @link http://pear.php.net/package/PHP_CodeSniffer */ - class WordPress_Tests_VIP_TimezoneChangeUnitTest extends AbstractSniffUnitTest { /** diff --git a/WordPress/Tests/VIP/ValidatedSanitizedInputUnitTest.php b/WordPress/Tests/VIP/ValidatedSanitizedInputUnitTest.php index 9a8516d899..1313dcd1f9 100644 --- a/WordPress/Tests/VIP/ValidatedSanitizedInputUnitTest.php +++ b/WordPress/Tests/VIP/ValidatedSanitizedInputUnitTest.php @@ -1,15 +1,20 @@ * @link http://pear.php.net/package/PHP_CodeSniffer */ - class WordPress_Tests_VIP_ValidatedSanitizedInputUnitTest extends AbstractSniffUnitTest { /** diff --git a/WordPress/Tests/Variables/GlobalVariablesUnitTest.php b/WordPress/Tests/Variables/GlobalVariablesUnitTest.php index d289daddbe..2881082b4a 100644 --- a/WordPress/Tests/Variables/GlobalVariablesUnitTest.php +++ b/WordPress/Tests/Variables/GlobalVariablesUnitTest.php @@ -1,4 +1,12 @@ - * @author Greg Sherwood - * @author Marc McIntyre - * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence - * @link http://pear.php.net/package/PHP_CodeSniffer + * @category PHP + * @package PHP_CodeSniffer + * @link https://make.wordpress.org/core/handbook/best-practices/coding-standards/ */ /** diff --git a/WordPress/Tests/WhiteSpace/OperatorSpacingUnitTest.php b/WordPress/Tests/WhiteSpace/OperatorSpacingUnitTest.php index 8553def0db..4f2bab3a05 100644 --- a/WordPress/Tests/WhiteSpace/OperatorSpacingUnitTest.php +++ b/WordPress/Tests/WhiteSpace/OperatorSpacingUnitTest.php @@ -1,16 +1,10 @@ - * @author Greg Sherwood - * @author Marc McIntyre - * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence - * @link http://pear.php.net/package/PHP_CodeSniffer + * @category PHP + * @package PHP_CodeSniffer + * @link https://make.wordpress.org/core/handbook/best-practices/coding-standards/ */ /** diff --git a/WordPress/Tests/XSS/EscapeOutputUnitTest.php b/WordPress/Tests/XSS/EscapeOutputUnitTest.php index 2b8b7583a2..c9fb7812fe 100644 --- a/WordPress/Tests/XSS/EscapeOutputUnitTest.php +++ b/WordPress/Tests/XSS/EscapeOutputUnitTest.php @@ -1,16 +1,10 @@ - * @author Greg Sherwood - * @author Marc McIntyre - * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence - * @link http://pear.php.net/package/PHP_CodeSniffer + * @category PHP + * @package PHP_CodeSniffer + * @link https://make.wordpress.org/core/handbook/best-practices/coding-standards/ */ /**