Completed
Push — master ( 9ad54b...895d73 )
by Federico
03:21
created
dist/jate/modules/ExternalModules/composer/autoload_static.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -6,26 +6,26 @@
 block discarded – undo
6 6
 
7 7
 class ComposerStaticInitb1e7ddc74da87434be0b5632a8bb4210
8 8
 {
9
-    public static $prefixesPsr0 = array (
9
+    public static $prefixesPsr0 = array(
10 10
         'P' => 
11
-        array (
11
+        array(
12 12
             'Pug\\' => 
13
-            array (
14
-                0 => __DIR__ . '/..' . '/pug-php/pug/src',
13
+            array(
14
+                0 => __DIR__.'/..'.'/pug-php/pug/src',
15 15
             ),
16 16
         ),
17 17
         'J' => 
18
-        array (
18
+        array(
19 19
             'Jade\\' => 
20
-            array (
21
-                0 => __DIR__ . '/..' . '/pug-php/pug/src',
20
+            array(
21
+                0 => __DIR__.'/..'.'/pug-php/pug/src',
22 22
             ),
23 23
         ),
24 24
     );
25 25
 
26 26
     public static function getInitializer(ClassLoader $loader)
27 27
     {
28
-        return \Closure::bind(function () use ($loader) {
28
+        return \Closure::bind(function() use ($loader) {
29 29
             $loader->prefixesPsr0 = ComposerStaticInitb1e7ddc74da87434be0b5632a8bb4210::$prefixesPsr0;
30 30
 
31 31
         }, null, ClassLoader::class);
Please login to merge, or discard this patch.
dist/jate/modules/ExternalModules/composer/autoload_real.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
     public static function loadClassLoader($class)
10 10
     {
11 11
         if ('Composer\Autoload\ClassLoader' === $class) {
12
-            require __DIR__ . '/ClassLoader.php';
12
+            require __DIR__.'/ClassLoader.php';
13 13
         }
14 14
     }
15 15
 
@@ -25,21 +25,21 @@  discard block
 block discarded – undo
25 25
 
26 26
         $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION');
27 27
         if ($useStaticLoader) {
28
-            require_once __DIR__ . '/autoload_static.php';
28
+            require_once __DIR__.'/autoload_static.php';
29 29
 
30 30
             call_user_func(\Composer\Autoload\ComposerStaticInitb1e7ddc74da87434be0b5632a8bb4210::getInitializer($loader));
31 31
         } else {
32
-            $map = require __DIR__ . '/autoload_namespaces.php';
32
+            $map = require __DIR__.'/autoload_namespaces.php';
33 33
             foreach ($map as $namespace => $path) {
34 34
                 $loader->set($namespace, $path);
35 35
             }
36 36
 
37
-            $map = require __DIR__ . '/autoload_psr4.php';
37
+            $map = require __DIR__.'/autoload_psr4.php';
38 38
             foreach ($map as $namespace => $path) {
39 39
                 $loader->setPsr4($namespace, $path);
40 40
             }
41 41
 
42
-            $classMap = require __DIR__ . '/autoload_classmap.php';
42
+            $classMap = require __DIR__.'/autoload_classmap.php';
43 43
             if ($classMap) {
44 44
                 $loader->addClassMap($classMap);
45 45
             }
Please login to merge, or discard this patch.
dist/jate/modules/ExternalModules/composer/ClassLoader.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -344,14 +344,14 @@  discard block
 block discarded – undo
344 344
     private function findFileWithExtension($class, $ext)
345 345
     {
346 346
         // PSR-4 lookup
347
-        $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
347
+        $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext;
348 348
 
349 349
         $first = $class[0];
350 350
         if (isset($this->prefixLengthsPsr4[$first])) {
351 351
             foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) {
352 352
                 if (0 === strpos($class, $prefix)) {
353 353
                     foreach ($this->prefixDirsPsr4[$prefix] as $dir) {
354
-                        if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
354
+                        if (file_exists($file = $dir.DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $length))) {
355 355
                             return $file;
356 356
                         }
357 357
                     }
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
 
362 362
         // PSR-4 fallback dirs
363 363
         foreach ($this->fallbackDirsPsr4 as $dir) {
364
-            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
364
+            if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) {
365 365
                 return $file;
366 366
             }
367 367
         }
@@ -373,14 +373,14 @@  discard block
 block discarded – undo
373 373
                 . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
374 374
         } else {
375 375
             // PEAR-like class name
376
-            $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
376
+            $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext;
377 377
         }
378 378
 
379 379
         if (isset($this->prefixesPsr0[$first])) {
380 380
             foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
381 381
                 if (0 === strpos($class, $prefix)) {
382 382
                     foreach ($dirs as $dir) {
383
-                        if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
383
+                        if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) {
384 384
                             return $file;
385 385
                         }
386 386
                     }
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
 
391 391
         // PSR-0 fallback dirs
392 392
         foreach ($this->fallbackDirsPsr0 as $dir) {
393
-            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
393
+            if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) {
394 394
                 return $file;
395 395
             }
396 396
         }
Please login to merge, or discard this patch.
dist/jate/modules/Parsedown/Parsedown.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,13 +6,13 @@
 block discarded – undo
6 6
 		public function __construct() {
7 7
 			parent::__construct();
8 8
 		}
9
-		public function drawFile( $_template ) {
9
+		public function drawFile($_template) {
10 10
 			return $this->draw($_template);
11 11
 		}
12
-		public function drawText( $_template ) {
12
+		public function drawText($_template) {
13 13
 			return $this->draw(trim($_template));
14 14
 		}
15
-		public function draw( $_template ) {
15
+		public function draw($_template) {
16 16
 			$Parsedown = new Parsedown\Parsedown();
17 17
 			$page = $Parsedown->text($_template);
18 18
 			return $page;
Please login to merge, or discard this patch.
dist/jate/modules/Parsedown/Parsedown/Parsedown.php 1 patch
Spacing   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 
153 153
             while (isset($line[$indent]) and $line[$indent] === ' ')
154 154
             {
155
-                $indent ++;
155
+                $indent++;
156 156
             }
157 157
 
158 158
             $text = $indent > 0 ? substr($line, $indent) : $line;
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
             {
195 195
                 foreach ($this->BlockTypes[$marker] as $blockType)
196 196
                 {
197
-                    $blockTypes []= $blockType;
197
+                    $blockTypes [] = $blockType;
198 198
                 }
199 199
             }
200 200
 
@@ -209,9 +209,9 @@  discard block
 block discarded – undo
209 209
                 {
210 210
                     $Block['type'] = $blockType;
211 211
 
212
-                    if ( ! isset($Block['identified']))
212
+                    if (!isset($Block['identified']))
213 213
                     {
214
-                        $Blocks []= $CurrentBlock;
214
+                        $Blocks [] = $CurrentBlock;
215 215
 
216 216
                         $Block['identified'] = true;
217 217
                     }
@@ -229,13 +229,13 @@  discard block
 block discarded – undo
229 229
 
230 230
             # ~
231 231
 
232
-            if (isset($CurrentBlock) and ! isset($CurrentBlock['type']) and ! isset($CurrentBlock['interrupted']))
232
+            if (isset($CurrentBlock) and !isset($CurrentBlock['type']) and !isset($CurrentBlock['interrupted']))
233 233
             {
234 234
                 $CurrentBlock['element']['text'] .= "\n".$text;
235 235
             }
236 236
             else
237 237
             {
238
-                $Blocks []= $CurrentBlock;
238
+                $Blocks [] = $CurrentBlock;
239 239
 
240 240
                 $CurrentBlock = $this->paragraph($Line);
241 241
 
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
 
253 253
         # ~
254 254
 
255
-        $Blocks []= $CurrentBlock;
255
+        $Blocks [] = $CurrentBlock;
256 256
 
257 257
         unset($Blocks[0]);
258 258
 
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
 
294 294
     protected function blockCode($Line, $Block = null)
295 295
     {
296
-        if (isset($Block) and ! isset($Block['type']) and ! isset($Block['interrupted']))
296
+        if (isset($Block) and !isset($Block['type']) and !isset($Block['interrupted']))
297 297
         {
298 298
             return;
299 299
         }
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
             return;
382 382
         }
383 383
 
384
-        $Block['markup'] .= "\n" . $Line['body'];
384
+        $Block['markup'] .= "\n".$Line['body'];
385 385
 
386 386
         if (preg_match('/-->$/', $Line['text']))
387 387
         {
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
             return $Block;
449 449
         }
450 450
 
451
-        $Block['element']['text']['text'] .= "\n".$Line['body'];;
451
+        $Block['element']['text']['text'] .= "\n".$Line['body']; ;
452 452
 
453 453
         return $Block;
454 454
     }
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
 
476 476
             while (isset($Line['text'][$level]) and $Line['text'][$level] === '#')
477 477
             {
478
-                $level ++;
478
+                $level++;
479 479
             }
480 480
 
481 481
             if ($level > 6)
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
 
488 488
             $Block = array(
489 489
                 'element' => array(
490
-                    'name' => 'h' . min(6, $level),
490
+                    'name' => 'h'.min(6, $level),
491 491
                     'text' => $text,
492 492
                     'handler' => 'line',
493 493
                 ),
@@ -523,7 +523,7 @@  discard block
 block discarded – undo
523 523
                 ),
524 524
             );
525 525
 
526
-            $Block['element']['text'] []= & $Block['li'];
526
+            $Block['element']['text'] [] = & $Block['li'];
527 527
 
528 528
             return $Block;
529 529
         }
@@ -535,7 +535,7 @@  discard block
 block discarded – undo
535 535
         {
536 536
             if (isset($Block['interrupted']))
537 537
             {
538
-                $Block['li']['text'] []= '';
538
+                $Block['li']['text'] [] = '';
539 539
 
540 540
                 unset($Block['interrupted']);
541 541
             }
@@ -552,7 +552,7 @@  discard block
 block discarded – undo
552 552
                 ),
553 553
             );
554 554
 
555
-            $Block['element']['text'] []= & $Block['li'];
555
+            $Block['element']['text'] [] = & $Block['li'];
556 556
 
557 557
             return $Block;
558 558
         }
@@ -562,22 +562,22 @@  discard block
 block discarded – undo
562 562
             return $Block;
563 563
         }
564 564
 
565
-        if ( ! isset($Block['interrupted']))
565
+        if (!isset($Block['interrupted']))
566 566
         {
567 567
             $text = preg_replace('/^[ ]{0,4}/', '', $Line['body']);
568 568
 
569
-            $Block['li']['text'] []= $text;
569
+            $Block['li']['text'] [] = $text;
570 570
 
571 571
             return $Block;
572 572
         }
573 573
 
574 574
         if ($Line['indent'] > 0)
575 575
         {
576
-            $Block['li']['text'] []= '';
576
+            $Block['li']['text'] [] = '';
577 577
 
578 578
             $text = preg_replace('/^[ ]{0,4}/', '', $Line['body']);
579 579
 
580
-            $Block['li']['text'] []= $text;
580
+            $Block['li']['text'] [] = $text;
581 581
 
582 582
             unset($Block['interrupted']);
583 583
 
@@ -610,19 +610,19 @@  discard block
 block discarded – undo
610 610
         {
611 611
             if (isset($Block['interrupted']))
612 612
             {
613
-                $Block['element']['text'] []= '';
613
+                $Block['element']['text'] [] = '';
614 614
 
615 615
                 unset($Block['interrupted']);
616 616
             }
617 617
 
618
-            $Block['element']['text'] []= $matches[1];
618
+            $Block['element']['text'] [] = $matches[1];
619 619
 
620 620
             return $Block;
621 621
         }
622 622
 
623
-        if ( ! isset($Block['interrupted']))
623
+        if (!isset($Block['interrupted']))
624 624
         {
625
-            $Block['element']['text'] []= $Line['text'];
625
+            $Block['element']['text'] [] = $Line['text'];
626 626
 
627 627
             return $Block;
628 628
         }
@@ -650,7 +650,7 @@  discard block
 block discarded – undo
650 650
 
651 651
     protected function blockSetextHeader($Line, array $Block = null)
652 652
     {
653
-        if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted']))
653
+        if (!isset($Block) or isset($Block['type']) or isset($Block['interrupted']))
654 654
         {
655 655
             return;
656 656
         }
@@ -727,14 +727,14 @@  discard block
 block discarded – undo
727 727
 
728 728
         if (preg_match('/^<'.$Block['name'].'(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*>/i', $Line['text'])) # open
729 729
         {
730
-            $Block['depth'] ++;
730
+            $Block['depth']++;
731 731
         }
732 732
 
733 733
         if (preg_match('/(.*?)<\/'.$Block['name'].'>[ ]*$/i', $Line['text'], $matches)) # close
734 734
         {
735 735
             if ($Block['depth'] > 0)
736 736
             {
737
-                $Block['depth'] --;
737
+                $Block['depth']--;
738 738
             }
739 739
             else
740 740
             {
@@ -788,7 +788,7 @@  discard block
 block discarded – undo
788 788
 
789 789
     protected function blockTable($Line, array $Block = null)
790 790
     {
791
-        if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted']))
791
+        if (!isset($Block) or isset($Block['type']) or isset($Block['interrupted']))
792 792
         {
793 793
             return;
794 794
         }
@@ -825,7 +825,7 @@  discard block
 block discarded – undo
825 825
                     $alignment = $alignment === 'left' ? 'center' : 'right';
826 826
                 }
827 827
 
828
-                $alignments []= $alignment;
828
+                $alignments [] = $alignment;
829 829
             }
830 830
 
831 831
             # ~
@@ -858,7 +858,7 @@  discard block
 block discarded – undo
858 858
                     );
859 859
                 }
860 860
 
861
-                $HeaderElements []= $HeaderElement;
861
+                $HeaderElements [] = $HeaderElement;
862 862
             }
863 863
 
864 864
             # ~
@@ -872,18 +872,18 @@  discard block
 block discarded – undo
872 872
                 ),
873 873
             );
874 874
 
875
-            $Block['element']['text'] []= array(
875
+            $Block['element']['text'] [] = array(
876 876
                 'name' => 'thead',
877 877
                 'handler' => 'elements',
878 878
             );
879 879
 
880
-            $Block['element']['text'] []= array(
880
+            $Block['element']['text'] [] = array(
881 881
                 'name' => 'tbody',
882 882
                 'handler' => 'elements',
883 883
                 'text' => array(),
884 884
             );
885 885
 
886
-            $Block['element']['text'][0]['text'] []= array(
886
+            $Block['element']['text'][0]['text'] [] = array(
887 887
                 'name' => 'tr',
888 888
                 'handler' => 'elements',
889 889
                 'text' => $HeaderElements,
@@ -928,7 +928,7 @@  discard block
 block discarded – undo
928 928
                     );
929 929
                 }
930 930
 
931
-                $Elements []= $Element;
931
+                $Elements [] = $Element;
932 932
             }
933 933
 
934 934
             $Element = array(
@@ -937,7 +937,7 @@  discard block
 block discarded – undo
937 937
                 'text' => $Elements,
938 938
             );
939 939
 
940
-            $Block['element']['text'][1]['text'] []= $Element;
940
+            $Block['element']['text'][1]['text'] [] = $Element;
941 941
 
942 942
             return $Block;
943 943
         }
@@ -1005,7 +1005,7 @@  discard block
 block discarded – undo
1005 1005
             {
1006 1006
                 $Inline = $this->{'inline'.$inlineType}($Excerpt);
1007 1007
 
1008
-                if ( ! isset($Inline))
1008
+                if (!isset($Inline))
1009 1009
                 {
1010 1010
                     continue;
1011 1011
                 }
@@ -1019,7 +1019,7 @@  discard block
 block discarded – undo
1019 1019
 
1020 1020
                 # sets a default inline position
1021 1021
 
1022
-                if ( ! isset($Inline['position']))
1022
+                if (!isset($Inline['position']))
1023 1023
                 {
1024 1024
                     $Inline['position'] = $markerPosition;
1025 1025
                 }
@@ -1083,9 +1083,9 @@  discard block
 block discarded – undo
1083 1083
         {
1084 1084
             $url = $matches[1];
1085 1085
 
1086
-            if ( ! isset($matches[2]))
1086
+            if (!isset($matches[2]))
1087 1087
             {
1088
-                $url = 'mailto:' . $url;
1088
+                $url = 'mailto:'.$url;
1089 1089
             }
1090 1090
 
1091 1091
             return array(
@@ -1103,7 +1103,7 @@  discard block
 block discarded – undo
1103 1103
 
1104 1104
     protected function inlineEmphasis($Excerpt)
1105 1105
     {
1106
-        if ( ! isset($Excerpt['text'][1]))
1106
+        if (!isset($Excerpt['text'][1]))
1107 1107
         {
1108 1108
             return;
1109 1109
         }
@@ -1146,12 +1146,12 @@  discard block
 block discarded – undo
1146 1146
 
1147 1147
     protected function inlineImage($Excerpt)
1148 1148
     {
1149
-        if ( ! isset($Excerpt['text'][1]) or $Excerpt['text'][1] !== '[')
1149
+        if (!isset($Excerpt['text'][1]) or $Excerpt['text'][1] !== '[')
1150 1150
         {
1151 1151
             return;
1152 1152
         }
1153 1153
 
1154
-        $Excerpt['text']= substr($Excerpt['text'], 1);
1154
+        $Excerpt['text'] = substr($Excerpt['text'], 1);
1155 1155
 
1156 1156
         $Link = $this->inlineLink($Excerpt);
1157 1157
 
@@ -1232,7 +1232,7 @@  discard block
 block discarded – undo
1232 1232
                 $definition = strtolower($Element['text']);
1233 1233
             }
1234 1234
 
1235
-            if ( ! isset($this->DefinitionData['Reference'][$definition]))
1235
+            if (!isset($this->DefinitionData['Reference'][$definition]))
1236 1236
             {
1237 1237
                 return;
1238 1238
             }
@@ -1285,7 +1285,7 @@  discard block
 block discarded – undo
1285 1285
 
1286 1286
     protected function inlineSpecialCharacter($Excerpt)
1287 1287
     {
1288
-        if ($Excerpt['text'][0] === '&' and ! preg_match('/^&#?\w+;/', $Excerpt['text']))
1288
+        if ($Excerpt['text'][0] === '&' and !preg_match('/^&#?\w+;/', $Excerpt['text']))
1289 1289
         {
1290 1290
             return array(
1291 1291
                 'markup' => '&amp;',
@@ -1306,7 +1306,7 @@  discard block
 block discarded – undo
1306 1306
 
1307 1307
     protected function inlineStrikethrough($Excerpt)
1308 1308
     {
1309
-        if ( ! isset($Excerpt['text'][1]))
1309
+        if (!isset($Excerpt['text'][1]))
1310 1310
         {
1311 1311
             return;
1312 1312
         }
@@ -1326,7 +1326,7 @@  discard block
 block discarded – undo
1326 1326
 
1327 1327
     protected function inlineUrl($Excerpt)
1328 1328
     {
1329
-        if ($this->urlsLinked !== true or ! isset($Excerpt['text'][2]) or $Excerpt['text'][2] !== '/')
1329
+        if ($this->urlsLinked !== true or !isset($Excerpt['text'][2]) or $Excerpt['text'][2] !== '/')
1330 1330
         {
1331 1331
             return;
1332 1332
         }
@@ -1435,7 +1435,7 @@  discard block
 block discarded – undo
1435 1435
 
1436 1436
         foreach ($Elements as $Element)
1437 1437
         {
1438
-            $markup .= "\n" . $this->element($Element);
1438
+            $markup .= "\n".$this->element($Element);
1439 1439
         }
1440 1440
 
1441 1441
         $markup .= "\n";
@@ -1451,7 +1451,7 @@  discard block
 block discarded – undo
1451 1451
 
1452 1452
         $trimmedMarkup = trim($markup);
1453 1453
 
1454
-        if ( ! in_array('', $lines) and substr($trimmedMarkup, 0, 3) === '<p>')
1454
+        if (!in_array('', $lines) and substr($trimmedMarkup, 0, 3) === '<p>')
1455 1455
         {
1456 1456
             $markup = $trimmedMarkup;
1457 1457
             $markup = substr($markup, 3);
@@ -1527,8 +1527,8 @@  discard block
 block discarded – undo
1527 1527
     protected $textLevelElements = array(
1528 1528
         'a', 'br', 'bdo', 'abbr', 'blink', 'nextid', 'acronym', 'basefont',
1529 1529
         'b', 'em', 'big', 'cite', 'small', 'spacer', 'listing',
1530
-        'i', 'rp', 'del', 'code',          'strike', 'marquee',
1531
-        'q', 'rt', 'ins', 'font',          'strong',
1530
+        'i', 'rp', 'del', 'code', 'strike', 'marquee',
1531
+        'q', 'rt', 'ins', 'font', 'strong',
1532 1532
         's', 'tt', 'sub', 'mark',
1533 1533
         'u', 'xm', 'sup', 'nobr',
1534 1534
                    'var', 'ruby',
Please login to merge, or discard this patch.