@@ -2,9 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Sinergi\Emails\Attachments; |
| 4 | 4 | |
| 5 | -use Omnimail\Attachment; |
|
| 6 | 5 | use Omnimail\AttachmentInterface; |
| 7 | -use Omnimail\EmailInterface; |
|
| 8 | 6 | use PDO; |
| 9 | 7 | use Sinergi\Emails\Driver\MySQL; |
| 10 | 8 | |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | break; |
| 19 | 19 | default: |
| 20 | 20 | throw new \Exception( |
| 21 | - 'Driver ' . $connection->getAttribute(PDO::ATTR_DRIVER_NAME) . ' not yet implemented' |
|
| 21 | + 'Driver '.$connection->getAttribute(PDO::ATTR_DRIVER_NAME).' not yet implemented' |
|
| 22 | 22 | ); |
| 23 | 23 | } |
| 24 | 24 | |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Sinergi\Emails\Emails; |
| 4 | 4 | |
| 5 | -use Omnimail\Attachment; |
|
| 6 | 5 | use Omnimail\EmailInterface; |
| 7 | 6 | use PDO; |
| 8 | 7 | use Sinergi\Emails\Attachments\AttachmentsRepository; |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | break; |
| 24 | 24 | default: |
| 25 | 25 | throw new \Exception( |
| 26 | - 'Driver ' . $connection->getAttribute(PDO::ATTR_DRIVER_NAME) . ' not yet implemented' |
|
| 26 | + 'Driver '.$connection->getAttribute(PDO::ATTR_DRIVER_NAME).' not yet implemented' |
|
| 27 | 27 | ); |
| 28 | 28 | } |
| 29 | 29 | |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | { |
| 68 | 68 | $finalEmails = ''; |
| 69 | 69 | foreach ($emails as $email) { |
| 70 | - $finalEmails .= $this->mapEmail($email) . ', '; |
|
| 70 | + $finalEmails .= $this->mapEmail($email).', '; |
|
| 71 | 71 | } |
| 72 | 72 | return !empty($finalEmails) ? substr($finalEmails, 0, -2) : ''; |
| 73 | 73 | } |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Sinergi\Emails; |
| 4 | 4 | |
| 5 | -use Interop\Container\ContainerInterface; |
|
| 6 | -use Omnimail\Email; |
|
| 7 | 5 | use Omnimail\EmailInterface; |
| 8 | 6 | use Omnimail\EmailSenderInterface; |
| 9 | 7 | use PDO; |
@@ -20,11 +20,11 @@ discard block |
||
| 20 | 20 | foreach ($data as $key => $value) { |
| 21 | 21 | $query .= "`{$key}`, "; |
| 22 | 22 | } |
| 23 | - $query = substr($query, 0, -2) . ') VALUES ('; |
|
| 23 | + $query = substr($query, 0, -2).') VALUES ('; |
|
| 24 | 24 | foreach ($data as $key => $value) { |
| 25 | 25 | $query .= ":{$key}, "; |
| 26 | 26 | } |
| 27 | - $query = substr($query, 0, -2) . ')'; |
|
| 27 | + $query = substr($query, 0, -2).')'; |
|
| 28 | 28 | |
| 29 | 29 | $sth = $this->connection->prepare($query); |
| 30 | 30 | |
@@ -33,12 +33,12 @@ discard block |
||
| 33 | 33 | if (is_bool($value)) { |
| 34 | 34 | $value = $value ? 1 : 0; |
| 35 | 35 | } |
| 36 | - $finalParams[':' . $key] = $value; |
|
| 36 | + $finalParams[':'.$key] = $value; |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | $result = $sth->execute($finalParams); |
| 40 | 40 | if (!$result) { |
| 41 | - throw new Exception('Could not insert row in ' . $table); |
|
| 41 | + throw new Exception('Could not insert row in '.$table); |
|
| 42 | 42 | } |
| 43 | 43 | return $this->connection->lastInsertId(); |
| 44 | 44 | } |
@@ -99,10 +99,10 @@ discard block |
||
| 99 | 99 | try { |
| 100 | 100 | $result = $this->connection->query($query); |
| 101 | 101 | } catch (Exception $e) { |
| 102 | - throw new Exception('Could not create ' . $name . ' table'); |
|
| 102 | + throw new Exception('Could not create '.$name.' table'); |
|
| 103 | 103 | } |
| 104 | 104 | if ($result === false) { |
| 105 | - throw new Exception('Could not create ' . $name . ' table'); |
|
| 105 | + throw new Exception('Could not create '.$name.' table'); |
|
| 106 | 106 | } |
| 107 | 107 | } |
| 108 | 108 | } |