From 69cb6a7c96e1813bff708efd56e072a97f001095 Mon Sep 17 00:00:00 2001 From: Asko Nomm Date: Wed, 23 Feb 2022 00:07:38 +0100 Subject: Doc fixes --- README.md | 6 +----- src/Bouncer.php | 9 ++------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 5353250..075f1c3 100644 --- a/README.md +++ b/README.md @@ -16,11 +16,7 @@ composer require askonomm/bouncer ## Usage -The Bouncer takes in an array of fields, an array of rules and optionally an array of validators. If no validators are provided, default validators will be used instead, which are: - -- `\Askonomm\Bouncer\Validators\LenValidator` -- `\Askonomm\Bouncer\Validators\EmailValidator` -- `\Askonomm\Bouncer\Validators\RequiredValidator` +The Bouncer takes in an array of `$fields` and an array of `$rules`. The key of each item in the `$fields` array must correspond to the the key of each item in the `$rules` array, so that Bouncer would know how to connect the two to each other. diff --git a/src/Bouncer.php b/src/Bouncer.php index 0bfbdcb..517315b 100644 --- a/src/Bouncer.php +++ b/src/Bouncer.php @@ -10,13 +10,8 @@ use Askonomm\Bouncer\Validators\EmailValidator; use Askonomm\Bouncer\Validators\RequiredValidator; /** - * The Bouncer takes in an array of fields, an array of - * rules and optionally an array of validators. If no validators - * are provided, default validators will be used instead, which are: - * - * - `\Askonomm\Bouncer\Validators\LenValidator` - * - `\Askonomm\Bouncer\Validators\EmailValidator` - * - `\Askonomm\Bouncer\Validators\RequiredValidator` + * The Bouncer takes in an array of `$fields` and an array of + * `$rules`. * * The key of each item in the `$fields` array must correspond to the * the key of each item in the `$rules` array, so that Bouncer -- cgit v1.2.3