Skip to content

Commit

Permalink
Fix phpcs issues
Browse files Browse the repository at this point in the history
  • Loading branch information
delawski committed Sep 27, 2021
1 parent e97abb3 commit e746e8f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions src/Admin/OnboardingWizardSubmenuPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,12 @@ public function enqueue_assets( $hook_suffix ) {
$is_reader_theme = $this->reader_themes->theme_data_exists( get_stylesheet() );

$amp_settings_link = menu_page_url( AMP_Options_Manager::OPTION_NAME, false );
$amp_validated_urls_link = admin_url( add_query_arg(
[ 'post_type' => AMP_Validated_URL_Post_Type::POST_TYPE_SLUG ],
'edit.php'
) );
$amp_validated_urls_link = admin_url(
add_query_arg(
[ 'post_type' => AMP_Validated_URL_Post_Type::POST_TYPE_SLUG ],
'edit.php'
)
);

$setup_wizard_data = [
'AMP_OPTIONS_KEY' => AMP_Options_Manager::OPTION_NAME,
Expand Down
6 changes: 3 additions & 3 deletions src/Validation/ScannableURLsRestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,20 +114,20 @@ public function get_item_schema() {
'type' => 'object',
'properties' => [
'url' => [
'description' => __( 'Page URL.' ),
'description' => __( 'Page URL.', 'amp' ),
'type' => 'string',
'format' => 'uri',
'readonly' => true,
'context' => [ 'view' ],
],
'type' => [
'description' => __( 'Page type.' ),
'description' => __( 'Page type.', 'amp' ),
'type' => 'string',
'readonly' => true,
'context' => [ 'view' ],
],
'validate_url' => [
'description' => __( 'URL for accessing validation data for a given page.' ),
'description' => __( 'URL for accessing validation data for a given page.', 'amp' ),
'type' => 'string',
'format' => 'uri',
'readonly' => true,
Expand Down

0 comments on commit e746e8f

Please sign in to comment.