Passed
Push — master ( 8c5984...bd4e9d )
by Glynn
14:14 queued 11:36
created
src/Meta_Data.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -70,15 +70,15 @@  discard block
 block discarded – undo
70 70
 	protected $default = '';
71 71
 
72 72
 	/**
73
-	* The meta fields callbacks
74
-	*
75
-	* @var array{
76
-	*  sanitize: null|callable,
77
-	*  permissions: null|callable,
78
-	*  rest_view: null|callable(mixed[]): void,
79
-	*  rest_update: null|callable(mixed,\WP_Post|\WP_Term|\WP_User|\WP_Comment): void
80
-	* }
81
-	*/
73
+	 * The meta fields callbacks
74
+	 *
75
+	 * @var array{
76
+	 *  sanitize: null|callable,
77
+	 *  permissions: null|callable,
78
+	 *  rest_view: null|callable(mixed[]): void,
79
+	 *  rest_update: null|callable(mixed,\WP_Post|\WP_Term|\WP_User|\WP_Comment): void
80
+	 * }
81
+	 */
82 82
 	protected array $callbacks = array(
83 83
 		'sanitize'    => null,
84 84
 		'permissions' => null,
@@ -231,11 +231,11 @@  discard block
 block discarded – undo
231 231
 	}
232 232
 
233 233
 	/**
234
-	* Sets the GET callback for REST requests.
235
-	*
236
-	* @param callable|null $callback
237
-	* @return self
238
-	*/
234
+	 * Sets the GET callback for REST requests.
235
+	 *
236
+	 * @param callable|null $callback
237
+	 * @return self
238
+	 */
239 239
 	public function rest_view( ?callable $callback ): self {
240 240
 		$this->callbacks['rest_view'] = $callback;
241 241
 		return $this;
@@ -312,10 +312,10 @@  discard block
 block discarded – undo
312 312
 	}
313 313
 
314 314
 	/**
315
-	* Gets the GET callback for REST requests.
316
-	*
317
-	* @return null|callable(mixed[]): void
318
-	*/
315
+	 * Gets the GET callback for REST requests.
316
+	 *
317
+	 * @return null|callable(mixed[]): void
318
+	 */
319 319
 	public function get_rest_view(): ?callable {
320 320
 		return $this->callbacks['rest_view'];
321 321
 	}
Please login to merge, or discard this patch.
src/Registrar/Taxonomy_Registrar.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 	 */
54 54
 	public function register( Registerable $registerable ): void {
55 55
 		/**
56
- * @var Taxonomy $registerable, Validation call below catches no Post_Type Registerables
56
+		 * @var Taxonomy $registerable, Validation call below catches no Post_Type Registerables
57 57
 */
58 58
 
59 59
 		if ( ! $this->validator->validate( $registerable ) ) {
Please login to merge, or discard this patch.
src/Registrar/Additional_Meta_Data_Registrar.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
 		}
57 57
 
58 58
 		/**
59
- * @var Additional_Meta_Data $registerable, Validation call below catches no Additional_Meta_Data Registerables
59
+		 * @var Additional_Meta_Data $registerable, Validation call below catches no Additional_Meta_Data Registerables
60 60
 */
61 61
 		$meta_data = $this->filter_meta_data( $registerable->meta_data( array() ) );
62 62
 
Please login to merge, or discard this patch.
src/Registrar/Meta_Data_Registrar.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -129,11 +129,11 @@  discard block
 block discarded – undo
129 129
 	}
130 130
 
131 131
 	/**
132
-	* Registers a Meta Data object as defined REST field.
133
-	*
134
-	* @param \PinkCrab\Registerables\Meta_Data $meta
135
-	* @return void
136
-	*/
132
+	 * Registers a Meta Data object as defined REST field.
133
+	 *
134
+	 * @param \PinkCrab\Registerables\Meta_Data $meta
135
+	 * @return void
136
+	 */
137 137
 	public function register_meta_rest_field( Meta_Data $meta ) {
138 138
 		// Skip if not sub type defined for post or term.
139 139
 		if ( null === $meta->get_subtype() ) {
@@ -205,28 +205,28 @@  discard block
 block discarded – undo
205 205
 			switch ( $meta->get_meta_type() ) {
206 206
 				case 'post':
207 207
 					/**
208
- * @var \WP_Post $object_instance
208
+					 * @var \WP_Post $object_instance
209 209
 */
210 210
 					update_post_meta( $object_instance->ID, $meta->get_meta_key(), $value );
211 211
 					break;
212 212
 
213 213
 				case 'term':
214 214
 					/**
215
- * @var \WP_Term $object_instance
215
+					 * @var \WP_Term $object_instance
216 216
 */
217 217
 					update_term_meta( $object_instance->term_id, $meta->get_meta_key(), $value );
218 218
 					break;
219 219
 
220 220
 				case 'user':
221 221
 					/**
222
- * @var \WP_User $object_instance
222
+					 * @var \WP_User $object_instance
223 223
 */
224 224
 					update_user_meta( $object_instance->ID, $meta->get_meta_key(), $value );
225 225
 					break;
226 226
 
227 227
 				case 'comment':
228 228
 					/**
229
- * @var \WP_Comment $object_instance
229
+					 * @var \WP_Comment $object_instance
230 230
 */
231 231
 					update_comment_meta( (int) $object_instance->comment_ID, $meta->get_meta_key(), $value );
232 232
 					break;
Please login to merge, or discard this patch.
src/Registrar/Post_Type_Registrar.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 	 */
54 54
 	public function register( Registerable $registerable ): void {
55 55
 		/**
56
- * @var Post_Type $registerable, Validation call below catches no Post_Type Registerables
56
+		 * @var Post_Type $registerable, Validation call below catches no Post_Type Registerables
57 57
 */
58 58
 
59 59
 		if ( ! $this->validator->validate( $registerable ) ) {
Please login to merge, or discard this patch.