Permalink
Browse files

Formatting doc blocks.

Standardising version and packages throughout.
  • Loading branch information...
predominant committed Dec 11, 2009
1 parent 91977a3 commit e3debd050978d1eaf7890dbbfac29f475312f821
Showing with 370 additions and 65 deletions.
  1. +10 −2 libs/au_validation.php
  2. +10 −2 libs/bd_validation.php
  3. +10 −2 libs/be_validation.php
  4. +12 −4 libs/br_validation.php
  5. +10 −2 libs/ca_validation.php
  6. +10 −2 libs/cz_validation.php
  7. +10 −2 libs/de_validation.php
  8. +10 −2 libs/dk_validation.php
  9. +10 −2 libs/es_validation.php
  10. +10 −2 libs/fr_validation.php
  11. +11 −3 libs/it_validation.php
  12. +10 −2 libs/jp_validation.php
  13. +8 −1 libs/mx_validation.php
  14. +12 −4 libs/nl_validation.php
  15. +10 −1 libs/pl_validation.php
  16. +10 −2 libs/sk_validation.php
  17. +12 −4 libs/tw_validation.php
  18. +10 −2 libs/uk_validation.php
  19. +12 −4 libs/us_validation.php
  20. +9 −1 tests/cases/libs/au_validation.test.php
  21. +9 −1 tests/cases/libs/bd_validation.test.php
  22. +9 −1 tests/cases/libs/be_validation.test.php
  23. +11 −1 tests/cases/libs/br_validation.test.php
  24. +9 −1 tests/cases/libs/ca_validation.test.php
  25. +9 −1 tests/cases/libs/cz_validation.test.php
  26. +9 −1 tests/cases/libs/de_validation.test.php
  27. +9 −1 tests/cases/libs/dk_validation.test.php
  28. +9 −1 tests/cases/libs/es_validation.test.php
  29. +9 −1 tests/cases/libs/fr_validation.test.php
  30. +10 −1 tests/cases/libs/it_validation.test.php
  31. +9 −1 tests/cases/libs/jp_validation.test.php
  32. +2 −2 tests/cases/libs/mx_validation.test.php
  33. +11 −1 tests/cases/libs/nl_validation.test.php
  34. +9 −1 tests/cases/libs/pl_validation.test.php
  35. +9 −1 tests/cases/libs/sk_validation.test.php
  36. +11 −1 tests/cases/libs/tw_validation.test.php
  37. +9 −1 tests/cases/libs/uk_validation.test.php
  38. +11 −1 tests/cases/libs/us_validation.test.php
View
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * AuValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class AuValidation {
/**
* Checks Postal Codes for Australia
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function postal($check) {
$pattern = '/^[0-9]{4}$/i';
View
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * BdValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class BdValidation {
/**
* Checks zipcodes for Bangladesh
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function postal($check) {
$pattern = '/^\d{4}$/';
View
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * BeValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class BeValidation {
/**
* Checks zipcodes for Belgium
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function postal($check) {
$pattern = '/^[1-9]{1}[0-9]{3}$/i';
View
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * BrValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class BrValidation {
/**
* Checks phone numbers for Brazil
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function phone($check) {
return (bool)preg_match('/^(\+?\d{1,3}? ?)?(\(0?\d{2}\) ?)?\d{4}[-. ]?\d{4}$/', $check);
@@ -33,8 +41,8 @@ function phone($check) {
* Checks zipcodes (CEP) for Brazil
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function postal($check) {
return (bool)preg_match('/^[0-9]{5}-?[0-9]{3}$/', $check);
@@ -44,8 +52,8 @@ function postal($check) {
* Checks cadastro de pessoa física (CPF) for Brazil
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function ssn($check) {
$check = str_replace(array(' ', '-', '.'), '', $check);
View
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * CaValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class CaValidation {
/**
* Checks zipcodes for Canada
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function postal($check) {
$pattern = '/\\A\\b[ABCEGHJKLMNPRSTVXY][0-9][A-Z] [0-9][A-Z][0-9]\\b\\z/i';
View
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * CzValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class CzValidation {
/**
* Checks zipcodes for Czech Republic
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function postal($check) {
$pattern = '/^[1-7]\d{2} ?\d{2}$/i';
View
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * DeValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class DeValidation {
/**
* Checks zipcodes for Germany
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function postal($check) {
$pattern = '/^[0-9]{5}$/i';
View
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * DkValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class DkValidation {
/**
* Checks social security numbers for Denmark
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function ssn($check) {
$pattern = '/\\A\\b[0-9]{6}-[0-9]{4}\\b\\z/i';
View
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * EsValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class EsValidation {
/**
* Checks phone numbers for Spain
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function phone($check) {
$pattern = '/^\\+?(34[-. ]?)?\\(?(([689]{1})(([0-9]{2})\\)?[-. ]?|([0-9]{1})\\)?[-. ]?([0-9]{1}))|70\\)?[-. ]?([0-9]{1}))([0-9]{2})[-. ]?([0-9]{1})[-. ]?([0-9]{1})[-. ]?([0-9]{2})$/';
View
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * FrValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class FrValidation {
/**
* Checks phone numbers for France
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function phone($check) {
$pattern = '/^0[1-6]{1}(([0-9]{2}){4})|((\s[0-9]{2}){4})|((-[0-9]{2}){4})$/';
View
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * ItValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class ItValidation {
/**
* Checks phone numbers for Italy
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function phone($check) {
$pattern = '/^([0-9]*\-?\ ?\/?[0-9]*)$/';
@@ -34,8 +42,8 @@ function phone($check) {
* Checks zipcodes for Italy
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function postal($check) {
$pattern = '/^[0-9]{5}$/i';
View
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * JpValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class JpValidation {
/**
* Checks zipcodes for Japan
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function postal($check) {
$pattern = '/^[0-9]{3}-[0-9]{4}$/';
View
@@ -13,10 +13,17 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @subpackage localized.libs
+ * @subpackage localized.tests.cases.libs
* @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * MxValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class MxValidation {
/**
Oops, something went wrong.

0 comments on commit e3debd0

Please sign in to comment.