Skip to content

Commit

Permalink
s2 lint
Browse files Browse the repository at this point in the history
  • Loading branch information
EsdrasCaleb committed Jul 12, 2024
1 parent e51c562 commit 049fb48
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
7 changes: 3 additions & 4 deletions classes/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class helper {
/**
* Initialize sentry
*
* @param \core\event\base $event The event.
* @param \core\event\base|null $event The event.
* @return void
*/
public static function init(?\core\event\base $event = null) {
Expand Down Expand Up @@ -70,8 +70,7 @@ public static function init(?\core\event\base $event = null) {
if (is_numeric($value)) {
if (strpos($value, '.')) {
$config[$name] = floatval($value);
}
else {
} else {
$config[$name] = intval($value);
}
}
Expand All @@ -84,7 +83,7 @@ public static function init(?\core\event\base $event = null) {
/**
* Get erros and send
*
* @param \core\event\base $event The event.
* @param \core\event\base|null $event The event.
* @return void
*/
public static function geterros(?\core\event\base $event = null) {
Expand Down
9 changes: 9 additions & 0 deletions db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

/**
* Function to upgrade the plugin
* @param $oldversion - old version of plugin
* @return bool - if success
*
* @author Esdras Caleb
* @copyright 2023 Esdras Caleb
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
function xmldb_tool_sentry_upgrade($oldversion): bool {
global $DB;

Expand Down
2 changes: 1 addition & 1 deletion settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@

}
}
\tool_sentry\helper::geterros();
\tool_sentry\helper::geterros();

0 comments on commit 049fb48

Please sign in to comment.