Skip to content

Commit d01129a

Browse files
authored
Merge pull request #63 from TangoMan75/master
is provided 2 parameters on lines 199 and 201, but the method signat…
2 parents d2321f3 + 0f85bc1 commit d01129a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

NetscapeBookmarkParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ public function parseString(string $bookmarkString): array
196196
$this->logger->debug('[#' . $line_no . '] Date: ' . $this->items[$i]['time']);
197197

198198
if (preg_match('/(public|published|pub)="(.*?)"/i', $line, $m9)) {
199-
$this->items[$i]['pub'] = $this->parseBoolean($m9[2], false) ? 1 : 0;
199+
$this->items[$i]['pub'] = $this->parseBoolean($m9[2]) ? 1 : 0;
200200
} elseif (preg_match('/(private|shared)="(.*?)"/i', $line, $m10)) {
201-
$this->items[$i]['pub'] = $this->parseBoolean($m10[2], true) ? 0 : 1;
201+
$this->items[$i]['pub'] = $this->parseBoolean($m10[2]) ? 0 : 1;
202202
} else {
203203
$this->items[$i]['pub'] = $this->defaultPub;
204204
}

0 commit comments

Comments
 (0)