@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | * |
| 70 | 70 | * @since 0.10.0 |
| 71 | 71 | * |
| 72 | - * @return WFV\FormComposite |
|
| 72 | + * @return FormComposite |
|
| 73 | 73 | */ |
| 74 | 74 | public function actualize() { |
| 75 | 75 | return $this->form; |
@@ -80,8 +80,7 @@ discard block |
||
| 80 | 80 | * |
| 81 | 81 | * @since 0.10.0 |
| 82 | 82 | * |
| 83 | - * @param string $action |
|
| 84 | - * @return WFV\Artisan\FormArtisan |
|
| 83 | + * @return FormArtisan |
|
| 85 | 84 | */ |
| 86 | 85 | public function create() { |
| 87 | 86 | $this->form = new FormComposite( $this ); |
@@ -94,7 +93,7 @@ discard block |
||
| 94 | 93 | * |
| 95 | 94 | * @since 0.10.0 |
| 96 | 95 | * |
| 97 | - * @return WFV\Artisan\FormArtisan |
|
| 96 | + * @return FormArtisan |
|
| 98 | 97 | */ |
| 99 | 98 | public function errors() { |
| 100 | 99 | $this->collection['errors'] = new ErrorCollection( $this->labels() ); |
@@ -107,7 +106,7 @@ discard block |
||
| 107 | 106 | * |
| 108 | 107 | * @since 0.10.0 |
| 109 | 108 | * |
| 110 | - * @return WFV\Artisan\FormArtisan |
|
| 109 | + * @return FormArtisan |
|
| 111 | 110 | */ |
| 112 | 111 | public function input() { |
| 113 | 112 | $guard = new InspectionAgent( $this->action ); |
@@ -121,7 +120,7 @@ discard block |
||
| 121 | 120 | * |
| 122 | 121 | * @since 0.10.0 |
| 123 | 122 | * |
| 124 | - * @return WFV\Artisan\FormArtisan |
|
| 123 | + * @return FormArtisan |
|
| 125 | 124 | */ |
| 126 | 125 | public function rules() { |
| 127 | 126 | $this->collection['rules'] = new RuleCollection( $this->config ); |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use WFV\Collection\ErrorCollection; |
| 8 | 8 | use WFV\Collection\InputCollection; |
| 9 | 9 | use WFV\Collection\RuleCollection; |
| 10 | - |
|
| 11 | 10 | use WFV\FormComposite; |
| 12 | 11 | |
| 13 | 12 | /** |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | * |
| 37 | 37 | * @since 0.10.0 |
| 38 | 38 | * |
| 39 | - * @param ArtisanInterface $builder |
|
| 39 | + * @param FormArtisan $builder |
|
| 40 | 40 | */ |
| 41 | 41 | public function __construct( FormArtisan $builder ) { |
| 42 | 42 | $this->alias = $builder->action; |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | * |
| 90 | 90 | * @since 0.10.0 |
| 91 | 91 | * |
| 92 | - * @return WFV\Collection\InputCollection |
|
| 92 | + * @return Collection\InputCollection |
|
| 93 | 93 | */ |
| 94 | 94 | public function input() { |
| 95 | 95 | return $this->utilize('input'); |
@@ -153,6 +153,8 @@ discard block |
||
| 153 | 153 | * @param string $response |
| 154 | 154 | * @param string (optional) $field |
| 155 | 155 | * @param string (optional) $value |
| 156 | + * @param string $field |
|
| 157 | + * @param string $value |
|
| 156 | 158 | * @return string|null |
| 157 | 159 | */ |
| 158 | 160 | protected function string_or_null( $response, $field = null, $value = null ) { |
@@ -3,8 +3,6 @@ |
||
| 3 | 3 | defined( 'ABSPATH' ) || die(); |
| 4 | 4 | |
| 5 | 5 | use WFV\Artisan\FormArtisan; |
| 6 | -use WFV\Contract\ValidateInterface; |
|
| 7 | -use WFV\RuleFactory; |
|
| 8 | 6 | |
| 9 | 7 | /** |
| 10 | 8 | * Form Composition |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | |
| 18 | 18 | require_once WFV_VALIDATE__PLUGIN_DIR . '/vendor/autoload.php'; |
| 19 | 19 | |
| 20 | -use WFV\FormComposite; |
|
| 21 | 20 | use WFV\RuleFactory; |
| 22 | 21 | use WFV\Validator; |
| 23 | 22 | use WFV\Artisan\Director; |