Reworked most file to respect PSR-2

This commit is contained in:
2019-03-29 00:10:10 +01:00
parent fb3249fa74
commit 5d522a2064
13 changed files with 394 additions and 132 deletions

View File

@ -3,11 +3,27 @@
namespace ModuleName\Controller;
use AdminPanel\Classes\Controller;
use AdminPanel\Classes\Authentificator;
class ExampleController extends Controller
{
class ExampleController extends Controller {
public function example()
{
return "hello " . $this->getUrlArguments()["arg"] . "!";
}
public function example() {
return "hello Controller!";
}
public function index()
{
return "Hellow Example Controller!";
}
public function isLoggedIn()
{
if (Authentificator::getInstance()->isLoggedIn()) {
return "test is false!";
} else {
return "test is true";
}
}
}