aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.php_cs.dist16
-rw-r--r--generate.php2
-rw-r--r--views/footer.twig2
3 files changed, 18 insertions, 2 deletions
diff --git a/.php_cs.dist b/.php_cs.dist
new file mode 100644
index 0000000..7caac44
--- /dev/null
+++ b/.php_cs.dist
@@ -0,0 +1,16 @@
+<?php
+
+$finder = PhpCsFixer\Finder::create()
+ ->in(__DIR__)
+;
+
+return PhpCsFixer\Config::create()
+ ->setRules([
+ '@PSR2' => true,
+ '@Symfony' => true,
+ 'ordered_imports' => true,
+ 'array_syntax' => ['syntax' => 'short'],
+ 'ordered_class_elements' => true,
+ ])
+ ->setFinder($finder)
+;
diff --git a/generate.php b/generate.php
index 33978a7..ff8cb9a 100644
--- a/generate.php
+++ b/generate.php
@@ -111,7 +111,7 @@ $indexPage = $twig->render(
'pageTitle' => 'Blog',
'blogTitle' => $blogTitle,
'blogDescription' => $blogDescription,
- 'blogAuthor' => $blogAuthor
+ 'blogAuthor' => $blogAuthor,
]
);
diff --git a/views/footer.twig b/views/footer.twig
index fb2743e..7405193 100644
--- a/views/footer.twig
+++ b/views/footer.twig
@@ -1,5 +1,5 @@
<div class="footer">
- <p>&copy; 2017 <a href="contact.html">{{ blogAuthor }}</a></p>
+ <p>&copy; 2017 {{ blogAuthor }}</p>
</div>
</body>