{"size": 890, "ext": "js", "max_stars_repo_path": "src/formatter/NullOutputFormatter.js", "max_stars_repo_name": "jeroendelau/node-symfony-console", "max_stars_repo_stars_event_min_datetime": "2020-08-06T19:23:51.000Z", "max_stars_repo_stars_event_max_datetime": "2020-10-29T14:29:38.000Z", "max_issues_repo_path": "src/formatter/NullOutputFormatter.js", "max_issues_repo_name": "jeroendelau/node-symfony-console", "max_issues_repo_issues_event_min_datetime": "2021-05-11T02:56:07.000Z", "max_issues_repo_issues_event_max_datetime": "2021-06-10T17:32:35.000Z", "max_forks_repo_path": "src/formatter/NullOutputFormatter.js", "max_forks_repo_name": "jeroendelau/node-symfony-console", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 18.9361702128, "max_line_length": 242, "alphanum_fraction": 0.6842696629}
const {escapeshellarg, sprintf, isset, is_string, is_array, is_int, in_array, to_array, array_key_exists, count, array_shift, array_unshift, substr, strpos, strlen, str_replace, preg_match, implode, stripcslashes} = require('../PhpPolyfill');
const forEach = require('lodash/forEach');


const NullOutputFormatterStyle = require('./NullOutputFormatterStyle');

class NullOutputFormatter
{
  format(message)
  {
    // do nothing
  }

  getStyle(name)
  {
    if (this.style)
    {
      return this.style;
    }
    // to comply with the interface we must return a OutputFormatterStyleInterface
    return this.style = new NullOutputFormatterStyle();
  }

  hasStyle(name)
  {
    return false;
  }

  isDecorated()
  {
    return false;
  }

  setDecorated(decorated)
  {
    // do nothing
  }

  setStyle(name, style)
  {
    // do nothing
  }

}

module.exports = NullOutputFormatter;
  