Skip to content

Commit 5566fc6

Browse files
committed
ci: re-enable phpdoc
1 parent 494250f commit 5566fc6

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ jobs:
99
with:
1010
extra_plugin_runners: 'moodle-plugin-ci add-plugin --branch MOODLE_405_STABLE catalyst/moodle-local_smartmedia'
1111
disable_phpcpd: true
12-
disable_phpdoc: true

download_metadata.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
// You should have received a copy of the GNU General Public License
1515
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
1616

17-
use core\url;
18-
use local_smartmedia\aws_api;
19-
use local_smartmedia\aws_elastic_transcoder;
20-
use local_smartmedia\conversion;
21-
2217
/**
2318
* Smart media metadata download portal.
2419
*
@@ -27,6 +22,11 @@
2722
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2823
*/
2924

25+
use core\url;
26+
use local_smartmedia\aws_api;
27+
use local_smartmedia\aws_elastic_transcoder;
28+
use local_smartmedia\conversion;
29+
3030
require_once(__DIR__ . '/../../config.php');
3131
require_admin();
3232
confirm_sesskey();

filter.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ class filter_smartmedia extends moodle_text_filter {
124124
*
125125
* @param context $context The current context.
126126
* @param array $localconfig Any context-specific configuration for this filter.
127+
* @param conversion|null $conversion
127128
*/
128129
public function __construct($context, array $localconfig, conversion $conversion = null) {
129130
parent::__construct($context, $localconfig);
@@ -370,7 +371,8 @@ private function get_placeholder_markup(string $linkhref, string $fulltext): str
370371
* Given a matched link check if there is smartmedia available,
371372
* and return updated link if there is.
372373
*
373-
* @param array $matches An array of link matches.
374+
* @param string $target
375+
* @param string $fulltext
374376
* @return array Array of newtext and whether the text was replaced
375377
*/
376378
private function replace($target, $fulltext): array {

tests/filter_test.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,13 @@ public function test_filter_replace_dataprovider() {
466466
}
467467

468468
/**
469+
* Test filter replacement
470+
* @param string $text
471+
* @param string $regex
472+
* @param int $matchcount
473+
* @param int $mediaplugincount
474+
* @param string $pageurl
475+
* @param string $contextkey
469476
* @dataProvider test_filter_replace_dataprovider
470477
*/
471478
public function test_filter_replace($text, $regex, $matchcount, $mediaplugincount, $pageurl, $contextkey): void {

0 commit comments

Comments
 (0)