Completed
Push — master ( 155fdb...991c2f )
by Gabriel
07:40
created
src/Attachments/AttachmentsRepository.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Emails/EmailsRepository.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Driver/MySQL.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/EmailSender.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Sinergi\Emails;
4 4
 
5
-use Interop\Container\ContainerInterface;
6 5
 use Omnimail\EmailInterface;
7 6
 use Omnimail\EmailSenderInterface;
8 7
 use PDO;
Please login to merge, or discard this patch.