From 566c1596afab40ad08a902affcfc5a3c33fd05fd Mon Sep 17 00:00:00 2001 From: Anton Vlasenko Date: Wed, 3 Nov 2021 10:47:59 +0100 Subject: [PATCH] Fix code style. --- lib/navigation.php | 6 +++--- phpunit/navigation-test.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/navigation.php b/lib/navigation.php index e4aac676428d04..3f63e6def6f3da 100644 --- a/lib/navigation.php +++ b/lib/navigation.php @@ -458,7 +458,7 @@ function gutenberg_disable_block_editor_for_navigation_post_type( $value, $post_ * This function disables ability to edit wp_navigation posts via the UI. * This is because the post editor doesn't correctly work with wp_navigation type posts. * - * @param string $url Url of the post. + * @param string $url Url of the post. * @param integer $post_id Post ID. * * @return string @@ -478,8 +478,8 @@ function gutenberg_disable_edit_links_for_navigation_post_type( $url, $post_id ) * This function disables "Edit" row action for wp_navigation type posts. * This is because the post editor doesn't correctly work with wp_navigation type posts. * - * @param array $actions A list of supported row actions for the post. - * @param $post WP_Post object. + * @param array $actions A list of supported row actions for the post. + * @param WP_Post $post An instance of WP_Post class. * * @return array */ diff --git a/phpunit/navigation-test.php b/phpunit/navigation-test.php index 4e23a6e3f4170d..95cf8e4be05d62 100644 --- a/phpunit/navigation-test.php +++ b/phpunit/navigation-test.php @@ -60,10 +60,10 @@ private function create_post( $type ) { } private function create_sample_post() { - return $this->create_post( 'sample_post_type' ); + return $this->create_post( 'sample_post_type' ); } private function create_navigation_post() { - return $this->create_post( 'wp_navigation' ); + return $this->create_post( 'wp_navigation' ); } }