diff --git a/.gitignore b/.gitignore index 88e54b8..30897a3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -.cache +*.cache vendor app.yaml diff --git a/composer.json b/composer.json index 8d8c008..58644fb 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "require": { - "twig/twig": "^3.0" - } + "require": { + "twig/twig": "^3.0" + } } diff --git a/functions.php b/functions.php index 08910fa..6db5310 100644 --- a/functions.php +++ b/functions.php @@ -2,5 +2,5 @@ function urlIs($value) { - return $_SERVER['REQUEST_URI'] === $value; -} \ No newline at end of file + return $_SERVER['REQUEST_URI'] === $value; +} diff --git a/index.php b/index.php index c9b8604..7a01e6c 100644 --- a/index.php +++ b/index.php @@ -2,4 +2,4 @@ require 'functions.php'; require 'router.php'; -require 'shared.php'; \ No newline at end of file +require 'shared.php'; diff --git a/routes/404.php b/routes/404.php index 33ed483..a234693 100644 --- a/routes/404.php +++ b/routes/404.php @@ -2,4 +2,4 @@ require 'shared.php'; -echo $twig->render('404.html.twig'); \ No newline at end of file +echo $twig->render('404.html.twig'); diff --git a/routes/index.php b/routes/index.php index 099681b..7378e2e 100644 --- a/routes/index.php +++ b/routes/index.php @@ -2,4 +2,4 @@ require 'shared.php'; -echo $twig->render('index.html.twig'); \ No newline at end of file +echo $twig->render('index.html.twig'); diff --git a/shared.php b/shared.php index 557230e..33c3f65 100644 --- a/shared.php +++ b/shared.php @@ -5,4 +5,4 @@ require_once 'vendor/autoload.php'; $loader = new \Twig\Loader\FilesystemLoader('templates'); $twig = new \Twig\Environment($loader, [ 'cache' => '.cache', -]); \ No newline at end of file +]); diff --git a/templates/404.html.twig b/templates/404.html.twig index 6ffe1f0..61e32d2 100644 --- a/templates/404.html.twig +++ b/templates/404.html.twig @@ -7,4 +7,4 @@ 404 Page Not Found -{% endblock %} \ No newline at end of file +{% endblock %}