Permalink
Browse files

fixed code standards

  • Loading branch information...
1 parent 101d486 commit 6efa606a865d8dc58c5a1e48365d8e7e8a0c6f8e @marcopeg marcopeg committed Oct 26, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Cake/Model/Validator/CakeValidationRule.php
@@ -278,7 +278,9 @@ public function process($field, &$data, &$methods) {
list($plugin, $class) = pluginSplit($this->_rule);
list($className, $method) = explode('::', $class);
$location = 'Model/Validation';
- if ($plugin) $location = $plugin . '.' . $location;
+ if ($plugin) {
+ $location = $plugin . '.' . $location;
+ }
App::uses($className, $location);
if (class_exists($className) && method_exists($className, $method)) {
$this->_valid = call_user_func_array(array($className, $method), $this->_ruleParams);

0 comments on commit 6efa606

Please sign in to comment.