Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wordpres.../src/editors/applicat.../integrat...
File: integration-information-repository.php
<?php
[0] Fix | Delete
[1] Fix | Delete
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
[2] Fix | Delete
namespace Yoast\WP\SEO\Editors\Application\Integrations;
[3] Fix | Delete
[4] Fix | Delete
use Yoast\WP\SEO\Editors\Domain\Integrations\Integration_Data_Provider_Interface;
[5] Fix | Delete
use Yoast\WP\SEO\Editors\Framework\Analysis_Feature_Interface;
[6] Fix | Delete
[7] Fix | Delete
/**
[8] Fix | Delete
* The repository to get all enabled integrations.
[9] Fix | Delete
*
[10] Fix | Delete
* @makePublic
[11] Fix | Delete
*/
[12] Fix | Delete
class Integration_Information_Repository {
[13] Fix | Delete
[14] Fix | Delete
/**
[15] Fix | Delete
* All plugin integrations.
[16] Fix | Delete
*
[17] Fix | Delete
* @var Analysis_Feature_Interface[] $plugin_integrations
[18] Fix | Delete
*/
[19] Fix | Delete
private $plugin_integrations;
[20] Fix | Delete
[21] Fix | Delete
/**
[22] Fix | Delete
* The constructor.
[23] Fix | Delete
*
[24] Fix | Delete
* @param Integration_Data_Provider_Interface ...$plugin_integrations All integrations.
[25] Fix | Delete
*/
[26] Fix | Delete
public function __construct( Integration_Data_Provider_Interface ...$plugin_integrations ) {
[27] Fix | Delete
$this->plugin_integrations = $plugin_integrations;
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
/**
[31] Fix | Delete
* Returns the analysis list.
[32] Fix | Delete
*
[33] Fix | Delete
* @return array<array<string,bool>> The parsed list.
[34] Fix | Delete
*/
[35] Fix | Delete
public function get_integration_information(): array {
[36] Fix | Delete
$array = [];
[37] Fix | Delete
foreach ( $this->plugin_integrations as $feature ) {
[38] Fix | Delete
$array = \array_merge( $array, $feature->to_legacy_array() );
[39] Fix | Delete
}
[40] Fix | Delete
return $array;
[41] Fix | Delete
}
[42] Fix | Delete
}
[43] Fix | Delete
[44] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function