@@ -6,5 +6,5 @@ |
||
6 | 6 | $baseDir = dirname($vendorDir); |
7 | 7 | |
8 | 8 | return array( |
9 | - '2cffec82183ee1cea088009cef9a6fc3' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier.composer.php', |
|
9 | + '2cffec82183ee1cea088009cef9a6fc3' => $vendorDir.'/ezyang/htmlpurifier/library/HTMLPurifier.composer.php', |
|
10 | 10 | ); |
@@ -1,3 +1,3 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include __DIR__ . "/../vendor/autoload.php"; |
|
3 | +include __DIR__."/../vendor/autoload.php"; |
@@ -12,23 +12,23 @@ discard block |
||
12 | 12 | * Supported filters. |
13 | 13 | */ |
14 | 14 | private $standardFilters = [ |
15 | - 'yamlfrontmatter', |
|
16 | - 'bbcode', |
|
17 | - 'clickable', |
|
18 | - 'markdown', |
|
19 | - 'nl2br', |
|
20 | - 'shortcode', |
|
21 | - 'purify', |
|
22 | - 'titlefromh1', |
|
23 | - ]; |
|
24 | - |
|
25 | - |
|
26 | - |
|
27 | - /** |
|
28 | - * Test. |
|
29 | - * |
|
30 | - * @return void |
|
31 | - */ |
|
15 | + 'yamlfrontmatter', |
|
16 | + 'bbcode', |
|
17 | + 'clickable', |
|
18 | + 'markdown', |
|
19 | + 'nl2br', |
|
20 | + 'shortcode', |
|
21 | + 'purify', |
|
22 | + 'titlefromh1', |
|
23 | + ]; |
|
24 | + |
|
25 | + |
|
26 | + |
|
27 | + /** |
|
28 | + * Test. |
|
29 | + * |
|
30 | + * @return void |
|
31 | + */ |
|
32 | 32 | public function testTitleFromFirstH1() |
33 | 33 | { |
34 | 34 | $filter = new CTextFilter(); |
@@ -59,13 +59,13 @@ discard block |
||
59 | 59 | |
60 | 60 | |
61 | 61 | |
62 | - /** |
|
63 | - * Test. |
|
64 | - * |
|
65 | - * @expectedException /Mos/TextFilter/Exception |
|
66 | - * |
|
67 | - * @return void |
|
68 | - */ |
|
62 | + /** |
|
63 | + * Test. |
|
64 | + * |
|
65 | + * @expectedException /Mos/TextFilter/Exception |
|
66 | + * |
|
67 | + * @return void |
|
68 | + */ |
|
69 | 69 | public function testJsonFrontMatterException() |
70 | 70 | { |
71 | 71 | $filter = new CTextFilter(); |
@@ -80,11 +80,11 @@ discard block |
||
80 | 80 | |
81 | 81 | |
82 | 82 | |
83 | - /** |
|
84 | - * Test. |
|
85 | - * |
|
86 | - * @return void |
|
87 | - */ |
|
83 | + /** |
|
84 | + * Test. |
|
85 | + * |
|
86 | + * @return void |
|
87 | + */ |
|
88 | 88 | public function testJsonFrontMatter() |
89 | 89 | { |
90 | 90 | $filter = new CTextFilter(); |
@@ -439,7 +439,7 @@ |
||
439 | 439 | [FIGURE src=$src caption="$caption"] |
440 | 440 | EOD; |
441 | 441 | |
442 | - $exp = <<<EOD |
|
442 | + $exp = <<<EOD |
|
443 | 443 | <figure class='figure'> |
444 | 444 | <a href='$src'><img src='$src' alt='$caption'/></a> |
445 | 445 | <figcaption markdown=1>$caption</figcaption> |
@@ -19,16 +19,16 @@ |
||
19 | 19 | |
20 | 20 | interface MarkdownInterface { |
21 | 21 | |
22 | - # |
|
23 | - # Initialize the parser and return the result of its transform method. |
|
24 | - # This will work fine for derived classes too. |
|
25 | - # |
|
26 | - public static function defaultTransform($text); |
|
22 | + # |
|
23 | + # Initialize the parser and return the result of its transform method. |
|
24 | + # This will work fine for derived classes too. |
|
25 | + # |
|
26 | + public static function defaultTransform($text); |
|
27 | 27 | |
28 | - # |
|
29 | - # Main function. Performs some preprocessing on the input text |
|
30 | - # and pass it through the document gamut. |
|
31 | - # |
|
32 | - public function transform($text); |
|
28 | + # |
|
29 | + # Main function. Performs some preprocessing on the input text |
|
30 | + # and pass it through the document gamut. |
|
31 | + # |
|
32 | + public function transform($text); |
|
33 | 33 | |
34 | 34 | } |
@@ -6,6 +6,6 @@ |
||
6 | 6 | # Take a look at the PSR-0-compatible class autoloading implementation |
7 | 7 | # in the Readme.php file if you want a simple autoloader setup. |
8 | 8 | |
9 | -require_once dirname(__FILE__) . '/MarkdownInterface.php'; |
|
10 | -require_once dirname(__FILE__) . '/Markdown.php'; |
|
11 | -require_once dirname(__FILE__) . '/MarkdownExtra.php'; |
|
9 | +require_once dirname(__FILE__).'/MarkdownInterface.php'; |
|
10 | +require_once dirname(__FILE__).'/Markdown.php'; |
|
11 | +require_once dirname(__FILE__).'/MarkdownExtra.php'; |
@@ -6,4 +6,4 @@ |
||
6 | 6 | # Take a look at the PSR-0-compatible class autoloading implementation |
7 | 7 | # in the Readme.php file if you want a simple autoloader setup. |
8 | 8 | |
9 | -require_once dirname(__FILE__) . '/MarkdownInterface.php'; |
|
9 | +require_once dirname(__FILE__).'/MarkdownInterface.php'; |
@@ -6,5 +6,5 @@ |
||
6 | 6 | # Take a look at the PSR-0-compatible class autoloading implementation |
7 | 7 | # in the Readme.php file if you want a simple autoloader setup. |
8 | 8 | |
9 | -require_once dirname(__FILE__) . '/MarkdownInterface.php'; |
|
10 | -require_once dirname(__FILE__) . '/Markdown.php'; |
|
9 | +require_once dirname(__FILE__).'/MarkdownInterface.php'; |
|
10 | +require_once dirname(__FILE__).'/Markdown.php'; |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | |
7 | 7 | # Install PSR-0-compatible class autoloader |
8 | 8 | spl_autoload_register(function($class){ |
9 | - require preg_replace('{\\\\|_(?!.*\\\\)}', DIRECTORY_SEPARATOR, ltrim($class, '\\')).'.php'; |
|
9 | + require preg_replace('{\\\\|_(?!.*\\\\)}', DIRECTORY_SEPARATOR, ltrim($class, '\\')).'.php'; |
|
10 | 10 | }); |
11 | 11 | |
12 | 12 | # Get Markdown class |
@@ -24,8 +24,8 @@ discard block |
||
24 | 24 | </head> |
25 | 25 | <body> |
26 | 26 | <?php |
27 | - # Put HTML content in the document |
|
28 | - echo $html; |
|
29 | - ?> |
|
27 | + # Put HTML content in the document |
|
28 | + echo $html; |
|
29 | + ?> |
|
30 | 30 | </body> |
31 | 31 | </html> |
@@ -5,7 +5,7 @@ |
||
5 | 5 | # you like. |
6 | 6 | |
7 | 7 | # Install PSR-0-compatible class autoloader |
8 | -spl_autoload_register(function($class){ |
|
8 | +spl_autoload_register(function($class) { |
|
9 | 9 | require preg_replace('{\\\\|_(?!.*\\\\)}', DIRECTORY_SEPARATOR, ltrim($class, '\\')).'.php'; |
10 | 10 | }); |
11 | 11 |
@@ -2,6 +2,6 @@ |
||
2 | 2 | |
3 | 3 | // autoload.php @generated by Composer |
4 | 4 | |
5 | -require_once __DIR__ . '/composer' . '/autoload_real.php'; |
|
5 | +require_once __DIR__.'/composer'.'/autoload_real.php'; |
|
6 | 6 | |
7 | 7 | return ComposerAutoloaderInit7b593c329d00694ef3fa74c9b77a3c76::getLoader(); |