original_string: protected function configureCachet(array $config = [])
      {
          $config = [];
          if ($this->confirm('Do you wish to use Cachet Beacon?')) {
              $config['CACHET_BEACON'] = 'true';
          }
  
          if ($this->confirm('Do you wish to use Emoji? This requires a GitHub oAuth Token!')) {
              $config['GITHUB_TOKEN'] = $this->ask('Please enter your GitHub oAuth Token');
              $config['CACHET_EMOJI'] = 'true';
          }
  
          foreach ($config as $setting => $value) {
              $this->writeEnv($setting, $value);
          }
      }
code: protected function configureCachet(array $config = [])
      {
          $config = [];
          if ($this->confirm('Do you wish to use Cachet Beacon?')) {
              $config['CACHET_BEACON'] = 'true';
          }
  
          if ($this->confirm('Do you wish to use Emoji? This requires a GitHub oAuth Token!')) {
              $config['GITHUB_TOKEN'] = $this->ask('Please enter your GitHub oAuth Token');
              $config['CACHET_EMOJI'] = 'true';
          }
  
          foreach ($config as $setting => $value) {
              $this->writeEnv($setting, $value);
          }
      }
code_tokens: protected function configureCachet ( array $ config = [ ] ) { $ config = [ ] ; if ( $ this -> confirm ( 'Do you wish to use Cachet Beacon?' ) ) { $ config [ 'CACHET_BEACON' ] = 'true' ; } if ( $ this -> confirm ( 'Do you wish to use Emoji? This requires a GitHub oAuth Token!' ) ) { $ config [ 'GITHUB_TOKEN' ] = $ this -> ask ( 'Please enter your GitHub oAuth Token' ) ; $ config [ 'CACHET_EMOJI' ] = 'true' ; } foreach ( $ config as $ setting => $ value ) { $ this -> writeEnv ( $ setting , $ value ) ; } }
docstring: Configure Cachet.
  
  @param array $config
  
  @return void
docstring_tokens: Configure Cachet .