Completed
Branch feature/bootstrap-theme (0fb616)
by Tyler
04:45 queued 02:05
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   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -461,8 +461,8 @@  discard block
 block discarded – undo
461 461
             'base_url' => '',
462 462
             'rewrite_url' => null,
463 463
             'theme' => 'default',
464
-            'theme_config' => array('about_us' => '','social_media' => array(
465
-            'github' => '', 'facebook' => '', 'twitter' => ''),'copyright' => ''),
464
+            'theme_config' => array('about_us' => '', 'social_media' => array(
465
+            'github' => '', 'facebook' => '', 'twitter' => ''), 'copyright' => ''),
466 466
             'date_format' => '%D %T',
467 467
             'twig_config' => array('cache' => false, 'autoescape' => false, 'debug' => false),
468 468
             'pages_order_by' => 'alpha',
@@ -1000,7 +1000,7 @@  discard block
 block discarded – undo
1000 1000
     {
1001 1001
         // sort pages
1002 1002
         $order = $this->getConfig('pages_order');
1003
-        $alphaSortClosure = function ($a, $b) use ($order) {
1003
+        $alphaSortClosure = function($a, $b) use ($order) {
1004 1004
             $aSortKey = (basename($a['id']) === 'index') ? dirname($a['id']) : $a['id'];
1005 1005
             $bSortKey = (basename($b['id']) === 'index') ? dirname($b['id']) : $b['id'];
1006 1006
 
@@ -1010,7 +1010,7 @@  discard block
 block discarded – undo
1010 1010
 
1011 1011
         if ($this->getConfig('pages_order_by') === 'date') {
1012 1012
             // sort by date
1013
-            uasort($this->pages, function ($a, $b) use ($alphaSortClosure, $order) {
1013
+            uasort($this->pages, function($a, $b) use ($alphaSortClosure, $order) {
1014 1014
                 if (empty($a['time']) || empty($b['time'])) {
1015 1015
                     $cmp = (empty($a['time']) - empty($b['time']));
1016 1016
                 } else {
@@ -1139,7 +1139,7 @@  discard block
 block discarded – undo
1139 1139
         // this is the reason why we can't register this filter as part of PicoTwigExtension
1140 1140
         $pico = $this;
1141 1141
         $pages = &$this->pages;
1142
-        $this->twig->addFilter(new Twig_SimpleFilter('content', function ($page) use ($pico, &$pages) {
1142
+        $this->twig->addFilter(new Twig_SimpleFilter('content', function($page) use ($pico, &$pages) {
1143 1143
             if (isset($pages[$page])) {
1144 1144
                 $pageData = &$pages[$page];
1145 1145
                 if (!isset($pageData['content'])) {
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.
lib/PicoTwigExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
155 155
 
156 156
         $twigExtension = $this;
157 157
         $varKeys = array_keys($var);
158
-        uksort($var, function ($a, $b) use ($twigExtension, $var, $varKeys, $sortKeyPath, $fallback, &$removeItems) {
158
+        uksort($var, function($a, $b) use ($twigExtension, $var, $varKeys, $sortKeyPath, $fallback, &$removeItems) {
159 159
             $aSortValue = $twigExtension->getKeyOfVar($var[$a], $sortKeyPath);
160 160
             $aSortValueNull = ($aSortValue === null);
161 161
 
Please login to merge, or discard this patch.