@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | * |
| 104 | 104 | * @param object $attachment The attachment object. |
| 105 | 105 | * |
| 106 | - * @return false|int |
|
| 106 | + * @return boolean |
|
| 107 | 107 | */ |
| 108 | 108 | public function is_video( $attachment ) { |
| 109 | 109 | return isset( $attachment->post_mime_type ) && wp_startswith( $attachment->post_mime_type, 'video/' ); |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | * @param mixed $object Response from the attachment endpoint. |
| 147 | 147 | * @param WP_REST_Request $request Request to the attachment endpoint. |
| 148 | 148 | * |
| 149 | - * @return true |
|
| 149 | + * @return boolean |
|
| 150 | 150 | */ |
| 151 | 151 | public function get_permission_check( $object, $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable |
| 152 | 152 | return true; |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | * @param WP_Post $object The attachment object. |
| 161 | 161 | * @param WP_REST_Request $request Request to the attachment endpoint. |
| 162 | 162 | * |
| 163 | - * @return true |
|
| 163 | + * @return boolean |
|
| 164 | 164 | */ |
| 165 | 165 | public function update_permission_check( $value, $object, $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable |
| 166 | 166 | return true; |