Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/ninja-fo.../includes/Telemetr...
File: MetricRepository.php
<?php
[0] Fix | Delete
[1] Fix | Delete
class NF_Telemetry_MetricRepository implements NF_Telemetry_RepositoryInterface
[2] Fix | Delete
{
[3] Fix | Delete
protected $option;
[4] Fix | Delete
[5] Fix | Delete
public function __construct( $option, $default = false, $autoload = true )
[6] Fix | Delete
{
[7] Fix | Delete
$this->option = $option;
[8] Fix | Delete
$this->default = $default;
[9] Fix | Delete
$this->autoload = $autoload;
[10] Fix | Delete
}
[11] Fix | Delete
[12] Fix | Delete
public function get()
[13] Fix | Delete
{
[14] Fix | Delete
return absint( get_option( $this->option, $this->default ) );
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
public function save( $new_value )
[18] Fix | Delete
{
[19] Fix | Delete
return update_option( $this->option, $new_value, $this->autoload );
[20] Fix | Delete
}
[21] Fix | Delete
}
[22] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function