From 2aa7f335808fb5a27a666632ddbb3085faa5b6bb Mon Sep 17 00:00:00 2001 From: Adrian Perez Date: Mon, 27 May 2019 10:02:15 +0200 Subject: [PATCH] Fix PHPDocs style problems --- filter.php | 3 +++ tests/filter_test.php | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/filter.php b/filter.php index 15d7a86..409e023 100644 --- a/filter.php +++ b/filter.php @@ -28,6 +28,9 @@ /** * Fontawesome icons filter class. * + * @copyright 2013 Julian Ridden + * @author 2019 Adrian Perez, Fernfachhochschule Schweiz (FFHS) + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class filter_fontawesome extends moodle_text_filter { diff --git a/tests/filter_test.php b/tests/filter_test.php index cb16f53..51f386a 100644 --- a/tests/filter_test.php +++ b/tests/filter_test.php @@ -28,7 +28,6 @@ global $CFG; require_once($CFG->dirroot . '/filter/fontawesome/filter.php'); - /** * Unit tests for filter_fontawesome. * @@ -40,6 +39,7 @@ */ class filter_fontawesome_testcase extends advanced_testcase { + /** @var object $filter contains the instance */ protected $filter; protected function setUp() { @@ -48,6 +48,12 @@ protected function setUp() { $this->filter = new filter_fontawesome(context_system::instance(), array()); } + /** + * Translate the text for a single fontawesome icon into the rendered value. + * + * @param string $content contains the fontawesome icon class + * @param bool $filtershouldrun does this run must success or not + */ public function run_with_content($content, $filtershouldrun) { $pre = 'Some pre text'; $post = 'Some post text';