'no_useless_return' => true,
'return_assignment' => true,
- 'simplified_null_return' => true,
'multiline_whitespace_before_semicolons' => true,
'no_empty_statement' => true,
*
* @param int $conversationID
* @param int $userID
- * @return Conversation
+ * @return null|Conversation
*/
public static function getUserConversation($conversationID, $userID)
{
if ($row !== false) {
return new self(null, $row);
}
+
+ return null;
}
/**
* Assigns and returns the embedded attachments.
*
* @param bool $ignoreCache
- * @return GroupedAttachmentList
+ * @return null|GroupedAttachmentList
*/
public function getAttachments($ignoreCache = false)
{
return $attachmentList;
}
+
+ return null;
}
/**