| @@ -89,9 +89,9 @@ | ||
| 89 | 89 | 'main_schema_id' => $context->main_schema_id, |
| 90 | 90 | 'author_id' => $this->id_helper->get_user_schema_id( $context->indexable->author_id, $context ), |
| 91 | 91 | 'person_id' => $context->site_url . Schema_IDs::PERSON_HASH, |
| 92 | 92 | 'primary_image_id' => $context->canonical . Schema_IDs::PRIMARY_IMAGE_HASH, |
| 93 | - 'webpage_id' => $context->canonical . Schema_IDs::WEBPAGE_HASH, | |
| 93 | + 'webpage_id' => $context->main_schema_id, | |
| 94 | 94 | 'website_id' => $context->site_url . Schema_IDs::WEBSITE_HASH, |
| 95 | 95 | 'organization_id' => $context->site_url . Schema_IDs::ORGANIZATION_HASH, |
| 96 | 96 | ]; |
| 97 | 97 | |
| @@ -109,13 +109,15 @@ | ||
| 109 | 109 | * Registers a replace var and its value. |
| 110 | 110 | * |
| 111 | 111 | * @param string $variable The replace variable. |
| 112 | 112 | * @param string $value The value that the variable should be replaced with. |
| 113 | + * | |
| 114 | + * @return void | |
| 113 | 115 | */ |
| 114 | 116 | protected function register_replacement( $variable, $value ) { |
| 115 | 117 | $this->replace_vars->safe_register_replacement( |
| 116 | 118 | $variable, |
| 117 | - $this->get_identity_function( $value ) | |
| 119 | + $this->get_identity_function( $value ), | |
| 118 | 120 | ); |
| 119 | 121 | } |
| 120 | 122 | |
| 121 | 123 | /** |
| @@ -125,9 +127,9 @@ | ||
| 125 | 127 | * |
| 126 | 128 | * @return Closure A function that returns the given value. |
| 127 | 129 | */ |
| 128 | 130 | protected function get_identity_function( $value ) { |
| 129 | - return static function() use ( $value ) { | |
| 131 | + return static function () use ( $value ) { | |
| 130 | 132 | return $value; |
| 131 | 133 | }; |
| 132 | 134 | } |
| 133 | 135 | } |