Skip to content

Commit b4d67f9

Browse files
authored
[12.x] sort helper functions in alphabetic order (#56031)
1 parent 7672f67 commit b4d67f9

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/Illuminate/Foundation/helpers.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,19 @@ function info($message, $context = [])
546546
}
547547
}
548548

549+
if (! function_exists('lang_path')) {
550+
/**
551+
* Get the path to the language folder.
552+
*
553+
* @param string $path
554+
* @return string
555+
*/
556+
function lang_path($path = '')
557+
{
558+
return app()->langPath($path);
559+
}
560+
}
561+
549562
if (! function_exists('logger')) {
550563
/**
551564
* Log a debug message to the logs.
@@ -563,19 +576,6 @@ function logger($message = null, array $context = [])
563576
}
564577
}
565578

566-
if (! function_exists('lang_path')) {
567-
/**
568-
* Get the path to the language folder.
569-
*
570-
* @param string $path
571-
* @return string
572-
*/
573-
function lang_path($path = '')
574-
{
575-
return app()->langPath($path);
576-
}
577-
}
578-
579579
if (! function_exists('logs')) {
580580
/**
581581
* Get a log driver instance.

0 commit comments

Comments
 (0)