From 79d03ac9b98e003254b328cbe17c3cc823439a99 Mon Sep 17 00:00:00 2001 From: Luuk Verhoeven Date: Mon, 11 Dec 2023 22:59:57 +0100 Subject: [PATCH] Refactor for MOODLE41 & PHP 7.4 --- classes/github.php | 6 +++--- styles.css | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/classes/github.php b/classes/github.php index fbd4f277..5d7eed3b 100644 --- a/classes/github.php +++ b/classes/github.php @@ -63,15 +63,15 @@ public function set_basic_auth(string $username, string $password): bool { /** * Get * - * @param string $endpoint + * @param string $url * @param array $params * @param array $options * @return bool|string */ - public function get(string $endpoint, array $params = [], array $options = []) { + public function get($url, $params = [], $options = []) { $repolink = 'https://api.github.com/repos/'; $repolink .= $this->repo; - $repolink .= $endpoint; + $repolink .= $url; return parent::get($repolink, $params, $options); } diff --git a/styles.css b/styles.css index 7a78dba6..dd96a315 100644 --- a/styles.css +++ b/styles.css @@ -46,8 +46,8 @@ } #page-blocks-configurable_reports-viewreport .generaltable th.header { - background-color: #f5f5dc; - border-bottom-width: 2px; + background-color: #f8f9fa; + border-bottom-width: 1px; } /* Center align bottom report statistics