original_string: public static function getAdapter($adapter)
      {
          $config = Config::get('cache');
  
          if ($config && $adapter && isset($config['enabled']) && $config['enabled']) {
              if (!isset($config['pools'][$adapter])) {
                  throw new ComponentException("Class `Proxy\\Cache` required configuration for `$adapter` adapter");
              }
              if (!isset(static::$pools[$adapter])) {
                  static::$pools[$adapter] = $config['pools'][$adapter]();
              }
              return static::$pools[$adapter];
          }
          return false;
      }
code: public static function getAdapter($adapter)
      {
          $config = Config::get('cache');
  
          if ($config && $adapter && isset($config['enabled']) && $config['enabled']) {
              if (!isset($config['pools'][$adapter])) {
                  throw new ComponentException("Class `Proxy\\Cache` required configuration for `$adapter` adapter");
              }
              if (!isset(static::$pools[$adapter])) {
                  static::$pools[$adapter] = $config['pools'][$adapter]();
              }
              return static::$pools[$adapter];
          }
          return false;
      }
code_tokens: public static function getAdapter ( $ adapter ) { $ config = Config :: get ( 'cache' ) ; if ( $ config && $ adapter && isset ( $ config [ 'enabled' ] ) && $ config [ 'enabled' ] ) { if ( ! isset ( $ config [ 'pools' ] [ $ adapter ] ) ) { throw new ComponentException ( "Class `Proxy\\Cache` required configuration for `$adapter` adapter" ) ; } if ( ! isset ( static :: $ pools [ $ adapter ] ) ) { static :: $ pools [ $ adapter ] = $ config [ 'pools' ] [ $ adapter ] ( ) ; } return static :: $ pools [ $ adapter ] ; } return false ; }
docstring: Get Cache Adapter
  
  @param  string $adapter
  
  @return Instance|false
  @throws ComponentException
docstring_tokens: Get Cache Adapter