Skip to content

Commit

Permalink
Add phpcs comments (#32513)
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath authored Jun 9, 2021
1 parent a9aeebe commit 8d5139d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/class-wp-rest-block-editor-settings-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down
2 changes: 1 addition & 1 deletion lib/class-wp-rest-pattern-directory-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8d5139d

Please sign in to comment.