Skip to content

Commit 5810a34

Browse files
author
Genert Org
committed
Minor refactor
1 parent 2e3562d commit 5810a34

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/Parser/Parser.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Parser {
1717

1818
protected $parsers = [];
1919

20-
public function searchAndReplace(string $pattern, string $replace, string $source): string
20+
protected function searchAndReplace(string $pattern, string $replace, string $source): string
2121
{
2222
while (preg_match($pattern, $source)) {
2323
$source = preg_replace($pattern, $replace, $source);
@@ -26,15 +26,6 @@ public function searchAndReplace(string $pattern, string $replace, string $sourc
2626
return $source;
2727
}
2828

29-
public function addParser(string $name, string $pattern, string $replace, string $content)
30-
{
31-
$this->parsers[$name] = [
32-
'pattern' => $pattern,
33-
'replace' => $replace,
34-
'content' => $content
35-
];
36-
}
37-
3829
public function only($only = null)
3930
{
4031
$only = is_array($only) ? $only : func_get_args();

0 commit comments

Comments
 (0)