original_string: protected function getTemplateFiles($file)
      {
          $module_id = $this->theme;
  
          if (strpos($file, '|') !== false) {
              list($module_id, $file) = explode('|', $file, 2);
          } else if (gplcart_path_is_absolute($file)) {
              $template = substr($file, 0, (strrpos($file, '.')));
              return array($template, $template);
          }
  
          return array(
              GC_DIR_MODULE . "/$module_id/templates/$file",
              GC_DIR_MODULE . "/{$this->theme}/override/templates/$module_id/$file"
          );
      }
code: protected function getTemplateFiles($file)
      {
          $module_id = $this->theme;
  
          if (strpos($file, '|') !== false) {
              list($module_id, $file) = explode('|', $file, 2);
          } else if (gplcart_path_is_absolute($file)) {
              $template = substr($file, 0, (strrpos($file, '.')));
              return array($template, $template);
          }
  
          return array(
              GC_DIR_MODULE . "/$module_id/templates/$file",
              GC_DIR_MODULE . "/{$this->theme}/override/templates/$module_id/$file"
          );
      }
code_tokens: protected function getTemplateFiles ( $ file ) { $ module_id = $ this -> theme ; if ( strpos ( $ file , '|' ) !== false ) { list ( $ module_id , $ file ) = explode ( '|' , $ file , 2 ) ; } else if ( gplcart_path_is_absolute ( $ file ) ) { $ template = substr ( $ file , 0 , ( strrpos ( $ file , '.' ) ) ) ; return array ( $ template , $ template ) ; } return array ( GC_DIR_MODULE . "/$module_id/templates/$file" , GC_DIR_MODULE . "/{$this->theme}/override/templates/$module_id/$file" ) ; }
docstring: Returns an array of full template paths without file extension
  @param string $file
  @return array
docstring_tokens: Returns an array of full template paths without file extension