File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/dashboard/infrastructure
endpoints/search-rankings Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 5
5
6
6
use Exception ;
7
7
use Yoast \WP \SEO \Dashboard \Domain \Endpoint \Endpoint_Interface ;
8
- use Yoast \WP \SEO \Dashboard \User_Interface \Scores \Abstract_Ranking_Route ;
9
- use Yoast \WP \SEO \Dashboard \User_Interface \Scores \Top_Page_Route ;
8
+ use Yoast \WP \SEO \Dashboard \User_Interface \Search_Rankings \Abstract_Ranking_Route ;
9
+ use Yoast \WP \SEO \Dashboard \User_Interface \Search_Rankings \Top_Page_Route ;
10
10
11
11
/**
12
12
* Represents the readability scores endpoint.
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ public function __construct() {
40
40
* @return ApiDataRow[]|WP_Error Data on success, or WP_Error on failure.
41
41
*/
42
42
public function get_data ( Request_Parameters $ parameters ) {
43
- $ data = [
43
+ $ api_parameters = [
44
44
'slug ' => 'search-console ' ,
45
45
'datapoint ' => 'searchanalytics ' ,
46
46
'startDate ' => $ parameters ->get_start_date (),
@@ -49,6 +49,6 @@ public function get_data( Request_Parameters $parameters ) {
49
49
'dimensions ' => $ parameters ->get_dimensions (),
50
50
];
51
51
52
- return self ::$ search_console_module ->get_data ( 'searchanalytics ' , $ data );
52
+ return self ::$ search_console_module ->get_data ( 'searchanalytics ' , $ api_parameters );
53
53
}
54
54
}
You can’t perform that action at this time.
0 commit comments