Issue #2886365 by kiamlaluno: Comments for the UserData::get() code are unclear and wrongly use "was" instead of "were"

8.4.x
xjm 2017-06-17 21:42:25 -04:00
parent 62397e8ea8
commit ee0b6ab267
1 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ class UserData implements UserDataInterface {
$query->condition('name', $name);
}
$result = $query->execute();
// If $module, $uid, and $name was passed, return the value.
// If $module, $uid, and $name were passed, return the value.
if (isset($name) && isset($uid)) {
$result = $result->fetchAllAssoc('uid');
if (isset($result[$uid])) {
@ -48,7 +48,7 @@ class UserData implements UserDataInterface {
}
return NULL;
}
// If $module and $uid was passed, return the name/value pairs.
// If $module and $uid were passed, return data keyed by name.
elseif (isset($uid)) {
$return = [];
foreach ($result as $record) {
@ -56,7 +56,7 @@ class UserData implements UserDataInterface {
}
return $return;
}
// If $module and $name was passed, return the uid/value pairs.
// If $module and $name were passed, return data keyed by uid.
elseif (isset($name)) {
$return = [];
foreach ($result as $record) {