Added function to get first paragraph of text content and formatted phpdoc @param datatypes