Completed
Branch master (5af635)
by Maciej
02:13
created
src/Abstraction/Collectable.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,7 +86,6 @@  discard block
 block discarded – undo
86 86
 	 *
87 87
 	 * @since 0.10.0
88 88
 	 *
89
-	 * @param string|array $value
90 89
 	 * @param string $callback
91 90
 	 * @return string|array
92 91
 	 */
@@ -108,7 +107,7 @@  discard block
 block discarded – undo
108 107
 	 * @access private
109 108
 	 *
110 109
 	 * @param array $array
111
-	 * @param string|array $callback
110
+	 * @param callable $callback
112 111
 	 * @return array
113 112
 	 */
114 113
 	protected function transform_array_leafs( array $array, $callback ) {
@@ -124,7 +123,7 @@  discard block
 block discarded – undo
124 123
 	 * @since 0.10.0
125 124
 	 * @access private
126 125
 	 *
127
-	 * @param string|array $callback
126
+	 * @param callable $callback
128 127
 	 * @param string (optional) $input The input string
129 128
 	 * @return
130 129
 	 */
Please login to merge, or discard this patch.
src/Artisan/Director.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -45,6 +45,7 @@
 block discarded – undo
45 45
    * @since 0.10.0
46 46
    *
47 47
    * @param string (optional) $identity
48
+   * @param string $identity
48 49
    */
49 50
   function __construct( $identity = null ) {
50 51
     $this->entity = $identity;
Please login to merge, or discard this patch.
src/Artisan/FormArtisan.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 	 * @since 0.10.0
91 91
 	 *
92 92
 	 * @param string $action
93
-	 * @return WFV\Artisan\FormArtisan
93
+	 * @return FormArtisan
94 94
 	 */
95 95
 	public function create( $action ) {
96 96
 		$this->form = new FormComposite( $this, $action );
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 	 *
104 104
 	 * @since 0.10.0
105 105
 	 *
106
-	 * @return WFV\Artisan\FormArtisan
106
+	 * @return FormArtisan
107 107
 	 */
108 108
 	public function errors() {
109 109
 		$this->collection['errors'] = new ErrorCollection( $this->labels() );
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 	 * @since 0.10.0
133 133
 	 *
134 134
 	 * @param array $data
135
-	 * @return WFV\Artisan\FormArtisan
135
+	 * @return FormArtisan
136 136
 	 */
137 137
 	public function input( array $data = [] ) {
138 138
 		$input = $data[0];
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 	 *
148 148
 	 * @since 0.10.0
149 149
 	 *
150
-	 * @return WFV\Artisan\FormArtisan
150
+	 * @return FormArtisan
151 151
 	 */
152 152
 	public function rules() {
153 153
 		foreach( $this->config as $field => $options ) {
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 	 *
165 165
 	 * @since 0.11.0
166 166
 	 *
167
-	 * @return WFV\Artisan\FormArtisan
167
+	 * @return FormArtisan
168 168
 	 */
169 169
 	public function validator() {
170 170
 		$this->validator = new Validator();
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use WFV\Collection\ErrorCollection;
9 9
 use WFV\Collection\InputCollection;
10 10
 use WFV\Collection\RuleCollection;
11
-
12 11
 use WFV\FormComposite;
13 12
 use WFV\Validators;
14 13
 use WFV\Validator;
Please login to merge, or discard this patch.
src/Collection/RuleCollection.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 	 * @since 0.10.0
41 41
 	 *
42 42
 	 * @param string $rule
43
-	 * @return bool
43
+	 * @return boolean|null
44 44
 	 */
45 45
 	public function is_custom( $rule ) {
46 46
 		// WIP - needs adjusting to new rule string format
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 	 * @access protected
57 57
 	 *
58 58
 	 * @param string $rule
59
-	 * @return bool
59
+	 * @return string
60 60
 	 */
61 61
 	protected function extract_name( $rule ) {
62 62
 		return strstr( $rule, ':', true );
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 	 * @access protected
70 70
 	 *
71 71
 	 * @param string $rule
72
-	 * @return bool
72
+	 * @return string
73 73
 	 */
74 74
 	protected function extract_params( $rule ) {
75 75
 		return ltrim( strstr($rule, ':'), ':');
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 	 * @access protected
83 83
 	 *
84 84
 	 * @param string $rule
85
-	 * @return bool
85
+	 * @return integer
86 86
 	 */
87 87
 	protected function has_parameters( $rule ) {
88 88
 		return strpos( $rule, ':' );
Please login to merge, or discard this patch.
src/FormComposite.php 2 patches
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -177,6 +177,8 @@
 block discarded – undo
177 177
 	 * @param string $response
178 178
 	 * @param string (optional) $field
179 179
 	 * @param string (optional) $value
180
+	 * @param string $field
181
+	 * @param string $value
180 182
 	 * @return string|null
181 183
 	 */
182 184
 	protected function string_or_null( $response, $field = null, $value = null ) {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use WFV\Abstraction\Composable;
6 6
 use WFV\Contract\ArtisanInterface;
7
-use WFV\Contract\ValidateInterface;
8 7
 
9 8
 /**
10 9
  * Form Composition
Please login to merge, or discard this patch.
src/Validators/AbstractValidator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,6 @@  discard block
 block discarded – undo
123 123
 	 *
124 124
 	 * @since 0.11.0
125 125
 	 *
126
-	 * @param string|array $input
127 126
 	 * @return bool
128 127
 	 */
129 128
 	public function validate( $value ) {
@@ -137,6 +136,7 @@  discard block
 block discarded – undo
137 136
 	 * @since 0.11.0
138 137
 	 *
139 138
 	 * @param
139
+	 * @param boolean $message
140 140
 	 */
141 141
 	protected function set_message( $message ) {
142 142
 		$this->template['message'] = $message;
Please login to merge, or discard this patch.