[Scummvm-git-logs] scummvm-web master -> 0ddd37e5f718f3377e16863b468562ac2853f741
lotharsm
mail at serra.me
Wed Nov 10 17:22:36 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .
Summary:
0ddd37e5f7 WEB: Fixing lint errors
Commit: 0ddd37e5f718f3377e16863b468562ac2853f741
https://github.com/scummvm/scummvm-web/commit/0ddd37e5f718f3377e16863b468562ac2853f741
Author: Thunderforge (wjherrmann at gmail.com)
Date: 2021-11-10T18:22:34+01:00
Commit Message:
WEB: Fixing lint errors
Ran `composer lint` and accepted its auto-fixes
Changed paths:
include/OrmObjects/Compatibility.php
include/Pages/StaticPage.php
diff --git a/include/OrmObjects/Compatibility.php b/include/OrmObjects/Compatibility.php
index aa78286f..91e31eed 100644
--- a/include/OrmObjects/Compatibility.php
+++ b/include/OrmObjects/Compatibility.php
@@ -56,13 +56,13 @@ class Compatibility extends BaseCompatibility
}
$wikipediaPage = $this->getGame()->getWikipediaPage();
if ($wikipediaPage) {
- // If we have a full URL, such as for a non-English Wikipedia page, use that
- // Otherwise, assume it's a page for English Wikipedia
- if (str_starts_with($wikipediaPage, "https://")) {
- $links[] = "- [Wikipedia]({$this->getGame()->getWikipediaPage()})";
- } else {
- $links[] = "- [Wikipedia](https://en.wikipedia.org/wiki/{$this->getGame()->getWikipediaPage()})";
- }
+ // If we have a full URL, such as for a non-English Wikipedia page, use that
+ // Otherwise, assume it's a page for English Wikipedia
+ if (str_starts_with($wikipediaPage, "https://")) {
+ $links[] = "- [Wikipedia]({$this->getGame()->getWikipediaPage()})";
+ } else {
+ $links[] = "- [Wikipedia](https://en.wikipedia.org/wiki/{$this->getGame()->getWikipediaPage()})";
+ }
}
if ($links) {
$notes .= "\n\n### Links\n";
diff --git a/include/Pages/StaticPage.php b/include/Pages/StaticPage.php
index 4be82000..c44860bb 100644
--- a/include/Pages/StaticPage.php
+++ b/include/Pages/StaticPage.php
@@ -15,7 +15,7 @@ class StaticPage extends Controller
$this->filename = "html/$key.html";
if (!is_file($this->filename) || !is_readable($this->filename)) {
- throw new \ErrorException(\sprintf(self::FILE_NOT_FOUND, $this->filename));
+ throw new \ErrorException(\sprintf(self::FILE_NOT_FOUND, $this->filename));
}
}
More information about the Scummvm-git-logs
mailing list