Skip to content

Commit

Permalink
is provided 2 parameters on lines 199 and 201, but the method signat…
Browse files Browse the repository at this point in the history
…ure accepts only 1 parameter.
  • Loading branch information
TangoMan75 committed Jan 16, 2021
1 parent d2321f3 commit 0f85bc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NetscapeBookmarkParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ public function parseString(string $bookmarkString): array
$this->logger->debug('[#' . $line_no . '] Date: ' . $this->items[$i]['time']);

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

0 comments on commit 0f85bc1

Please sign in to comment.