original_string: public function removeEntry($entryId, $language = null)
      {
          $entryId = (string)$entryId;
          foreach ($this->entries as $languageKey => $entries) {
              if ($language && $language !== $languageKey) {
                  continue;
              }
              if (isset($this->entries[$languageKey][$entryId])) {
                  unset($this->entries[$languageKey][$entryId]);
              }
          }
          return $this;
      }
code: public function removeEntry($entryId, $language = null)
      {
          $entryId = (string)$entryId;
          foreach ($this->entries as $languageKey => $entries) {
              if ($language && $language !== $languageKey) {
                  continue;
              }
              if (isset($this->entries[$languageKey][$entryId])) {
                  unset($this->entries[$languageKey][$entryId]);
              }
          }
          return $this;
      }
code_tokens: public function removeEntry ( $ entryId , $ language = null ) { $ entryId = ( string ) $ entryId ; foreach ( $ this -> entries as $ languageKey => $ entries ) { if ( $ language && $ language !== $ languageKey ) { continue ; } if ( isset ( $ this -> entries [ $ languageKey ] [ $ entryId ] ) ) { unset ( $ this -> entries [ $ languageKey ] [ $ entryId ] ) ; } } return $ this ; }
docstring: Remove entries of the given id
  
  @api
  @param string $entryId  Entry id that should be removed
  @param string $language (optional) Only remove entry from the given language
  @return static
docstring_tokens: Remove entries of the given id