Skip to content

Commit bfaaab4

Browse files
committed
add DocBlock to RegexParser
1 parent 76326e2 commit bfaaab4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Helper/RegexParser.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
class RegexParser
66
{
7+
/**
8+
* Parses a string and returns the string left from and inside the parenthesis: left(inside)
9+
*
10+
* @param string $string
11+
* @return array
12+
*/
713
public static function parseParenthesis(string $string): array
814
{
915
if (str_contains($string, '(') && str_contains($string, ')')) {

0 commit comments

Comments
 (0)