From 9e96edb1ab087ccfa306c96fd8a1d21541acf825 Mon Sep 17 00:00:00 2001 From: SeekDaSky Date: Tue, 28 Nov 2017 13:32:44 +0100 Subject: [PATCH] gitignore + fix typing --- .gitignore | 3 ++- build/database/core/Repo_i.php | 5 ++++- public_html/index.php | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index a22d218..434a519 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /node_modules -/.vscode \ No newline at end of file +/.vscode +.idea diff --git a/build/database/core/Repo_i.php b/build/database/core/Repo_i.php index 465d1ea..5b9aad5 100644 --- a/build/database/core/Repo_i.php +++ b/build/database/core/Repo_i.php @@ -4,9 +4,12 @@ class Repo_i{ + /** + * @var \PDO + */ protected $pdo = null; - public function setPDO($pdo){ + public function setPDO( \PDO $pdo){ $this->pdo = $pdo; diff --git a/public_html/index.php b/public_html/index.php index e956358..2c46efa 100755 --- a/public_html/index.php +++ b/public_html/index.php @@ -17,5 +17,5 @@ Request::setAuthSystem(new AuthSystemDefault); /* (4) launch router */ - $MainRouter = Router::launch($_GET['url']); + Router::launch($_GET['url']);