Skip to content

Commit

Permalink
Fix PHPDocs style problems
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Perez committed Sep 25, 2019
1 parent 9d4cd66 commit 2aa7f33
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
/**
* Fontawesome icons filter class.
*
* @copyright 2013 Julian Ridden <julian@moodleman.net>
* @author 2019 Adrian Perez, Fernfachhochschule Schweiz (FFHS) <adrian.perez@ffhs.ch>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class filter_fontawesome extends moodle_text_filter {

Expand Down
8 changes: 7 additions & 1 deletion tests/filter_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
global $CFG;
require_once($CFG->dirroot . '/filter/fontawesome/filter.php');


/**
* Unit tests for filter_fontawesome.
*
Expand All @@ -40,6 +39,7 @@
*/
class filter_fontawesome_testcase extends advanced_testcase {

/** @var object $filter contains the instance */
protected $filter;

protected function setUp() {
Expand All @@ -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';
Expand Down

0 comments on commit 2aa7f33

Please sign in to comment.