original_string: public function get_lock_for_store($storename) {
          if (array_key_exists($storename, $this->configstores)) {
              if (array_key_exists($this->configstores[$storename]['lock'], $this->configlocks)) {
                  $lock = $this->configstores[$storename]['lock'];
                  return $this->configlocks[$lock];
              }
          }
          return $this->get_default_lock();
      }
code: public function get_lock_for_store($storename) {
          if (array_key_exists($storename, $this->configstores)) {
              if (array_key_exists($this->configstores[$storename]['lock'], $this->configlocks)) {
                  $lock = $this->configstores[$storename]['lock'];
                  return $this->configlocks[$lock];
              }
          }
          return $this->get_default_lock();
      }
code_tokens: public function get_lock_for_store ( $ storename ) { if ( array_key_exists ( $ storename , $ this -> configstores ) ) { if ( array_key_exists ( $ this -> configstores [ $ storename ] [ 'lock' ] , $ this -> configlocks ) ) { $ lock = $ this -> configstores [ $ storename ] [ 'lock' ] ; return $ this -> configlocks [ $ lock ] ; } } return $ this -> get_default_lock ( ) ; }
docstring: Returns the lock store configuration to use with a given store.
  @param string $storename
  @return array
  @throws cache_exception
docstring_tokens: Returns the lock store configuration to use with a given store .