mirror of
https://github.com/smarty-php/smarty.git
synced 2026-04-29 02:03:31 +02:00
Update PSR-2
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
* @package Smarty
|
||||
* @subpackage TemplateResources
|
||||
* @author Rodney Rehm
|
||||
*
|
||||
*/
|
||||
class Smarty_Template_Source
|
||||
{
|
||||
@@ -131,7 +130,7 @@ class Smarty_Template_Source
|
||||
* @param string $type type of resource
|
||||
* @param string $name resource name
|
||||
*
|
||||
* @throws \SmartyException
|
||||
* @throws \SmartyException
|
||||
* @internal param \Smarty_Resource $handler Resource Handler this source object communicates with
|
||||
*/
|
||||
public function __construct(Smarty $smarty, $resource, $type, $name)
|
||||
@@ -149,16 +148,16 @@ class Smarty_Template_Source
|
||||
* initialize Source Object for given resource
|
||||
* Either [$_template] or [$smarty, $template_resource] must be specified
|
||||
*
|
||||
* @param Smarty_Internal_Template $_template template object
|
||||
* @param Smarty $smarty smarty object
|
||||
* @param string $template_resource resource identifier
|
||||
* @param Smarty_Internal_Template $_template template object
|
||||
* @param Smarty $smarty smarty object
|
||||
* @param string $template_resource resource identifier
|
||||
*
|
||||
* @return Smarty_Template_Source Source Object
|
||||
* @throws SmartyException
|
||||
*/
|
||||
public static function load(Smarty_Internal_Template $_template = null, Smarty $smarty = null,
|
||||
$template_resource = null)
|
||||
{
|
||||
$template_resource = null
|
||||
) {
|
||||
if ($_template) {
|
||||
$smarty = $_template->smarty;
|
||||
$template_resource = $_template->template_resource;
|
||||
|
||||
Reference in New Issue
Block a user