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/ */ /**