improving bundle workflow.
This commit is contained in:
@@ -351,6 +351,18 @@ function str_contains($haystack, $needle)
|
||||
return strpos($haystack, $needle) !== false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Cap a string with a single instance of the given string.
|
||||
*
|
||||
* @param string $value
|
||||
* @param string $cap
|
||||
* @return string
|
||||
*/
|
||||
function str_finish($value, $cap)
|
||||
{
|
||||
return rtrim($value, $cap).$cap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the value of the given item.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user