X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fpear%2FPEAR%2FValidate.php;h=8e29b7cd2a0b89fd46ded342a7940476af2309cb;hb=90ff65cf45284f90b1c4e09fe575319b320f56ac;hp=176560bc2377c1edd4293a2465ec9b57586ad35a;hpb=afe2d051307ae2cd54bdb957f04e1d9f625f2dd9;p=timetracker.git diff --git a/WEB-INF/lib/pear/PEAR/Validate.php b/WEB-INF/lib/pear/PEAR/Validate.php index 176560bc..8e29b7cd 100644 --- a/WEB-INF/lib/pear/PEAR/Validate.php +++ b/WEB-INF/lib/pear/PEAR/Validate.php @@ -9,7 +9,6 @@ * @author Greg Beaver * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: Validate.php 313023 2011-07-06 19:17:11Z dufuz $ * @link http://pear.php.net/package/PEAR * @since File available since Release 1.4.0a1 */ @@ -32,7 +31,7 @@ require_once 'PEAR/Validator/PECL.php'; * @author Greg Beaver * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.9.4 + * @version Release: 1.10.1 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ @@ -85,9 +84,8 @@ class PEAR_Validate * to the PEAR naming convention, so the method is final and static. * @param string * @final - * @static */ - function validGroupName($name) + public static function validGroupName($name) { return (bool) preg_match('/^' . _PEAR_COMMON_PACKAGE_NAME_PREG . '\\z/', $name); } @@ -96,10 +94,9 @@ class PEAR_Validate * Determine whether $state represents a valid stability level * @param string * @return bool - * @static * @final */ - function validState($state) + public static function validState($state) { return in_array($state, array('snapshot', 'devel', 'alpha', 'beta', 'stable')); } @@ -107,10 +104,9 @@ class PEAR_Validate /** * Get a list of valid stability levels * @return array - * @static * @final */ - function getValidStates() + public static function getValidStates() { return array('snapshot', 'devel', 'alpha', 'beta', 'stable'); } @@ -120,10 +116,9 @@ class PEAR_Validate * by version_compare * @param string * @return bool - * @static * @final */ - function validVersion($ver) + public static function validVersion($ver) { return (bool) preg_match(PEAR_COMMON_PACKAGE_VERSION_PREG, $ver); } @@ -207,7 +202,8 @@ class PEAR_Validate $this->_packagexml->getExtends()) { $version = $this->_packagexml->getVersion() . ''; $name = $this->_packagexml->getPackage(); - $test = array_shift($a = explode('.', $version)); + $a = explode('.', $version); + $test = array_shift($a); if ($test == '0') { return true; }