@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | * @access private |
| 109 | 109 | * |
| 110 | 110 | * @param array $array |
| 111 | - * @param string|array $callback |
|
| 111 | + * @param callable $callback |
|
| 112 | 112 | * @return array |
| 113 | 113 | */ |
| 114 | 114 | protected function transform_array_leafs( array $array, $callback ) { |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | * @since 0.10.0 |
| 125 | 125 | * @access private |
| 126 | 126 | * |
| 127 | - * @param string|array $callback |
|
| 127 | + * @param callable $callback |
|
| 128 | 128 | * @param string (optional) $input The input string |
| 129 | 129 | * @return |
| 130 | 130 | */ |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | * |
| 28 | 28 | * @since 0.10.0 |
| 29 | 29 | * |
| 30 | - * @param ArtisanInterface $builder |
|
| 30 | + * @param FormArtisan $builder |
|
| 31 | 31 | * @param string $action |
| 32 | 32 | */ |
| 33 | 33 | public function __construct( FormArtisan $builder, $action ) { |
@@ -194,6 +194,8 @@ discard block |
||
| 194 | 194 | * @param string $response |
| 195 | 195 | * @param string (optional) $field |
| 196 | 196 | * @param string (optional) $value |
| 197 | + * @param string $field |
|
| 198 | + * @param string $value |
|
| 197 | 199 | * @return string|null |
| 198 | 200 | */ |
| 199 | 201 | protected function string_or_null( $response, $field = null, $value = null ) { |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | defined( 'ABSPATH' ) || die(); |
| 4 | 4 | |
| 5 | 5 | use WFV\Artisan\FormArtisan; |
| 6 | -use WFV\Contract\ValidateInterface; |
|
| 7 | 6 | use WFV\RuleFactory; |
| 8 | 7 | |
| 9 | 8 | /** |
@@ -143,7 +143,7 @@ |
||
| 143 | 143 | * @access protected |
| 144 | 144 | * |
| 145 | 145 | * @param string $rule |
| 146 | - * @return bool |
|
| 146 | + * @return integer |
|
| 147 | 147 | */ |
| 148 | 148 | protected function string_has_params( $rule ) { |
| 149 | 149 | return strpos( $rule, ':' ); |
@@ -26,7 +26,6 @@ discard block |
||
| 26 | 26 | * |
| 27 | 27 | * @since 0.10.0 |
| 28 | 28 | * |
| 29 | - * @param array $data |
|
| 30 | 29 | * @param bool $trim |
| 31 | 30 | */ |
| 32 | 31 | public function __construct( InspectionAgent $guard, $trim = true ) { |
@@ -67,6 +66,7 @@ discard block |
||
| 67 | 66 | * @since 0.11.0 |
| 68 | 67 | * @access protected |
| 69 | 68 | * |
| 69 | + * @param boolean $trim |
|
| 70 | 70 | */ |
| 71 | 71 | protected function populate( $trim ) { |
| 72 | 72 | if( $this->guard->safe_submit() ) { |
@@ -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\Agent\InspectionAgent; |
| 22 | 21 | use WFV\Artisan\Director; |
| 23 | 22 | use WFV\Artisan\FormArtisan; |