Skip to content

Commit

Permalink
Disables self defeating linting rule
Browse files Browse the repository at this point in the history
  • Loading branch information
jvs-kialo committed May 30, 2024
1 parent 6979414 commit a3a3bdf
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 36 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"phpcs --config-set default_standard moodle"
],
"lint": [
"phpcs --standard=moodle --ignore=vendor,development .",
"phpcs --standard=moodle --ignore=vendor,development -s .",
"php-cs-fixer fix --dry-run --diff"
],
"fix": [
Expand Down
56 changes: 21 additions & 35 deletions lang/en/kialo.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,45 +33,34 @@
defined('MOODLE_INTERNAL') || die();

$string['cachedef_nonces'] = "Used to store temporary nonces to secure LTI requests.";
$string['close_prompt'] = 'You can close this window now.';
$string['deploymentid'] = "Discussion Linked";
$string['discussion_title'] = 'Discussion';
$string['errors:deeplinking'] = "Something went wrong with the discussion selection. Please try again.";
$string['errors:invalidrequest'] = "Invalid request";
$string['errors:ltiauth'] = "Authentication failed due to an unexpected error. Please try again.";
$string['errors:missingcourseid'] = "Missing course id";
$string['errors:missingdeploymentid'] = "Missing deployment id";
$string['errors:missingidtoken'] = "Missing id token";
$string['errors:missingsessiondata'] = "Missing session data";
$string['errors:noguestaccess'] = "Guests cannot access this activity. Please log in.";
$string['errors:nopermissiontoview'] = "You do not have permission to view this activity.";
$string['errors:resourcelink'] = "Activity cannot be displayed due to an unexpected error. Please try again.";
$string['groupmode_off_info'] = '<b>Please note that Moodle groups are currently <u>not</u> automatically supported.</b> (<a href="{$a->grouphelpcenterlink}">More info</a>)';
$string['groupmode_on_warning'] = '<b>Moodle groups are currently <u>not</u> automatically supported.</b> If you use the Kialo Moodle Plugin with a course that has multiple groups, <b>all</b> groups will find themselves in the <b>same</b> Kialo discussion.<br/><br/>To manually set up Kialo discussions for each of your groups, please follow the instructions in our <a href="{$a->grouphelpcenterlink}">help center</a>.<br/><br/>We will release automatic Moodle groups support in Q1 2024. <a href="{$a->pluginreleaseemailnotificationlink}">Submit your email address</a> to be notified when it is released.';
$string['hello'] = 'Hello World!';
$string['kialo:addinstance'] = 'Add a new Kialo Discussion';
$string['kialo:kialo_admin'] = 'Granted Admin rights in Kialo discussions';
$string['kialo:view'] = 'View Kialo discussions';
$string['kialofieldset'] = 'Kialo Fieldset';
$string['kialoname'] = 'Activity Name';
$string['kialosettings'] = 'Settings';
$string['modulename_help'] = 'The Kialo Discussion activity allows you to include a Kialo discussion in your Moodle course. Students can participate in the discussion directly from Moodle, without having to manually create Kialo accounts. Kialo discussions are a great way to teach and train critical thinking, argumentation and to facilitate thoughtful classroom discussions.';
$string['modulename_link'] = 'https://support.kialo-edu.com/en/hc/moodle';
$string['modulename'] = 'Kialo Discussion';
$string['modulenameplural'] = 'Kialo Discussions';
$string['pluginadministration'] = 'Edit Kialo Discussion';
$string['pluginname'] = 'Kialo Discussion';
$string['select_discussion_help'] =
'Opens Kialo in a new tab to select a discussion for this activity. You can create a Kialo account during this process if you don’t already have one.';
$string['select_discussion'] = 'Select Discussion';

// Help texts.
$string['modulename_help'] = 'The Kialo Discussion activity allows you to include a Kialo discussion in your Moodle course. Students can participate in the discussion directly from Moodle, without having to manually create Kialo accounts. Kialo discussions are a great way to teach and train critical thinking, argumentation and to facilitate thoughtful classroom discussions.';
$string['modulename_link'] = 'https://support.kialo-edu.com/en/hc/moodle';

// Displayed while redirecting to Kialo during the LTI flows.
$string['close_prompt'] = 'You can close this window now.';
$string['redirect_loading'] = "Loading";
$string['redirect_title'] = "Loading";

// Errors.
$string['errors:deeplinking'] = "Something went wrong with the discussion selection. Please try again.";
$string['errors:invalidrequest'] = "Invalid request";
$string['errors:ltiauth'] = "Authentication failed due to an unexpected error. Please try again.";
$string['errors:missingcourseid'] = "Missing course id";
$string['errors:missingdeploymentid'] = "Missing deployment id";
$string['errors:missingidtoken'] = "Missing id token";
$string['errors:missingsessiondata'] = "Missing session data";
$string['errors:noguestaccess'] = "Guests cannot access this activity. Please log in.";
$string['errors:nopermissiontoview'] = "You do not have permission to view this activity.";
$string['errors:resourcelink'] = "Activity cannot be displayed due to an unexpected error. Please try again.";

// Privacy API.
$string['privacy:metadata:kialo:courseid'] = 'The ID of the user’s course.';
$string['privacy:metadata:kialo:email'] = 'The email address is sent from Moodle to allow you to access your data on Kialo Edu.';
$string['privacy:metadata:kialo:fullname'] = 'Your full name is sent to Kialo Edu to allow a better user experience.';
Expand All @@ -82,14 +71,11 @@
$string['privacy:metadata:kialo:timezone'] = 'Your time zone preference is sent to Kialo Edu to automatically set the user time zone.';
$string['privacy:metadata:kialo:userid'] = 'The userid is sent from Moodle to allow you to access your data on Kialo Edu.';
$string['privacy:metadata:kialo:username'] = 'The user name is sent from Moodle to set the default user name on Kialo Edu.';
$string['privacy:metadata:kialo'] =
'User data needs to be exchanged with Kialo Edu in order to automatically create accounts for Moodle users on kialo-edu.com, and to make the user experience as seamless as possible.';

// Settings.
$string['groupmode_off_info'] = '<b>Please note that Moodle groups are currently <u>not</u> automatically supported.</b> (<a href="{$a->grouphelpcenterlink}">More info</a>)';
$string['groupmode_on_warning'] =
'<b>Moodle groups are currently <u>not</u> automatically supported.</b> If you use the Kialo Moodle Plugin with a course that has multiple groups, <b>all</b> groups will find themselves in the <b>same</b> Kialo discussion.<br/><br/>To manually set up Kialo discussions for each of your groups, please follow the instructions in our <a href="{$a->grouphelpcenterlink}">help center</a>.<br/><br/>We will release automatic Moodle groups support in Q1 2024. <a href="{$a->pluginreleaseemailnotificationlink}">Submit your email address</a> to be notified when it is released.';
$string["acceptterms_desc"] =
'To enable the Kialo plugin you have to accept Kialo Edu’s <a href="{$a->terms}" target="_blank">Terms of Service</a> on behalf of all users of this Moodle instance. Here is a link to our <a href="{$a->privacy}" target="_blank">Privacy Policy</a> and to our <a href="{$a->data_security}" target="_blank">Data Security and Privacy Plan.</a>';
$string['privacy:metadata:kialo'] = 'User data needs to be exchanged with Kialo Edu in order to automatically create accounts for Moodle users on kialo-edu.com, and to make the user experience as seamless as possible.';
$string['redirect_loading'] = "Loading";
$string['redirect_title'] = "Loading";
$string['select_discussion_help'] = 'Opens Kialo in a new tab to select a discussion for this activity. You can create a Kialo account during this process if you don’t already have one.';
$string['select_discussion'] = 'Select Discussion';
$string["acceptterms_desc"] = 'To enable the Kialo plugin you have to accept Kialo Edu’s <a href="{$a->terms}" target="_blank">Terms of Service</a> on behalf of all users of this Moodle instance. Here is a link to our <a href="{$a->privacy}" target="_blank">Privacy Policy</a> and to our <a href="{$a->data_security}" target="_blank">Data Security and Privacy Plan.</a>';
$string["acceptterms"] = "Accept Terms of Service";
$string["termsnotaccepted"] = 'You have to accept Kialo’s <a href="{$a->terms}" target="_blank">Terms of Service</a> before you can enable the Kialo plugin.';
1 change: 1 addition & 0 deletions tests/generator/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* @package mod_kialo
* @copyright 2023 onwards, Kialo GmbH <[email protected]>
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @phpcs:disable PHPCompatibility.FunctionDeclarations.RemovedImplicitlyNullableParam.Deprecated
*/
class mod_kialo_generator extends testing_module_generator {

Expand Down

0 comments on commit a3a3bdf

Please sign in to comment.