Skip to content

Fix PHP warnings #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions phpdotnet/phd/Format.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function sortIDs() {
$this->sqlite->query('SELECT example(docbook_id) FROM ids WHERE element=\'example\' OR element=\'informalexample\'');
}

public function SQLiteIndex(&$context, $index, $id, $filename, $parent, $sdesc, $ldesc, $element, $previous, $next, $chunk) {
public function SQLiteIndex($context, $index, $id, $filename, $parent, $sdesc, $ldesc, $element, $previous, $next, $chunk) {
$this->indexes[$id] = array(
"docbook_id" => $id,
"filename" => $filename,
Expand All @@ -164,7 +164,7 @@ public function SQLiteIndex(&$context, $index, $id, $filename, $parent, $sdesc,
);
}

public function SQLiteChildren(&$context, $index, $id, $parent)
public function SQLiteChildren($context, $index, $id, $parent)
{
if (!isset($this->children[$parent])
|| !is_array($this->children[$parent])
Expand All @@ -174,23 +174,23 @@ public function SQLiteChildren(&$context, $index, $id, $parent)
$this->children[$parent][] = $id;
}

public function SQLiteRefname(&$context, $index, $id, $sdesc) {
public function SQLiteRefname($context, $index, $id, $sdesc) {
$ref = strtolower(str_replace(array("_", "::", "->"), array("-", "-", "-"), html_entity_decode($sdesc, ENT_QUOTES, 'UTF-8')));
$this->refs[$ref] = $id;
}

public function SQLiteVarname(&$context, $index, $id, $sdesc) {
public function SQLiteVarname($context, $index, $id, $sdesc) {
$this->vars[$sdesc] = $id;
}

public function SQLiteClassname(&$context, $index, $id, $sdesc) {
public function SQLiteClassname($context, $index, $id, $sdesc) {
$this->classes[strtolower($sdesc)] = $id;
}
public function SQLiteExample(&$context, $index, $id) {
public function SQLiteExample($context, $index, $id) {
$this->examples[] = $id;
}

public static function SQLiteFinal(&$context) {
public static function SQLiteFinal($context) {
return $context;
}

Expand Down