Skip to content

Commit 872d007

Browse files
committed
Fix redeclare
1 parent 532d79a commit 872d007

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

bootstrap/helpers.php

+8
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,11 @@ function svg($src)
1010
{
1111
return file_get_contents(public_path('assets/svg/' . $src . '.svg'));
1212
}
13+
14+
/**
15+
* Convert some text to Markdown...
16+
*/
17+
function markdown($text)
18+
{
19+
return (new ParsedownExtra)->text($text);
20+
}

routes/web.php

+2-8
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,8 @@
33
/**
44
* Set the default documentation version...
55
*/
6-
define('DEFAULT_VERSION', '5.5');
7-
8-
/**
9-
* Convert some text to Markdown...
10-
*/
11-
function markdown($text)
12-
{
13-
return (new ParsedownExtra)->text($text);
6+
if (! defined('DEFAULT_VERSION')) {
7+
define('DEFAULT_VERSION', '5.5');
148
}
159

1610
Route::get('/', function () {

0 commit comments

Comments
 (0)