Skip to content

Commit

Permalink
fix coding standard warnings and error
Browse files Browse the repository at this point in the history
  • Loading branch information
rishishah-multidots committed Oct 16, 2024
1 parent ab1395c commit f9f24d9
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,12 @@ public function create_item_permissions_check( $request ) {

return true;
}

}

add_action('rest_api_init', function() {
$controller = new Gutenberg_REST_Comment_Controller_6_8();
$controller->register_routes();
});
add_action(
'rest_api_init',

Check failure on line 114 in lib/compat/wordpress-6.8/class-gutenberg-rest-comment-controller-6-8.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Tabs must be used to indent lines; spaces are not allowed
function() {

Check failure on line 115 in lib/compat/wordpress-6.8/class-gutenberg-rest-comment-controller-6-8.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Tabs must be used to indent lines; spaces are not allowed

Check failure on line 115 in lib/compat/wordpress-6.8/class-gutenberg-rest-comment-controller-6-8.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Expected 1 space after FUNCTION keyword; 0 found
$controller = new Gutenberg_REST_Comment_Controller_6_8();

Check failure on line 116 in lib/compat/wordpress-6.8/class-gutenberg-rest-comment-controller-6-8.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Tabs must be used to indent lines; spaces are not allowed
$controller->register_routes();

Check failure on line 117 in lib/compat/wordpress-6.8/class-gutenberg-rest-comment-controller-6-8.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Tabs must be used to indent lines; spaces are not allowed
}

Check failure on line 118 in lib/compat/wordpress-6.8/class-gutenberg-rest-comment-controller-6-8.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Tabs must be used to indent lines; spaces are not allowed
);

0 comments on commit f9f24d9

Please sign in to comment.