Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Notifysend.php

function Notifysend::__construct

Load configuration data.

File

vendor/squizlabs/php_codesniffer/src/Reports/Notifysend.php, line 58

Class

Notifysend

Namespace

PHP_CodeSniffer\Reports

Code

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'));
}
RSS feed
Powered by Drupal