From 8d5139de3f1da2eec6b6923eabefa6450cb977cd Mon Sep 17 00:00:00 2001 From: Ari Stathopoulos Date: Wed, 9 Jun 2021 11:49:58 +0300 Subject: [PATCH] Add phpcs comments (#32513) --- lib/class-wp-rest-block-editor-settings-controller.php | 2 +- lib/class-wp-rest-pattern-directory-controller.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/class-wp-rest-block-editor-settings-controller.php b/lib/class-wp-rest-block-editor-settings-controller.php index dcbdbfe8de9a32..2e10b78566d528 100644 --- a/lib/class-wp-rest-block-editor-settings-controller.php +++ b/lib/class-wp-rest-block-editor-settings-controller.php @@ -74,7 +74,7 @@ public function get_items_permissions_check( $request ) {// phpcs:ignore Variabl * * @return WP_Error|WP_REST_Response Response object on success, or WP_Error object on failure. */ - public function get_items( $request ) { + public function get_items( $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis $editor_context = new WP_Block_Editor_Context(); $settings = gutenberg_get_block_editor_settings( array(), $editor_context ); diff --git a/lib/class-wp-rest-pattern-directory-controller.php b/lib/class-wp-rest-pattern-directory-controller.php index 3e8bb20f457944..2362aa1a21a0c3 100644 --- a/lib/class-wp-rest-pattern-directory-controller.php +++ b/lib/class-wp-rest-pattern-directory-controller.php @@ -57,7 +57,7 @@ public function register_routes() { * * @return WP_Error|bool True if the request has permission, WP_Error object otherwise. */ - public function get_items_permissions_check( $request ) { + public function get_items_permissions_check( $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis if ( current_user_can( 'edit_posts' ) ) { return true; }