Skip to content

Commit

Permalink
added param types
Browse files Browse the repository at this point in the history
  • Loading branch information
rtschu committed Jun 22, 2020
1 parent eddc1f0 commit 4fa24c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/bulkenrol_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public function validation($data, $files) {
/**
* Returns the name of a fieldoption without its table prefix
* @param $fieldoption string fieldname with type prefix
* @return string name of field without type prefix
* @return bool|mixed|string name of field without type prefix
* @throws \UnexpectedValueException Field is not prefixed by c_ or u_
* @throws \dml_exception Database connection error
*/
Expand All @@ -159,7 +159,7 @@ private function get_fieldname($fieldoption) {
* @param $search string needle to search for
* @param $replace string replacement for needle
* @param $subject string subject string to search
* @return string subject string with the last occurence of the needle replaced
* @return string|string[] subject string with the last occurence of the needle replaced
*/
private function str_last_replace($search, $replace, $subject) {
$pos = strrpos($subject, $search);
Expand Down

0 comments on commit 4fa24c1

Please sign in to comment.