original_string: protected function loadTemplates()
      {
          if ($this->templates === null) {
              $this->templates = array();
              $data = file_get_contents($this->fileName, false, null, $this->offset);
              foreach (preg_split("/^@@(?= [\w\d\.]+$)/m", $data, -1) as $chunk) {
                  if (trim($chunk)) {
                      list($name, $content)         = explode("\n", $chunk, 2);
                      $this->templates[trim($name)] = trim($content);
                  }
              }
          }
      }
code: protected function loadTemplates()
      {
          if ($this->templates === null) {
              $this->templates = array();
              $data = file_get_contents($this->fileName, false, null, $this->offset);
              foreach (preg_split("/^@@(?= [\w\d\.]+$)/m", $data, -1) as $chunk) {
                  if (trim($chunk)) {
                      list($name, $content)         = explode("\n", $chunk, 2);
                      $this->templates[trim($name)] = trim($content);
                  }
              }
          }
      }
code_tokens: protected function loadTemplates ( ) { if ( $ this -> templates === null ) { $ this -> templates = array ( ) ; $ data = file_get_contents ( $ this -> fileName , false , null , $ this -> offset ) ; foreach ( preg_split ( "/^@@(?= [\w\d\.]+$)/m" , $ data , - 1 ) as $ chunk ) { if ( trim ( $ chunk ) ) { list ( $ name , $ content ) = explode ( "\n" , $ chunk , 2 ) ; $ this -> templates [ trim ( $ name ) ] = trim ( $ content ) ; } } } }
docstring: Parse and load templates from the end of a source file.
docstring_tokens: Parse and load templates from the end of a source file .