Skip to content

Some small fixes to recent commits. #1096

Merged
merged 2 commits into from Apr 1, 2012
View
3 libraries/joomla/mail/mail.php
@@ -271,6 +271,7 @@ public function addBCC($bcc, $name = '')
* @return JMail Returns this object for chaining.
*
* @since 11.1
+ * @throws InvalidArgumentException
*/
public function addAttachment($attachment, $name = '', $encoding = 'base64', $type = 'application/octet-stream')
{
@@ -281,7 +282,7 @@ public function addAttachment($attachment, $name = '', $encoding = 'base64', $ty
{
if (!empty($name) && count($attachment) != count($name))
{
- throw new RuntimeException("The number of attachments must be equal with the number of name");
+ throw new InvalidArgumentException("The number of attachments must be equal with the number of name");
}
foreach ($attachment as $key => $file)
View
1 libraries/joomla/table/table.php
@@ -995,7 +995,6 @@ public function hit($pk = null)
*
* @link http://docs.joomla.org/JTable/isCheckedOut
* @since 11.1
- * @todo This either needs to be static or not.
*/
public function isCheckedOut($with = 0, $against = null)
{
View
8 libraries/joomla/user/helper.php
@@ -27,7 +27,7 @@
* @param integer $userId The id of the user.
* @param integer $groupId The id of the group.
*
- * @return mixed Boolean true on success
+ * @return boolean True on success
*
* @since 11.1
* @throws RuntimeException
@@ -81,7 +81,7 @@ public static function addUserToGroup($userId, $groupId)
*
* @param integer $userId The id of the user.
*
- * @return mixed Array on success
+ * @return array List of groups
*
* @since 11.1
*/
@@ -99,7 +99,7 @@ public static function getUserGroups($userId)
* @param integer $userId The id of the user.
* @param integer $groupId The id of the group.
*
- * @return mixed Boolean true on success
+ * @return boolean True on success
*
* @since 11.1
*/
@@ -139,7 +139,7 @@ public static function removeUserFromGroup($userId, $groupId)
* @param integer $userId The id of the user.
* @param array $groups An array of group ids to put the user in.
*
- * @return mixed Boolean true on success
+ * @return boolean True on success
*
* @since 11.1
*/
Something went wrong with that request. Please try again.