Permalink
Browse files

fixed code standards

  • Loading branch information...
1 parent d2860c2 commit 3b98f8f2518fd3cded70d95f91073ebf1b165e86 @marcopeg marcopeg committed Oct 25, 2012
Showing with 0 additions and 7 deletions.
  1. +0 −7 lib/Cake/Model/Validator/CakeValidationRule.php
View
7 lib/Cake/Model/Validator/CakeValidationRule.php
@@ -272,19 +272,12 @@ public function process($field, &$data, &$methods) {
} elseif (class_exists('Validation') && method_exists('Validation', $this->_rule)) {
$this->_valid = call_user_func_array(array('Validation', $this->_rule), $this->_ruleParams);
} elseif (strpos($this->_rule ,'::')) {
-
list($plugin, $class) = pluginSplit($this->_rule);
list($className,$method) = explode('::',$class);
-
- // Contestualize lazy loading to validation repository even into plugins
$location = 'Model/Validation';
if ( $plugin ) $location = $plugin . '.' . $location;
-
- // Lazy loading and method call
App::uses($className, $location);
if ( class_exists($className) ) $this->_valid = call_user_func_array(array($className, $method), $this->_ruleParams);
-
-
} elseif (is_string($validator['rule'])) {
$this->_valid = preg_match($this->_rule, $data[$field]);
} elseif (Configure::read('debug') > 0) {

0 comments on commit 3b98f8f

Please sign in to comment.