explainStandard() public method

Prints a report showing the sniffs contained in a standard.
public explainStandard ( string $standard ) : void
$standard string The standard to validate.
return void
 /**
  * List all available standards
  *
  * @return void
  */
 public function standards()
 {
     $this->out('Current standard: ' . $this->standard, 2);
     $standards = $this->_standards();
     $this->out('The installed coding standards are:');
     $this->out(implode(', ', $standards));
     $standard = $this->standard;
     if (!empty($this->args[0])) {
         $standard = $this->args[0];
     }
     if (!in_array($standard, $standards)) {
         $this->error('Invalid standard');
     }
     $phpcs = new PHP_CodeSniffer_CLI();
     $phpcs->explainStandard($standard);
 }