|
@@ -31,7 +31,7 @@ discard block |
|
|
block discarded – undo |
|
31
|
31
|
public function __construct(array $singleLine = null, array $multiLine = null) |
|
32
|
32
|
{ |
|
33
|
33
|
$this->singleLine = $singleLine ?: []; |
|
34
|
|
- $this->multiLine = $multiLine ?: []; |
|
|
34
|
+ $this->multiLine = $multiLine ?: []; |
|
35
|
35
|
} |
|
36
|
36
|
|
|
37
|
37
|
|
|
@@ -49,7 +49,7 @@ discard block |
|
|
block discarded – undo |
|
49
|
49
|
$all = []; |
|
50
|
50
|
|
|
51
|
51
|
foreach ($this->multiLine as $name => $comment) { |
|
52
|
|
- $comment = array_map(function ($e) { return preg_quote($e, '/'); }, $comment); |
|
|
52
|
+ $comment = array_map(function($e) { return preg_quote($e, '/'); }, $comment); |
|
53
|
53
|
|
|
54
|
54
|
$all[] = [$name, "/{$comment[0]}(.*?){$comment[1]}/ms"]; |
|
55
|
55
|
} |
Please login to merge, or discard this patch.