Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndr-w authored and github-actions[bot] committed Dec 15, 2023
1 parent 8d08bef commit bc137fc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fragments/FAQPage.json-ld.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ function htmlEncode($value)
function getAuthor($question)
{
return [
"@type" => "Person",
"name" => json_encode($question->getAuthor(), $GLOBALS['jsonOptions'])
'@type' => 'Person',
'name' => json_encode($question->getAuthor(), $GLOBALS['jsonOptions']),
];
}
?>
Expand Down
4 changes: 2 additions & 2 deletions fragments/qanda.json-ld.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ function htmlEncode($value)
function getAuthor($question)
{
return [
"@type" => "Person",
"name" => json_encode($question->getAuthor(), $GLOBALS['jsonOptions'])
'@type' => 'Person',
'name' => json_encode($question->getAuthor(), $GLOBALS['jsonOptions']),
];
}

Expand Down
4 changes: 4 additions & 0 deletions lib/qanda.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public function getQuestion(?string $lang = null): string
}
return $this->getValue('question');
}

/**
* Findet Datensätze anhand ihrer IDs.
* Finds records by their IDs.
Expand Down Expand Up @@ -80,6 +81,7 @@ public static function findByCategoryIds(array $category_ids, float $status = 1)
$ids = implode(',', $category_ids);
return self::query()->whereRAW('status >= ' . $status . ' AND FIND_IN_SET(category_ids, "' . $ids . '")')->find();
}

/**
* Gibt die Antwort in der angegebenen Sprache zurück, falls vorhanden, sonst in der Standardsprache.
* Returns the answer in the specified language if available, otherwise in the default language.
Expand Down Expand Up @@ -133,6 +135,7 @@ public function getTranslation(?string $lang = null): mixed
}
return $this->getRelatedCollection('lang');
}

/**
* Gibt den Autor zurück.
* Returns the author.
Expand Down Expand Up @@ -167,6 +170,7 @@ public function getUrl(string $param = 'question-header-'): string

return rtrim($host, '/') . '#' . $param . $this->getId();
}

/**
* Gibt die JSON-LD-Darstellung einer Frage zurück.
* Returns the JSON-LD representation of a question.
Expand Down
2 changes: 2 additions & 0 deletions lib/qanda_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public function getAnswer(): string
{
return $this->getValue('answer');
}

/**
* Setzt den Wert für die Antwort.
* Sets the value for the answer.
Expand Down Expand Up @@ -72,6 +73,7 @@ public function setQuestion(string $question): self
$this->setValue('question', $question);
return $this;
}

/**
* Gibt die Übersetzung für eine bestimmte Frage und Sprache zurück.
* Returns the translation for a specific question and language.
Expand Down

0 comments on commit bc137fc

Please sign in to comment.