@@ -70,15 +70,15 @@ discard block |
||
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 |
||
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 |
||
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 | } |