Skip to content

Commit 53b0728

Browse files
committed
lint fixes
1 parent 25ceabc commit 53b0728

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

includes/RestApi/SiteGenController.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function sitegen_meta_args() {
116116
'required' => true,
117117
'type' => 'string',
118118
),
119-
'locale' => array(
119+
'locale' => array(
120120
'required' => true,
121121
'type' => 'string',
122122
),
@@ -139,7 +139,7 @@ public function get_homepages_args() {
139139
'type' => 'string',
140140
'sanitize_callback' => 'sanitize_text_field',
141141
),
142-
'locale' => array(
142+
'locale' => array(
143143
'required' => true,
144144
'type' => 'string',
145145
),
@@ -215,9 +215,11 @@ public function generate_sitegen_meta( \WP_REST_Request $request ) {
215215
$locale = $request->get_param( 'locale' );
216216
$skip_cache = $request->get_param( 'skip_cache' );
217217

218-
// TODO Implement the main function and do computations if required.
219218
return SiteGenService::instantiate_site_meta(
220-
$site_info, $identifier, $locale, $skip_cache
219+
$site_info,
220+
$identifier,
221+
$locale,
222+
$skip_cache
221223
);
222224
}
223225

@@ -316,7 +318,6 @@ public function publish_sitemap_pages( \WP_REST_Request $request ) {
316318
$locale = $request->get_param( 'locale' );
317319
$skip_cache = $request->get_param( 'skip_cache' );
318320

319-
320321
$target_audience = SiteGenService::instantiate_site_meta( $site_info, 'target_audience', $locale, $skip_cache );
321322
if ( is_wp_error( $target_audience ) ) {
322323
return $target_audience;

0 commit comments

Comments
 (0)