Completed
Push — update/add-media-state-tree ( 4efea0...515faf )
by
unknown
93:26 queued 83:55
created
wpcom-fields/class-wpcom-rest-api-v2-attachment-videopress-data.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.