Skip to content

Commit 9c0ffca

Browse files
committed
making the class PHP 7.3 compatible
1 parent 8fbaa2d commit 9c0ffca

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

includes/Services/SiteGenService.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct() {
4848
* @param string $selected_sitegen_homepage The selected sitegen homepage to publish.
4949
* @return int|\WP_Error
5050
*/
51-
public function publish_homepage( string $selected_sitegen_homepage ): int|\WP_Error {
51+
public function publish_homepage( string $selected_sitegen_homepage ) {
5252
// Validate we have the selected homepage.
5353
if (
5454
! $this->sitegen_data ||
@@ -111,7 +111,7 @@ public function publish_homepage( string $selected_sitegen_homepage ): int|\WP_E
111111
* @param string $slug The slug of the page to get the title for.
112112
* @return string|false The page title, or false if not found.
113113
*/
114-
public function get_sitemap_page_title( string $slug ): string|false {
114+
public function get_sitemap_page_title( string $slug ) {
115115
$prompt = $this->get_prompt();
116116
$locale = $this->get_locale();
117117
$site_type = $this->get_site_type();
@@ -167,7 +167,7 @@ public function add_page_to_navigation( int $post_id, string $page_title, string
167167
*
168168
* @return string|false
169169
*/
170-
public function get_prompt(): string|false {
170+
public function get_prompt() {
171171
return ! empty( $this->input_data['prompt'] ) ? $this->input_data['prompt'] : false;
172172
}
173173

@@ -176,7 +176,7 @@ public function get_prompt(): string|false {
176176
*
177177
* @return string
178178
*/
179-
public function get_site_type(): string {
179+
public function get_site_type() {
180180
return ! empty( $this->input_data['siteType'] ) ? $this->input_data['siteType'] : 'business';
181181
}
182182

@@ -185,7 +185,7 @@ public function get_site_type(): string {
185185
*
186186
* @return string
187187
*/
188-
public function get_locale(): string {
188+
public function get_locale() {
189189
return ! empty( $this->input_data['locale'] ) ? $this->input_data['locale'] : 'en_US';
190190
}
191191

0 commit comments

Comments
 (0)