Skip to content

Commit f7f69a2

Browse files
committed
mostly formating updates
1 parent c8a9fce commit f7f69a2

File tree

19 files changed

+30
-35
lines changed

19 files changed

+30
-35
lines changed

app/HomeController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22
namespace App;
33
use System\Template;
4-
use System\Config;
54

65
class HomeController {
76
private $template;
@@ -18,7 +17,7 @@ public function showIndex()
1817
'page_title'=>$title,
1918
'page_content'=>$msg
2019
]);
21-
return $this->template->display('layout.tpl');
20+
$this->template->display('layout.tpl');
2221
}
2322

2423
}

composer.lock

Lines changed: 11 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/modules.php.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
return [
33
'admin',
44
'test'
5-
];
5+
];

config/session.php.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ return [
1111
'cookie_lifetime'=>'1800',
1212
'gc_maxlifetime'=>'1800',
1313
'save_path'=>sys_get_temp_dir()
14-
];
14+
];

modules/admin/controllers/Dashboard.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
namespace Modules\Admin\Controllers;
3+
34
use System\Template;
4-
use System\Config;
55

66
class Dashboard {
77
private $template;
@@ -22,4 +22,4 @@ public function getDashboard() {
2222
$this->template->display('layout.tpl');
2323
}
2424

25-
}
25+
}

modules/admin/models/Auth.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22
namespace Modules\Admin\Models;
3+
34
use System\Config;
45

56
class Auth {
@@ -14,4 +15,4 @@ public function checkSession () {
1415
return false;
1516
}
1617
}
17-
}
18+
}

modules/test/front/controllers/Main.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22
namespace Modules\Test\Front\Controllers;
3+
34
use System\Template;
45
use Modules\Test\Front\Models\Message as Model;
56

@@ -24,4 +25,4 @@ public function showIndex()
2425
$this->template->display('layout.tpl');
2526
}
2627

27-
}
28+
}

modules/test/front/models/Message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ public function getMsg()
1414
return $msg;
1515
}
1616

17-
}
17+
}

plugins/smarty/compiler.compile_time.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@
1313
*/
1414
function smarty_compiler_compile_time($tag_arg, &$smarty)
1515
{
16-
global $_SESSION;
1716
$compile_time=round(microtime(true)-$_SESSION['master_load_start_time'],3);
1817
$sqldebug="\n- SQL Debug: Query Map -\n";
1918
foreach($_SESSION['db_query_map'] as $qry){$sqldebug.=$qry."\n";}
2019
return "Compiled for ".$compile_time."s at ".date('d-m-Y H:i')." (DB queries: ".$_SESSION['db_query_count'].")".$sqldebug;
2120
// return "\n echo '" . $smarty->_current_file . " compiled at " . date('Y-m-d H:M'). "';";
2221
}
23-
?>

plugins/smarty/resource.email.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,3 @@ protected function fetch($name, &$source, &$mtime) {
4242
}
4343

4444
}
45-
?>

0 commit comments

Comments
 (0)