mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
chore: style changes
This commit is contained in:
@ -77,6 +77,9 @@ final class Str
|
||||
return substr($subject, 0, $pos);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the content after the given "search".
|
||||
*/
|
||||
public static function after(string $subject, string $search): string
|
||||
{
|
||||
return $search === '' ? $subject : array_reverse(explode($search, $subject, 2))[0];
|
||||
|
||||
Reference in New Issue
Block a user