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/smart-sl.../Nextend/Framewor.../Asset/Image
File: Asset.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Nextend\Framework\Asset\Image;
[2] Fix | Delete
[3] Fix | Delete
class Asset {
[4] Fix | Delete
[5] Fix | Delete
protected $images = array();
[6] Fix | Delete
[7] Fix | Delete
public function add($images) {
[8] Fix | Delete
if (!is_array($images)) {
[9] Fix | Delete
$images = array($images);
[10] Fix | Delete
}
[11] Fix | Delete
[12] Fix | Delete
$this->images = array_unique(array_merge($this->images, $images));
[13] Fix | Delete
}
[14] Fix | Delete
[15] Fix | Delete
public function get() {
[16] Fix | Delete
return $this->images;
[17] Fix | Delete
}
[18] Fix | Delete
[19] Fix | Delete
public function match($url) {
[20] Fix | Delete
return in_array($url, $this->images);
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
public function serialize() {
[24] Fix | Delete
return array(
[25] Fix | Delete
'images' => $this->images
[26] Fix | Delete
);
[27] Fix | Delete
}
[28] Fix | Delete
[29] Fix | Delete
public function unSerialize($array) {
[30] Fix | Delete
if (!empty($array['images'])) {
[31] Fix | Delete
$this->add($array['images']);
[32] Fix | Delete
}
[33] Fix | Delete
}
[34] Fix | Delete
}
[35] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function