Постфиксная запись типов вместо префиксной
This commit is contained in:
parent
04662a94df
commit
11370eecc9
33 changed files with 95 additions and 79 deletions
|
|
@ -32,7 +32,7 @@ class Tales_Component implements PHPTAL_Tales
|
|||
}
|
||||
|
||||
class Tales {
|
||||
static /*.SiteInterface.*/$site;
|
||||
static $site/*: SiteInterface*/;
|
||||
|
||||
static function phptal_date ($e) {
|
||||
return date("d.m.Y", $e);
|
||||
|
|
@ -47,7 +47,7 @@ class Tales {
|
|||
*/
|
||||
static function phptal_component ($expression) {
|
||||
$begin = floatval(microtime(true));
|
||||
/*.Component.*/$component = null;
|
||||
$component/*: Component*/ = null;
|
||||
|
||||
$component = self::$site->loadComponent($expression);
|
||||
$req = new HttpRequest();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue