Skip to content

Commit

Permalink
Merge pull request #63 from TangoMan75/master
Browse files Browse the repository at this point in the history
 is provided 2 parameters on lines 199 and 201, but the method signat…
  • Loading branch information
ArthurHoaro authored Jan 17, 2021
2 parents d2321f3 + 0f85bc1 commit d01129a
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 d01129a

Please sign in to comment.