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/clone/wp-conte.../plugins/wordfenc.../lib
File: wfScanFile.php
<?php
[0] Fix | Delete
[1] Fix | Delete
require_once __DIR__ . '/wfFileUtils.php';
[2] Fix | Delete
require_once __DIR__ . '/wfScanFileProperties.php';
[3] Fix | Delete
[4] Fix | Delete
class wfScanFile {
[5] Fix | Delete
[6] Fix | Delete
private $realPath = null;
[7] Fix | Delete
private $wordpressPath = null;
[8] Fix | Delete
[9] Fix | Delete
public function __construct($realPath, $wordpressPath) {
[10] Fix | Delete
$this->realPath = $realPath;
[11] Fix | Delete
$this->wordpressPath = $wordpressPath;
[12] Fix | Delete
}
[13] Fix | Delete
[14] Fix | Delete
public function getRealPath() {
[15] Fix | Delete
return $this->realPath;
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
public function getWordpressPath() {
[19] Fix | Delete
return $this->wordpressPath;
[20] Fix | Delete
}
[21] Fix | Delete
[22] Fix | Delete
public function getDisplayPath() {
[23] Fix | Delete
if (wfFileUtils::matchPaths($this->realPath, $this->wordpressPath)) {
[24] Fix | Delete
return '~/' . $this->getWordpressPath();
[25] Fix | Delete
}
[26] Fix | Delete
return $this->realPath;
[27] Fix | Delete
}
[28] Fix | Delete
[29] Fix | Delete
public function createChild($childPath) {
[30] Fix | Delete
return new self(
[31] Fix | Delete
wfFileUtils::realPath(wfFileUtils::joinPaths($this->realPath, $childPath)),
[32] Fix | Delete
wfFileUtils::joinPaths($this->wordpressPath, $childPath)
[33] Fix | Delete
);
[34] Fix | Delete
}
[35] Fix | Delete
[36] Fix | Delete
public function __toString() {
[37] Fix | Delete
return $this->getRealPath();
[38] Fix | Delete
}
[39] Fix | Delete
[40] Fix | Delete
public function initializeProperties() {
[41] Fix | Delete
return new wfScanFileProperties($this->realPath, $this->wordpressPath);
[42] Fix | Delete
}
[43] Fix | Delete
[44] Fix | Delete
}
[45] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function