Skip to content

Commit 91bb076

Browse files
Make CI happy
1 parent cd6b59e commit 91bb076

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

classes/privacy/provider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class provider implements \core_privacy\local\metadata\null_provider {
3838
*
3939
* @return string
4040
*/
41-
public static function get_reason() : string {
41+
public static function get_reason(): string {
4242
return 'privacy:metadata';
4343
}
4444
}

lang/en/filter_opencast.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
$string['filtername'] = 'Opencast';
2727
$string['pluginname'] = 'Opencast Filter';
2828
$string['privacy:metadata'] = 'The Opencast filter plugin does not store any personal data.';
29-
$string['setting_episodeurl'] = 'URL templates for filtering';
30-
$string['setting_episodeurl_desc'] = 'URLs matching this template are replaced with the Opencast player. You must use the placeholder [EPISODEID] to indicate where the episode ID is contained in the URL e.g. http://stable.opencast.de/play/[EPISODEID]. If you want to filter for multiple URLs, enter each URL in a new line.';
3129
$string['setting_configurl'] = 'URL to Paella config.json';
3230
$string['setting_configurl_desc'] = 'URL of the config.json used by Paella Player. Can either be a absolute URL or a URL relative to the wwwroot.';
31+
$string['setting_episodeurl'] = 'URL templates for filtering';
32+
$string['setting_episodeurl_desc'] = 'URLs matching this template are replaced with the Opencast player. You must use the placeholder [EPISODEID] to indicate where the episode ID is contained in the URL e.g. http://stable.opencast.de/play/[EPISODEID]. If you want to filter for multiple URLs, enter each URL in a new line.';

tests/replacement_test.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
3737
* @group filter_opencast
3838
*/
39-
class replacement_test extends \advanced_testcase {
39+
final class replacement_test extends \advanced_testcase {
4040

4141
public function setUp(): void {
4242
$this->resetAfterTest();
@@ -52,53 +52,53 @@ public function setUp(): void {
5252
* @param string $input input for filter
5353
* @param string $output expected filter output.
5454
*/
55-
public function test_replacement($input, $output) {
55+
public function test_replacement($input, $output): void {
5656
$filter = new testable_filter(\context_system::instance(), []);
5757
$this->assertEquals($output, $filter->filter($input));
5858
}
5959

6060
/**
6161
* Provides test cases.
6262
*/
63-
public function replacement_provider() {
63+
public static function replacement_provider(): array {
6464
return [
6565
[
6666
' <p> hello </p> <video src="http://localhost:8080/play/f78ac136-8252-4b8e-bfea-4786c6993f03"> hello </video>',
67-
' <p> hello </p> <oc-video episode="f78ac136-8252-4b8e-bfea-4786c6993f03"/>'
67+
' <p> hello </p> <oc-video episode="f78ac136-8252-4b8e-bfea-4786c6993f03"/>',
6868
],
6969
[
7070
'<video src="https://somethingother.com"></video><video>
7171
<source
7272
src="https://stable.opencast.de/play/370e5bef-1d59-4440-858a-4df62e767dfc">
7373
</video>',
74-
'<video src="https://somethingother.com"></video><oc-video episode="370e5bef-1d59-4440-858a-4df62e767dfc"/>'
74+
'<video src="https://somethingother.com"></video><oc-video episode="370e5bef-1d59-4440-858a-4df62e767dfc"/>',
7575
],
7676
[
7777
'<video
7878
autoplay loopdiloop
7979
src="http://localhost:8080/play/f9e7b289-c8be-462f-80bf-d1f493c6ed55"></video>',
80-
'<oc-video episode="f9e7b289-c8be-462f-80bf-d1f493c6ed55"/>'
80+
'<oc-video episode="f9e7b289-c8be-462f-80bf-d1f493c6ed55"/>',
8181
],
8282
[
8383
'begin <video>
8484
<source src="https://somethingother.de/play/4380f73a-47a6-41c6-b854-ec0fa9d0261b">
8585
<source
8686
src="https://stable.opencast.de/play/2e0ca3bb-df8e-4913-9380-c925efaf5ac2">
8787
</video> end',
88-
'begin <oc-video episode="2e0ca3bb-df8e-4913-9380-c925efaf5ac2"/> end'
88+
'begin <oc-video episode="2e0ca3bb-df8e-4913-9380-c925efaf5ac2"/> end',
8989
],
9090
[
9191
'and a link <a href="https://www.google.com">link</a>
9292
<a href="http://localhost:8080/play/09b9d154-c849-429d-adea-3df4f76429b6">look, a video!</a>',
9393
'and a link <a href="https://www.google.com">link</a>
94-
<oc-video episode="09b9d154-c849-429d-adea-3df4f76429b6"/>'
94+
<oc-video episode="09b9d154-c849-429d-adea-3df4f76429b6"/>',
9595
],
9696
[
9797
'and now two <a
9898
href="http://localhost:8080/play/64b085e9-0142-4a10-a08e-3dbce055e740">look, a video!</a>
9999
<video src="http://localhost:8080/play/329885fe-d18e-4c6b-a896-dbc66463a6b2"></video>.',
100100
'and now two <oc-video episode="64b085e9-0142-4a10-a08e-3dbce055e740"/>
101-
<oc-video episode="329885fe-d18e-4c6b-a896-dbc66463a6b2"/>.'
101+
<oc-video episode="329885fe-d18e-4c6b-a896-dbc66463a6b2"/>.',
102102
],
103103
];
104104
}

0 commit comments

Comments
 (0)