Completed
Push — master ( 7b4ad7...3e4bcd )
by Tyler
02:40
created
lib/Pico.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -741,7 +741,7 @@
 block discarded – undo
741 741
      * @see    <http://symfony.com/doc/current/components/yaml/introduction.html>
742 742
      * @param  string   $rawContent the raw file contents
743 743
      * @param  string[] $headers    known meta headers
744
-     * @return array                parsed meta data
744
+     * @return string                parsed meta data
745 745
      */
746 746
     public function parseFileMeta($rawContent, array $headers)
747 747
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -990,7 +990,7 @@  discard block
 block discarded – undo
990 990
     {
991 991
         // sort pages
992 992
         $order = $this->getConfig('pages_order');
993
-        $alphaSortClosure = function ($a, $b) use ($order) {
993
+        $alphaSortClosure = function($a, $b) use ($order) {
994 994
             $aSortKey = (basename($a['id']) === 'index') ? dirname($a['id']) : $a['id'];
995 995
             $bSortKey = (basename($b['id']) === 'index') ? dirname($b['id']) : $b['id'];
996 996
 
@@ -1000,7 +1000,7 @@  discard block
 block discarded – undo
1000 1000
 
1001 1001
         if ($this->getConfig('pages_order_by') == 'date') {
1002 1002
             // sort by date
1003
-            uasort($this->pages, function ($a, $b) use ($alphaSortClosure, $order) {
1003
+            uasort($this->pages, function($a, $b) use ($alphaSortClosure, $order) {
1004 1004
                 if (empty($a['time']) || empty($b['time'])) {
1005 1005
                     $cmp = (empty($a['time']) - empty($b['time']));
1006 1006
                 } else {
@@ -1134,7 +1134,7 @@  discard block
 block discarded – undo
1134 1134
 
1135 1135
         // content filter
1136 1136
         $pages = &$this->pages;
1137
-        $this->twig->addFilter(new Twig_SimpleFilter('content', function ($page) use ($pico, &$pages) {
1137
+        $this->twig->addFilter(new Twig_SimpleFilter('content', function($page) use ($pico, &$pages) {
1138 1138
             if (isset($pages[$page])) {
1139 1139
                 $pageData = &$pages[$page];
1140 1140
                 if (!isset($pageData['content'])) {
@@ -1147,7 +1147,7 @@  discard block
 block discarded – undo
1147 1147
         }));
1148 1148
 
1149 1149
         // markdown filter
1150
-        $this->twig->addFilter(new Twig_SimpleFilter('markdown', function ($markdown) use ($pico) {
1150
+        $this->twig->addFilter(new Twig_SimpleFilter('markdown', function($markdown) use ($pico) {
1151 1151
             if ($pico->getParsedown() === null) {
1152 1152
                 throw new LogicException("Unable to parse file contents: Parsedown instance wasn't registered yet");
1153 1153
             }
Please login to merge, or discard this patch.
index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 // instance Pico
6 6
 $pico = new Pico(
7
-    __DIR__,    // root dir
8
-    'config/',  // config dir
7
+    __DIR__, // root dir
8
+    'config/', // config dir
9 9
     'plugins/', // plugins dir
10 10
     'themes/'   // themes dir
11 11
 );
Please login to merge, or discard this patch.