Prevent usage of Less

This commit is contained in:
the-djmaze 2022-02-15 14:48:32 +01:00
parent 29cbd0fbb6
commit 7838aee0f1
4 changed files with 27 additions and 13 deletions

View file

@ -26,6 +26,13 @@ if (!function_exists('str_starts_with')) {
return 0 === strncmp($haystack, $needle, strlen($needle));
}
}
if (!function_exists('str_ends_with')) {
function str_ends_with(string $haystack, string $needle) : bool
{
$length = strlen($needle);
return $length ? substr($haystack, -$length) === $needle : true;
}
}
if (!defined('APP_VERSION')) {
define('APP_VERSION', basename(__DIR__));