original_string: public function addLocation($location)
      {
          $loader = new \Mustache_Loader_FilesystemLoader($location);
          if ($this->mustache->getLoader() instanceof \Mustache_Loader_CascadingLoader) {
              $this->mustache->getLoader()->addLoader( $loader);
          } else {
              $loaders = [$this->mustache->getLoader(), $loader];
              $this->mustache->setLoader(new \Mustache_Loader_CascadingLoader($loaders));
          }
          return $this;
      }
code: public function addLocation($location)
      {
          $loader = new \Mustache_Loader_FilesystemLoader($location);
          if ($this->mustache->getLoader() instanceof \Mustache_Loader_CascadingLoader) {
              $this->mustache->getLoader()->addLoader( $loader);
          } else {
              $loaders = [$this->mustache->getLoader(), $loader];
              $this->mustache->setLoader(new \Mustache_Loader_CascadingLoader($loaders));
          }
          return $this;
      }
code_tokens: public function addLocation ( $ location ) { $ loader = new \ Mustache_Loader_FilesystemLoader ( $ location ) ; if ( $ this -> mustache -> getLoader ( ) instanceof \ Mustache_Loader_CascadingLoader ) { $ this -> mustache -> getLoader ( ) -> addLoader ( $ loader ) ; } else { $ loaders = [ $ this -> mustache -> getLoader ( ) , $ loader ] ; $ this -> mustache -> setLoader ( new \ Mustache_Loader_CascadingLoader ( $ loaders ) ) ; } return $ this ; }
docstring: Adds a new folder to look for templates
  @param string $location
  @return PlainPhp
docstring_tokens: Adds a new folder to look for templates