Skip to content

Commit

Permalink
Correct doc blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Scherer committed May 17, 2015
1 parent ebd44de commit 4f1e24a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Validation/ValidationSet.php
Expand Up @@ -109,7 +109,7 @@ public function rules()
*
* ```
* $set
* ->add('notEmpty', ['rule' => 'notEmpty'])
* ->add('notBlank', ['rule' => 'notBlank'])
* ->add('inRange', ['rule' => ['between', 4, 10])
* ```
*
Expand All @@ -133,7 +133,7 @@ public function add($name, $rule)
*
* ```
* $set
* ->remove('notEmpty')
* ->remove('notBlank')
* ->remove('inRange')
* ```
*
Expand Down
2 changes: 1 addition & 1 deletion src/Validation/Validator.php
Expand Up @@ -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', [
Expand Down
4 changes: 2 additions & 2 deletions src/Validation/ValidatorAwareTrait.php
Expand Up @@ -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');
* }
* ```
Expand All @@ -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);
* ```
Expand Down

0 comments on commit 4f1e24a

Please sign in to comment.