Skip to content
Permalink
Browse files

Correct doc blocks.

  • Loading branch information...
dereuromark committed May 17, 2015
1 parent ebd44de commit 4f1e24aac2f6c208a52473793560319840d2748c
Showing with 5 additions and 5 deletions.
  1. +2 −2 src/Validation/ValidationSet.php
  2. +1 −1 src/Validation/Validator.php
  3. +2 −2 src/Validation/ValidatorAwareTrait.php
@@ -109,7 +109,7 @@ public function rules()
*
* ```
* $set
* ->add('notEmpty', ['rule' => 'notEmpty'])
* ->add('notBlank', ['rule' => 'notBlank'])
* ->add('inRange', ['rule' => ['between', 4, 10])
* ```
*
@@ -133,7 +133,7 @@ public function add($name, $rule)
*
* ```
* $set
* ->remove('notEmpty')
* ->remove('notBlank')
* ->remove('inRange')
* ```
*
@@ -289,7 +289,7 @@ public function count()
*
* ```
* $validator
* ->add('title', 'required', ['rule' => 'notEmpty'])
* ->add('title', 'required', ['rule' => 'notBlank'])
* ->add('user_id', 'valid', ['rule' => 'numeric', 'message' => 'Invalid User'])
*
* $validator->add('password', [
@@ -59,7 +59,7 @@ trait ValidatorAwareTrait
* {
* return $validator
* ->add('email', 'valid-email', ['rule' => 'email'])
* ->add('password', 'valid', ['rule' => 'notEmpty'])
* ->add('password', 'valid', ['rule' => 'notBlank'])
* ->requirePresence('username');
* }
* ```
@@ -70,7 +70,7 @@ trait ValidatorAwareTrait
* $validator = new \Cake\Validation\Validator($table);
* $validator
* ->add('email', 'valid-email', ['rule' => 'email'])
* ->add('password', 'valid', ['rule' => 'notEmpty'])
* ->add('password', 'valid', ['rule' => 'notBlank'])
* ->allowEmpty('bio');
* $table->validator('forSubscription', $validator);
* ```

0 comments on commit 4f1e24a

Please sign in to comment.
You can’t perform that action at this time.