public static function setConfigData($key, $value, $temp = false)
    {
        if (method_exists('\PHP_CodeSniffer\Config', 'setConfigData')) {
            // PHPCS 3.x.
            \PHP_CodeSniffer\Config::setConfigData($key, $value, $temp);
        } else {
            // PHPCS 2.x.
            \PHP_CodeSniffer::setConfigData($key, $value, $temp);
        }
    }
public static function setConfigData($key, $value, $temp = false)
    {
        if (method_exists('\PHP_CodeSniffer\Config', 'setConfigData')) {
            // PHPCS 3.x.
            \PHP_CodeSniffer\Config::setConfigData($key, $value, $temp);
        } else {
            // PHPCS 2.x.
            \PHP_CodeSniffer::setConfigData($key, $value, $temp);
        }
    }
public static function setConfigData ( $ key , $ value , $ temp = false ) { if ( method_exists ( '\PHP_CodeSniffer\Config' , 'setConfigData' ) ) { // PHPCS 3.x. \ PHP_CodeSniffer \ Config :: setConfigData ( $ key , $ value , $ temp ) ; } else { // PHPCS 2.x. \ PHP_CodeSniffer :: setConfigData ( $ key , $ value , $ temp ) ; } }
Pass config data to PHPCS.

PHPCS cross-version compatibility helper.

@param string      $key   The name of the config value.
@param string|null $value The value to set. If null, the config entry
is deleted, reverting it to the default value.
@param boolean     $temp  Set this config data temporarily for this script run.
This will not write the config data to the config file.

@return void
Pass config data to PHPCS .