Skip to content

Commit bc7b44e

Browse files
committed
Correction of errors
1 parent 72ae093 commit bc7b44e

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

src/DataModel/Table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ public function toString(): string
3434

3535
for ($i = 0; $i < count($this->header); $i++) {
3636
if ($i + 1 == count($this->header)) {
37-
$tableMarkup .= $this->header[$i] .PHP_EOL;
37+
$tableMarkup .= "!" . $this->header[$i] .PHP_EOL;
3838
} else {
39-
$tableMarkup .= $this->header[$i] ."!";
39+
$tableMarkup .= "!" . $this->header[$i] .PHP_EOL;
4040
}
4141
}
4242
$tableMarkup .= "|-" . PHP_EOL;

src/ParserCategorys.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public function __construct(string $text, string $namespace = "") {
1212
$this->categorys = array();
1313
$this->parse();
1414
}
15-
private function parse() : void
15+
public function parse() : void
1616
{
1717
if (preg_match_all("\[\[\s*".$this->namespace."\s*\:([^\]\]]+?)\]\]", $this->text, $matches)) {
1818
foreach ($matches[1] as $nil => $mvalue) {

src/ParserExternalLinks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ private function find_sub_links($string) {
1313
preg_match_all("/\[(https?:\/\/\S+)(.*?)\]/s", $string, $matches);
1414
return $matches;
1515
}
16-
private function parse() : void
16+
public function parse() : void
1717
{
1818
$text_links = $this->find_sub_links($this->text);
1919
$this->links = [];

src/ParserInternalLinks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ private function find_sub_links($string) {
1313
preg_match_all("/\[{2}((?>[^\[\]]+)|(?R))*\]{2}/x", $string, $matches);
1414
return $matches;
1515
}
16-
private function parse() : void
16+
public function parse() : void
1717
{
1818
$text_links = $this->find_sub_links($this->text);
1919
$this->links = [];

src/ParserTemplate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function __construct(string $templateText) {
1313
$this->parameters = array();
1414
$this->parse();
1515
}
16-
private function parse() : void
16+
public function parse() : void
1717
{
1818
if (preg_match("/^\{\{(.*)(\}\})$/s", $this->templateText, $matchesR)) {
1919
$DTemplate = $matchesR[1];

src/ParserTemplates.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ private function find_sub_templates($string) {
1313
preg_match_all("/\{{2}((?>[^\{\}]+)|(?R))*\}{2}/x", $string, $matches);
1414
return $matches;
1515
}
16-
private function parse() : void
16+
public function parse() : void
1717
{
1818
$text_templates = $this->find_sub_templates($this->text);
1919
$this->templates = [];

0 commit comments

Comments
 (0)