original_string: public function addModule($name, $location, $replace = false)
      {
          if ($name == '') {
              throw new exception\InvalidArgumentException('The require.js module name must not be empty');
          }
  
          if ($replace || !isset($this->modules[$name])) {
              $this->modules[$name] = (string)$location;
          }
  
          return $this;
      }
code: public function addModule($name, $location, $replace = false)
      {
          if ($name == '') {
              throw new exception\InvalidArgumentException('The require.js module name must not be empty');
          }
  
          if ($replace || !isset($this->modules[$name])) {
              $this->modules[$name] = (string)$location;
          }
  
          return $this;
      }
code_tokens: public function addModule ( $ name , $ location , $ replace = false ) { if ( $ name == '' ) { throw new exception \ InvalidArgumentException ( 'The require.js module name must not be empty' ) ; } if ( $ replace || ! isset ( $ this -> modules [ $ name ] ) ) { $ this -> modules [ $ name ] = ( string ) $ location ; } return $ this ; }
docstring: Define a require.js module location
  
  @see http://requirejs.org/docs/api.html#config-paths
  @param string $name
  @param string $location
  @param bool $replace Replace the module definition if it already exists
docstring_tokens: Define a require . js module location