original_string: protected function configureRedis()
      {
          $config = [
              'REDIS_HOST'     => null,
              'REDIS_DATABASE' => null,
              'REDIS_PORT'     => null,
          ];
  
          $config['REDIS_HOST'] = $this->ask('What is the host of your redis server?');
          $config['REDIS_DATABASE'] = $this->ask('What is the name of the database that Cachet should use?');
          $config['REDIS_PORT'] = $this->ask('What port should Cachet use?', 6379);
  
          foreach ($config as $setting => $value) {
              $this->writeEnv($setting, $value);
          }
      }
code: protected function configureRedis()
      {
          $config = [
              'REDIS_HOST'     => null,
              'REDIS_DATABASE' => null,
              'REDIS_PORT'     => null,
          ];
  
          $config['REDIS_HOST'] = $this->ask('What is the host of your redis server?');
          $config['REDIS_DATABASE'] = $this->ask('What is the name of the database that Cachet should use?');
          $config['REDIS_PORT'] = $this->ask('What port should Cachet use?', 6379);
  
          foreach ($config as $setting => $value) {
              $this->writeEnv($setting, $value);
          }
      }
code_tokens: protected function configureRedis ( ) { $ config = [ 'REDIS_HOST' => null , 'REDIS_DATABASE' => null , 'REDIS_PORT' => null , ] ; $ config [ 'REDIS_HOST' ] = $ this -> ask ( 'What is the host of your redis server?' ) ; $ config [ 'REDIS_DATABASE' ] = $ this -> ask ( 'What is the name of the database that Cachet should use?' ) ; $ config [ 'REDIS_PORT' ] = $ this -> ask ( 'What port should Cachet use?' , 6379 ) ; foreach ( $ config as $ setting => $ value ) { $ this -> writeEnv ( $ setting , $ value ) ; } }
docstring: Configure the redis connection.
  
  @return void
docstring_tokens: Configure the redis connection .