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

Breadcrumb

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

function Notifysend::notifyErrors

Tell the user that errors/warnings have been found.

Parameters

string $msg Message to display.:

Return value

void

1 call to Notifysend::notifyErrors()
Notifysend::generate in vendor/squizlabs/php_codesniffer/src/Reports/Notifysend.php
Generates a summary of errors and warnings for each file processed.

File

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

Class

Notifysend

Namespace

PHP_CodeSniffer\Reports

Code

protected function notifyErrors($msg) {
    $cmd = $this->getBasicCommand();
    $cmd .= ' -i error';
    $cmd .= ' "PHP CodeSniffer: Error"';
    $cmd .= ' ' . escapeshellarg(trim($msg));
    exec($cmd);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal