original_string: public static function createRedisByConfig(array $config) {
          $Redis = new Connection();
          $Redis->setHost(@$config['host'])
              ->setPort(@$config['port']);
          (isset($config['persistent']))      && $Redis->setPersistent($config['persistent']);
          (isset($config['connect_timeout'])) && $Redis->setConnectTimeout($config['connect_timeout']);
          (isset($config['connect_tries']))   && $Redis->setConnectTries($config['connect_tries']);
          return $Redis;
      }
code: public static function createRedisByConfig(array $config) {
          $Redis = new Connection();
          $Redis->setHost(@$config['host'])
              ->setPort(@$config['port']);
          (isset($config['persistent']))      && $Redis->setPersistent($config['persistent']);
          (isset($config['connect_timeout'])) && $Redis->setConnectTimeout($config['connect_timeout']);
          (isset($config['connect_tries']))   && $Redis->setConnectTries($config['connect_tries']);
          return $Redis;
      }
code_tokens: public static function createRedisByConfig ( array $ config ) { $ Redis = new Connection ( ) ; $ Redis -> setHost ( @ $ config [ 'host' ] ) -> setPort ( @ $ config [ 'port' ] ) ; ( isset ( $ config [ 'persistent' ] ) ) && $ Redis -> setPersistent ( $ config [ 'persistent' ] ) ; ( isset ( $ config [ 'connect_timeout' ] ) ) && $ Redis -> setConnectTimeout ( $ config [ 'connect_timeout' ] ) ; ( isset ( $ config [ 'connect_tries' ] ) ) && $ Redis -> setConnectTries ( $ config [ 'connect_tries' ] ) ; return $ Redis ; }
docstring: Create PhpRedis instance by array config
  @param array $config array configuration
  @throws InvalidArgumentException
docstring_tokens: Create PhpRedis instance by array config