Skip to content

Commit

Permalink
Fix code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-vlasenko committed Nov 3, 2021
1 parent 0f8688e commit 566c159
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
*/
Expand Down
4 changes: 2 additions & 2 deletions phpunit/navigation-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
}
}

0 comments on commit 566c159

Please sign in to comment.