original_string: public function activate(Composer $composer, IOInterface $io, $pluginName)
      {
          $plugin = $this->prepare(__FUNCTION__, $composer, $io, $pluginName);
          
          if ($plugin) {
              $result = $this->wp(function () use ($plugin) {
                  wp_cache_set('plugins', [], 'plugins');
                  
                  return activate_plugin($plugin);
              });
              
              $this->succeeded(__FUNCTION__, $pluginName, $result === null);
          }
      }
code: public function activate(Composer $composer, IOInterface $io, $pluginName)
      {
          $plugin = $this->prepare(__FUNCTION__, $composer, $io, $pluginName);
          
          if ($plugin) {
              $result = $this->wp(function () use ($plugin) {
                  wp_cache_set('plugins', [], 'plugins');
                  
                  return activate_plugin($plugin);
              });
              
              $this->succeeded(__FUNCTION__, $pluginName, $result === null);
          }
      }
code_tokens: public function activate ( Composer $ composer , IOInterface $ io , $ pluginName ) { $ plugin = $ this -> prepare ( __FUNCTION__ , $ composer , $ io , $ pluginName ) ; if ( $ plugin ) { $ result = $ this -> wp ( function ( ) use ( $ plugin ) { wp_cache_set ( 'plugins' , [ ] , 'plugins' ) ; return activate_plugin ( $ plugin ) ; } ) ; $ this -> succeeded ( __FUNCTION__ , $ pluginName , $ result === null ) ; } }
docstring: Activate a plugin.
  
  @param  \Composer\Composer  $composer
  @param  \Composer\IO\IOInterface  $io
  @param  string  $plugin
  @return void
docstring_tokens: Activate a plugin .