Skip to content

Commit

Permalink
Fixed invalid PhpDoc tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Apr 29, 2011
1 parent 5442983 commit 50206f4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
30 changes: 15 additions & 15 deletions lib/Cake/Network/Email/CakeEmail.php
Expand Up @@ -277,7 +277,7 @@ public function __construct() {
* @param mixed $email
* @param string $name
* @return mixed
* @thrown SocketException
* @throws SocketException
*/
public function from($email = null, $name = null) {
if ($email === null) {
Expand All @@ -292,7 +292,7 @@ public function from($email = null, $name = null) {
* @param mixed $email
* @param string $name
* @return mixed
* @thrown SocketException
* @throws SocketException
*/
public function sender($email = null, $name = null) {
if ($email === null) {
Expand All @@ -307,7 +307,7 @@ public function sender($email = null, $name = null) {
* @param mixed $email
* @param string $name
* @return mixed
* @thrown SocketException
* @throws SocketException
*/
public function replyTo($email = null, $name = null) {
if ($email === null) {
Expand All @@ -322,7 +322,7 @@ public function replyTo($email = null, $name = null) {
* @param mixed $email
* @param string $name
* @return mixed
* @thrown SocketException
* @throws SocketException
*/
public function readReceipt($email = null, $name = null) {
if ($email === null) {
Expand All @@ -337,7 +337,7 @@ public function readReceipt($email = null, $name = null) {
* @param mixed $email
* @param string $name
* @return mixed
* @thrown SocketException
* @throws SocketException
*/
public function returnPath($email = null, $name = null) {
if ($email === null) {
Expand Down Expand Up @@ -428,7 +428,7 @@ public function addBcc($email, $name = null) {
* @param mixed $email
* @param mixed $name
* @return object $this
* @thrown SocketException
* @throws SocketException
*/
protected function _setEmail($varName, $email, $name) {
if (!is_array($email)) {
Expand Down Expand Up @@ -463,7 +463,7 @@ protected function _setEmail($varName, $email, $name) {
* @param string $name
* @param string $throwMessage
* @return object $this
* @thrown SocketExpceiton
* @throws SocketExpceiton
*/
protected function _setEmailSingle($varName, $email, $name, $throwMessage) {
$current = $this->{$varName};
Expand Down Expand Up @@ -527,7 +527,7 @@ public function subject($subject = null) {
*
* @param array Associative array containing headers to be set.
* @return object $this
* @thrown SocketException
* @throws SocketException
*/
public function setHeaders($headers) {
if (!is_array($headers)) {
Expand All @@ -542,7 +542,7 @@ public function setHeaders($headers) {
*
* @param array $headers
* @return mixed $this
* @thrown SocketException
* @throws SocketException
*/
public function addHeaders($headers) {
if (!is_array($headers)) {
Expand Down Expand Up @@ -720,7 +720,7 @@ public function viewVars($viewVars = null) {
*
* @param string $format
* @return mixed
* @thrown SocketException
* @throws SocketException
*/
public function emailFormat($format = null) {
if ($format === null) {
Expand Down Expand Up @@ -752,7 +752,7 @@ public function transport($name = null) {
* Return the transport class
*
* @return object
* @thrown SocketException
* @throws SocketException
*/
public function transportClass() {
if ($this->_transportClass) {
Expand All @@ -775,7 +775,7 @@ public function transportClass() {
*
* @param mixed $message True to generate a new Message-ID, False to ignore (not send in email), String to set as Message-ID
* @return mixed
* @thrown SocketException
* @throws SocketException
*/
public function messageId($message = null) {
if ($message === null) {
Expand All @@ -797,7 +797,7 @@ public function messageId($message = null) {
*
* @param mixed $attachments String with the filename or array with filenames
* @return mixed
* @thrown SocketException
* @throws SocketException
*/
public function attachments($attachments = null) {
if ($attachments === null) {
Expand Down Expand Up @@ -832,7 +832,7 @@ public function attachments($attachments = null) {
*
* @param mixed $attachments String with the filename or array with filenames
* @return object $this
* @thrown SocketException
* @throws SocketException
*/
public function addAttachments($attachments) {
$current = $this->_attachments;
Expand Down Expand Up @@ -885,7 +885,7 @@ public function config($config = null) {
* Send an email using the specified content, template and layout
*
* @return boolean Success
* @thrown SocketException
* @throws SocketException
*/
public function send($content = null) {
if (is_string($this->_config)) {
Expand Down
16 changes: 8 additions & 8 deletions lib/Cake/Network/Email/SmtpTransport.php
Expand Up @@ -44,7 +44,7 @@ class SmtpTransport extends AbstractTransport {
*
* @params object $email CakeEmail
* @return boolean
* @thrown SocketException
* @throws SocketException
*/
public function send(CakeEmail $email) {
$this->_cakeEmail = $email;
Expand Down Expand Up @@ -80,7 +80,7 @@ public function config($config = array()) {
* Connect to SMTP Server
*
* @return void
* @thrown SocketException
* @throws SocketException
*/
protected function _connect() {
$this->_generateSocket();
Expand Down Expand Up @@ -112,7 +112,7 @@ protected function _connect() {
* Send authentication
*
* @return void
* @thrown SocketException
* @throws SocketException
*/
protected function _auth() {
if (isset($this->_config['username']) && isset($this->_config['password'])) {
Expand All @@ -134,7 +134,7 @@ protected function _auth() {
* Send emails
*
* @return void
* @thrown SocketException
* @throws SocketException
*/
protected function _sendRcpt() {
$from = $this->_cakeEmail->from();
Expand All @@ -153,7 +153,7 @@ protected function _sendRcpt() {
* Send Data
*
* @return void
* @thrown SocketException
* @throws SocketException
*/
protected function _sendData() {
$this->_smtpSend('DATA', '354');
Expand All @@ -168,7 +168,7 @@ protected function _sendData() {
* Disconnect
*
* @return void
* @thrown SocketException
* @throws SocketException
*/
protected function _disconnect() {
$this->_smtpSend('QUIT', false);
Expand All @@ -179,7 +179,7 @@ protected function _disconnect() {
* Helper method to generate socket
*
* @return void
* @thrown SocketException
* @throws SocketException
*/
protected function _generateSocket() {
$this->_socket = new CakeSocket($this->_config);
Expand All @@ -191,7 +191,7 @@ protected function _generateSocket() {
* @param string $data data to be sent to SMTP server
* @param mixed $checkCode code to check for in server response, false to skip
* @return void
* @thrown SocketException
* @throws SocketException
*/
function _smtpSend($data, $checkCode = '250') {
if (!is_null($data)) {
Expand Down

0 comments on commit 50206f4

Please sign in to comment.