Skip to content

Commit

Permalink
Merge pull request #218 from Yoast/JRF/docs-add-return-void
Browse files Browse the repository at this point in the history
Docs: add missing return type void annotations
jrfnl authored Dec 16, 2023
2 parents 2a613eb + b1dc0e0 commit b4aaf93
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/indexing-reason-integration.php
Original file line number Diff line number Diff line change
@@ -9,6 +9,8 @@ class Indexing_Reason_Integration implements Integration {

/**
* Registers the hook to set the indexing reason.
*
* @return void
*/
public function add_hooks() {
\add_filter( 'wpseo_indexables_indexation_alert', [ $this, 'set_indexing_alert' ], 10, 2 );
2 changes: 2 additions & 0 deletions src/query-monitor-output.php
Original file line number Diff line number Diff line change
@@ -29,6 +29,8 @@ public function name() {

/**
* Renders the Query Monitor output integration.
*
* @return void
*/
public function output() {
$this->before_non_tabular_output( 'qm-yoast-seo', $this->name() );
2 changes: 2 additions & 0 deletions src/query-monitor.php
Original file line number Diff line number Diff line change
@@ -9,6 +9,8 @@ class Query_Monitor implements Integration {

/**
* Registers our menu item and output function.
*
* @return void
*/
public function add_hooks() {
\add_filter( 'qm/output/panel_menus', [ $this, 'add_menu_panel' ], 80 );
2 changes: 2 additions & 0 deletions src/schema.php
Original file line number Diff line number Diff line change
@@ -27,6 +27,8 @@ public function __construct( Option $option ) {

/**
* Adds the required hooks for this class.
*
* @return void
*/
public function add_hooks() {
if ( $this->option->get( 'replace_schema_domain' ) === true ) {
2 changes: 2 additions & 0 deletions src/xml-sitemaps.php
Original file line number Diff line number Diff line change
@@ -25,6 +25,8 @@ public function __construct( Option $option ) {

/**
* Adds the required hooks for this class.
*
* @return void
*/
public function add_hooks() {
if ( $this->option->get( 'disable_xml_sitemap_cache' ) === true ) {

0 comments on commit b4aaf93

Please sign in to comment.