xAPI-vle / moodle-logstore_xapi

A Moodle plugin to send xAPI statements to an LRS using events in the Moodle logstore.
GNU General Public License v3.0
76 stars 84 forks source link

Refactor constant names to follow Moodle frankenstyle coding standard #831

Open Undreli-Studios opened 2 years ago

Undreli-Studios commented 2 years ago

Good day team, there are a few places that could need a bit of a refactor to comply with Moodle coding style standard.

Description

In the file 'lib.php' which you can see here https://github.com/xAPI-vle/moodle-logstore_xapi/blob/master/lib.php, contains a few constants with names that do not comply with Moodle coding standard. In particular they lack the Frankenstyle with the plugin name that you can check here: https://docs.moodle.org/dev/Coding_style#Constants, for example:

define('XAPI_IMPORT_TYPE_HISTORIC', 1);
define('XAPI_IMPORT_TYPE_FAILED', 2);

This should be:

define('LOGSTORE_XAPI_IMPORT_TYPE_HISTORIC', 1);
define('LOGSTORE_XAPI_IMPORT_TYPE_FAILED', 2);

Version

Expected behaviour

Actual behaviour

Thank you so much for you attention.

davidpesce commented 2 years ago

Thanks for the heads up on this! Feel free to submit a PR if you have some time.