original_string: public function addDirectory($directory)
      {
          if (isset($this->directories[$directory])) {
              return;
          }
          // index by name to avoid duplicates
          $this->directories[$directory] = $directory;
  
          // clear currently loaded translations to force reloading them
          $this->translations = array();
      }
code: public function addDirectory($directory)
      {
          if (isset($this->directories[$directory])) {
              return;
          }
          // index by name to avoid duplicates
          $this->directories[$directory] = $directory;
  
          // clear currently loaded translations to force reloading them
          $this->translations = array();
      }
code_tokens: public function addDirectory ( $ directory ) { if ( isset ( $ this -> directories [ $ directory ] ) ) { return ; } // index by name to avoid duplicates $ this -> directories [ $ directory ] = $ directory ; // clear currently loaded translations to force reloading them $ this -> translations = array ( ) ; }
docstring: Add a directory containing translations.
  
  @param string $directory
docstring_tokens: Add a directory containing translations .