Skip to content

Commit 4fa24c1

Browse files
author
rtschu
committed
added param types
1 parent eddc1f0 commit 4fa24c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

classes/bulkenrol_form.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function validation($data, $files) {
137137
/**
138138
* Returns the name of a fieldoption without its table prefix
139139
* @param $fieldoption string fieldname with type prefix
140-
* @return string name of field without type prefix
140+
* @return bool|mixed|string name of field without type prefix
141141
* @throws \UnexpectedValueException Field is not prefixed by c_ or u_
142142
* @throws \dml_exception Database connection error
143143
*/
@@ -159,7 +159,7 @@ private function get_fieldname($fieldoption) {
159159
* @param $search string needle to search for
160160
* @param $replace string replacement for needle
161161
* @param $subject string subject string to search
162-
* @return string subject string with the last occurence of the needle replaced
162+
* @return string|string[] subject string with the last occurence of the needle replaced
163163
*/
164164
private function str_last_replace($search, $replace, $subject) {
165165
$pos = strrpos($subject, $search);

0 commit comments

Comments
 (0)