Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added: support for PHP_CodeSniffer 1.3.0 alpha

  • Loading branch information...
commit 2dfd90f12ea7969abb758c86a7c7233bc62485c3 1 parent 0187255
@wimg authored
View
8 PHP53CompatCodingStandard.php
@@ -1,6 +1,6 @@
<?php
/**
- * PHP53 PHP_CodeSniffer Coding Standard.
+ * PHP53Compat PHP_CodeSniffer Coding Standard.
*
* PHP version 5.3
*
@@ -17,11 +17,11 @@
}
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
- throw new PHP_CodeSniffer_Exception('PHP 5.3 is required to use the PHP53 codesniffer standard');
+ throw new PHP_CodeSniffer_Exception('PHP 5.3 is required to use the PHP53Compat codesniffer standard');
}
/**
- * PHP53 PHP_CodeSniffer Coding Standard.
+ * PHP53Compat PHP_CodeSniffer Coding Standard.
*
* @category PHP
* @package PHP53Compat
@@ -31,7 +31,7 @@
* @version 1.0
* @link http://pear.php.net/package/PHP_CodeSniffer
*/
-class PHP_CodeSniffer_Standards_PHP53_PHP53CodingStandard extends PHP_CodeSniffer_Standards_CodingStandard
+class PHP_CodeSniffer_Standards_PHP53Compat_PHP53CompatCodingStandard extends PHP_CodeSniffer_Standards_CodingStandard
{
View
6 Sniffs/PHP/DeprecatedFunctionsSniff.php
@@ -1,6 +1,6 @@
<?php
/**
- * PHP53_Sniffs_PHP_DeprecatedFunctionsSniff.
+ * PHP53Compat_Sniffs_PHP_DeprecatedFunctionsSniff.
*
* PHP version 5.3
*
@@ -11,7 +11,7 @@
*/
/**
- * PHP53_Sniffs_PHP_DeprecatedFunctionsSniff.
+ * PHP53Compat_Sniffs_PHP_DeprecatedFunctionsSniff.
*
* @category PHP
* @package PHP53Compat
@@ -19,7 +19,7 @@
* @version 1.0.0
* @copyright 2010 Cu.be Solutions bvba
*/
-class PHP53_Sniffs_PHP_DeprecatedFunctionsSniff extends Generic_Sniffs_PHP_ForbiddenFunctionsSniff
+class PHP53Compat_Sniffs_PHP_DeprecatedFunctionsSniff extends Generic_Sniffs_PHP_ForbiddenFunctionsSniff
{
/**
View
6 Sniffs/PHP/DeprecatedIniDirectivesSniff.php
@@ -1,6 +1,6 @@
<?php
/**
- * PHP53_Sniffs_PHP_DeprecatedIniDirectivesSniff.
+ * PHP53Compat_Sniffs_PHP_DeprecatedIniDirectivesSniff.
*
* PHP version 5.3
*
@@ -11,7 +11,7 @@
*/
/**
- * PHP53_Sniffs_PHP_DeprecatedIniDirectivesSniff.
+ * PHP53Compat_Sniffs_PHP_DeprecatedIniDirectivesSniff.
*
* Discourages the use of ini directives through ini_set or
* in php.ini (searches only for the current running one, so it should be run on a php.ini
@@ -22,7 +22,7 @@
* @author Wim Godden <wim.godden@cu.be>
* @copyright 2010 Cu.be Solutions bvba
*/
-class PHP53_Sniffs_PHP_DeprecatedIniDirectivesSniff implements PHP_CodeSniffer_Sniff
+class PHP53Compat_Sniffs_PHP_DeprecatedIniDirectivesSniff implements PHP_CodeSniffer_Sniff
{
/**
* Variable keeps status of php.ini check
View
6 Sniffs/PHP/DeprecatedNewReferenceSniff.php
@@ -1,6 +1,6 @@
<?php
/**
- * PHP53_Sniffs_PHP_DeprecatedNewReferenceSniff.
+ * PHP53Compat_Sniffs_PHP_DeprecatedNewReferenceSniff.
*
* PHP version 5.3
*
@@ -11,7 +11,7 @@
*/
/**
- * PHP53_Sniffs_PHP_DeprecatedNewReferenceSniff.
+ * PHP53Compat_Sniffs_PHP_DeprecatedNewReferenceSniff.
*
* Discourages the use of assigning the return value of new by reference
*
@@ -22,7 +22,7 @@
* @author Wim Godden <wim.godden@cu.be>
* @copyright 2010 Cu.be Solutions bvba
*/
-class PHP53_Sniffs_PHP_DeprecatedNewReferenceSniff implements PHP_CodeSniffer_Sniff
+class PHP53Compat_Sniffs_PHP_DeprecatedNewReferenceSniff implements PHP_CodeSniffer_Sniff
{
/**
View
6 Sniffs/PHP/ForbiddenNamesSniff.php
@@ -1,6 +1,6 @@
<?php
/**
- * PHP53_Sniffs_PHP_ForbiddenNamesSniff.
+ * PHP53Compat_Sniffs_PHP_ForbiddenNamesSniff.
*
* PHP version 5.3
*
@@ -11,7 +11,7 @@
*/
/**
- * PHP53_Sniffs_PHP_ForbiddenNamesSniff.
+ * PHP53Compat_Sniffs_PHP_ForbiddenNamesSniff.
*
* Prohibits the use of reserved keywords as class, function, namespace or constant names
*
@@ -22,7 +22,7 @@
* @author Wim Godden <wim.godden@cu.be>
* @copyright 2010 Cu.be Solutions bvba
*/
-class PHP53_Sniffs_PHP_ForbiddenNamesSniff implements PHP_CodeSniffer_Sniff
+class PHP53Compat_Sniffs_PHP_ForbiddenNamesSniff implements PHP_CodeSniffer_Sniff
{
/**
View
6 Sniffs/PHP/NonStaticMagicMethodsSniff.php
@@ -1,6 +1,6 @@
<?php
/**
- * PHP53_Sniffs_PHP_NonStaticMagicMethodsSniff.
+ * PHP53Compat_Sniffs_PHP_NonStaticMagicMethodsSniff.
*
* PHP version 5.3
*
@@ -11,7 +11,7 @@
*/
/**
- * PHP53_Sniffs_PHP_NonStaticMagicMethodsSniff.
+ * PHP53Compat_Sniffs_PHP_NonStaticMagicMethodsSniff.
*
* Prohibits the use of static magic methods as well as protected or private magic methods
*
@@ -20,7 +20,7 @@
* @author Wim Godden <wim.godden@cu.be>
* @copyright 2010 Cu.be Solutions bvba
*/
-class PHP53_Sniffs_PHP_NonStaticMagicMethodsSniff implements PHP_CodeSniffer_Sniff
+class PHP53Compat_Sniffs_PHP_NonStaticMagicMethodsSniff implements PHP_CodeSniffer_Sniff
{
/**
View
6 Sniffs/PHP/RemovedExtensionsSniff.php
@@ -1,6 +1,6 @@
<?php
/**
- * PHP53_Sniffs_PHP_RemovedExtensionsSniff.
+ * PHP53Compat_Sniffs_PHP_RemovedExtensionsSniff.
*
* PHP version 5.3
*
@@ -11,7 +11,7 @@
*/
/**
- * PHP53_Sniffs_PHP_RemovedExtensionsSniff.
+ * PHP53Compat_Sniffs_PHP_RemovedExtensionsSniff.
*
* Discourages the use of removed extensions. Suggests alternative extensions if available
*
@@ -20,7 +20,7 @@
* @author Wim Godden <wim.godden@cu.be>
* @copyright 2010 Cu.be Solutions bvba
*/
-class PHP53_Sniffs_PHP_RemovedExtensionsSniff implements PHP_CodeSniffer_Sniff
+class PHP53Compat_Sniffs_PHP_RemovedExtensionsSniff implements PHP_CodeSniffer_Sniff
{
/**
View
5 ruleset.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0"?>
+<ruleset name="PHP53Compat_CodeSniffer">
+ <description>The PHP53Compat_CodeSniffer rules check PHP 5.3 compatibility of your code.</description>
+
+</ruleset>
Please sign in to comment.
Something went wrong with that request. Please try again.