Completed
Branch master (9b31a5)
by Tyler
05:35
created
lib/Pico.php 1 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.
plugins/DummyPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@
 block discarded – undo
295 295
      * @param  string           &$templateName  file name of the template
296 296
      * @return void
297 297
      */
298
-    public function onPageRendering(Twig_Environment &$twig, array &$twigVariables, &$templateName)
298
+    public function onPageRendering(Twig_Environment & $twig, array &$twigVariables, &$templateName)
299 299
     {
300 300
         // your code
301 301
     }
Please login to merge, or discard this patch.
plugins/00-PicoDeprecated.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@
 block discarded – undo
295 295
      * @param  string           &$templateName  file name of the template
296 296
      * @return void
297 297
      */
298
-    public function onPageRendering(Twig_Environment &$twig, array &$twigVariables, &$templateName)
298
+    public function onPageRendering(Twig_Environment & $twig, array &$twigVariables, &$templateName)
299 299
     {
300 300
         // your code
301 301
     }
Please login to merge, or discard this patch.
index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -6,10 +6,10 @@  discard block
 block discarded – undo
6 6
 }
7 7
 
8 8
 // load dependencies
9
-if(is_file(__DIR__ . '/vendor/autoload.php')) {
9
+if (is_file(__DIR__ . '/vendor/autoload.php')) {
10 10
     // composer root package
11 11
     require_once(__DIR__ . '/vendor/autoload.php');
12
-} elseif(is_file(__DIR__ . '/../../../vendor/autoload.php')) {
12
+} elseif (is_file(__DIR__ . '/../../../vendor/autoload.php')) {
13 13
     // composer dependency package
14 14
     require_once(__DIR__ . '/../../../vendor/autoload.php');
15 15
 } else {
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
 
19 19
 // instance Pico
20 20
 $pico = new Pico(
21
-    __DIR__,    // root dir
22
-    'config/',  // config dir
21
+    __DIR__, // root dir
22
+    'config/', // config dir
23 23
     'plugins/', // plugins dir
24 24
     'themes/'   // themes dir
25 25
 );
Please login to merge, or discard this patch.