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 bf9bf64
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions classes/bulkenrol_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function validation($data, $files) {

/**
* Returns the name of a fieldoption without its table prefix
* @param $fieldoption string fieldname with type prefix
* @param string $fieldoption fieldname with type prefix
* @return 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 @@ -156,9 +156,9 @@ private function get_fieldname($fieldoption) {

/**
* Replaces the last occurence of the needle in a string.
* @param $search string needle to search for
* @param $replace string replacement for needle
* @param $subject string subject string to search
* @param string $search needle to search for
* @param string $replace string replacement for needle
* @param string $subject string subject string to search
* @return string subject string with the last occurence of the needle replaced
*/
private function str_last_replace($search, $replace, $subject) {
Expand Down

0 comments on commit bf9bf64

Please sign in to comment.