function Notifysend::__construct
Load configuration data.
File
-
vendor/
squizlabs/ php_codesniffer/ src/ Reports/ Notifysend.php, line 58
Class
Namespace
PHP_CodeSniffer\ReportsCode
public function __construct() {
$path = Config::getExecutablePath('notifysend');
if ($path !== null) {
$this->path = Common::escapeshellcmd($path);
}
$timeout = Config::getConfigData('notifysend_timeout');
if ($timeout !== null) {
$this->timeout = (int) $timeout;
}
$showOk = Config::getConfigData('notifysend_showok');
if ($showOk !== null) {
$this->showOk = (bool) $showOk;
}
$this->version = str_replace('notify-send ', '', exec($this->path . ' --version'));
}