original_string: public function delete($key)
      {
  
          $deleted = false;
  
          $catalog = \array_keys($this->getKeys());
          foreach ($catalog as $k) {
  
              if ($k == $key) {
                  unset($this->hash[$key]);
                  if ($delete) {
                      $this->catalogKeyDelete($k);
                      $deleted = true;
                  }
              }
          }
  
          return $deleted;
      }
code: public function delete($key)
      {
  
          $deleted = false;
  
          $catalog = \array_keys($this->getKeys());
          foreach ($catalog as $k) {
  
              if ($k == $key) {
                  unset($this->hash[$key]);
                  if ($delete) {
                      $this->catalogKeyDelete($k);
                      $deleted = true;
                  }
              }
          }
  
          return $deleted;
      }
code_tokens: public function delete ( $ key ) { $ deleted = false ; $ catalog = \ array_keys ( $ this -> getKeys ( ) ) ; foreach ( $ catalog as $ k ) { if ( $ k == $ key ) { unset ( $ this -> hash [ $ key ] ) ; if ( $ delete ) { $ this -> catalogKeyDelete ( $ k ) ; $ deleted = true ; } } } return $ deleted ; }
docstring: Deletes cache data
docstring_tokens: Deletes cache data