@@ -112,10 +112,10 @@ |
||
| 112 | 112 | $count+= $transport->send($message, $failedRecipients); |
| 113 | 113 | if($count > 0){ |
| 114 | 114 | $this->repository->markCompleteSending($email); |
| 115 | - }else{ |
|
| 115 | + } else{ |
|
| 116 | 116 | throw new \Swift_SwiftException('The email was not sent.'); |
| 117 | 117 | } |
| 118 | - }catch(\Swift_SwiftException $ex){ |
|
| 118 | + } catch(\Swift_SwiftException $ex){ |
|
| 119 | 119 | $this->repository->markFailedSending($email, $ex); |
| 120 | 120 | } |
| 121 | 121 | } |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: Rafael |
|
| 5 | - * Date: 02/05/2015 |
|
| 6 | - * Time: 22:16 |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: Rafael |
|
| 5 | + * Date: 02/05/2015 |
|
| 6 | + * Time: 22:16 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Citrax\Bundle\DatabaseSwiftMailerBundle\Spool; |
| 10 | 10 | |