Skip to content
Browse files

fixed code standards

  • Loading branch information...
1 parent 4dbc724 commit 69430fd7d4ee472eb76fc52dc021c2b1df8322b9 @marcopeg marcopeg committed
Showing with 0 additions and 25 deletions.
  1. +0 −25 lib/Cake/Model/Validator/CakeValidationRule.php
View
25 lib/Cake/Model/Validator/CakeValidationRule.php
@@ -273,28 +273,6 @@ public function process($field, &$data, &$methods) {
$this->_valid = call_user_func_array($methods[$rule], $this->_ruleParams);
} elseif (class_exists('Validation') && method_exists('Validation', $this->_rule)) {
$this->_valid = call_user_func_array(array('Validation', $this->_rule), $this->_ruleParams);
-
-
- /**
- * Allow external validator objects to be used as custom validation rules
- * Inspired by: http://goo.gl/8u4FN
- * Documentation: http://bit.ly/RXxw43
- *
- * It allow to create a custom validator object like:
- *
- * // App/Model/Validation
- * class MyValidator {
- * public static function isReallyInt() {}
- * }
- *
- * // App/Model/Users.php
- * ...
- * $validate = array(
- * 'username' => 'MyValidator::isReallyInt'
- *);
- * ...
- *
- */
} elseif (strpos($this->_rule ,'::')) {
list($plugin, $class) = pluginSplit($this->_rule);
@@ -311,9 +289,6 @@ public function process($field, &$data, &$methods) {
} elseif (is_string($validator['rule'])) {
$this->_valid = preg_match($this->_rule, $data[$field]);
-
-
-
} elseif (Configure::read('debug') > 0) {
trigger_error(__d('cake_dev', 'Could not find validation handler %s for %s', $this->_rule, $field), E_USER_WARNING);
return false;

0 comments on commit 69430fd

Please sign in to comment.
Something went wrong with that request. Please try again.