original_string: protected static function initialise_cachestore_instances(array $stores, cache_definition $definition) {
          $return = array();
          $factory = cache_factory::instance();
          foreach ($stores as $name => $details) {
              $store = $factory->create_store_from_config($name, $details, $definition);
              if ($store !== false) {
                  $return[] = $store;
              }
          }
          return $return;
      }
code: protected static function initialise_cachestore_instances(array $stores, cache_definition $definition) {
          $return = array();
          $factory = cache_factory::instance();
          foreach ($stores as $name => $details) {
              $store = $factory->create_store_from_config($name, $details, $definition);
              if ($store !== false) {
                  $return[] = $store;
              }
          }
          return $return;
      }
code_tokens: protected static function initialise_cachestore_instances ( array $ stores , cache_definition $ definition ) { $ return = array ( ) ; $ factory = cache_factory :: instance ( ) ; foreach ( $ stores as $ name => $ details ) { $ store = $ factory -> create_store_from_config ( $ name , $ details , $ definition ) ; if ( $ store !== false ) { $ return [ ] = $ store ; } } return $ return ; }
docstring: Internal function for initialising an array of stores against a given cache definition.
  
  @param array $stores
  @param cache_definition $definition
  @return cache_store[]
docstring_tokens: Internal function for initialising an array of stores against a given cache definition .