Skip to content

Commit ddc199b

Browse files
committed
Rename include_route_files to include_files_in_folder
1 parent 582c8ab commit ddc199b

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

app/Helpers/Global/SystemHelper.php

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3-
if (! function_exists('include_route_files')) {
3+
if (! function_exists('include_files_in_folder')) {
44
/**
55
* Loops through a folder and requires all PHP files
66
* Searches sub-directories as well.
77
*
88
* @param $folder
99
*/
10-
function include_route_files($folder)
10+
function include_files_in_folder($folder)
1111
{
1212
try {
1313
$rdi = new RecursiveDirectoryIterator($folder);
@@ -25,3 +25,16 @@ function include_route_files($folder)
2525
}
2626
}
2727
}
28+
29+
if (! function_exists('include_route_files')) {
30+
/**
31+
* Loops through a folder and requires all PHP files
32+
* Searches sub-directories as well.
33+
*
34+
* @param $folder
35+
*/
36+
function include_route_files($folder)
37+
{
38+
include_files_in_folder($folder);
39+
}
40+
}

0 commit comments

Comments
 (0)