Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
papac committed Sep 29, 2023
1 parent 8e5f82f commit d6f2292
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/Event/Contracts/EventShoudQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@

interface EventShouldQueue
{

}
2 changes: 1 addition & 1 deletion src/Event/EventProducer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class EventProducer extends ProducerService
{
/**
* EventProducer constructor
*
*
* @param EventListener|EventShouldQueue $event
*/
public function __construct(
Expand Down
8 changes: 5 additions & 3 deletions src/Mail/Driver/SmtpDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function send(Message $message): bool
// SMTP command
if ($message->getFrom() !== null) {
$this->write('MAIL FROM: <' . $message->getFrom() . '>', 250);
} else if ($this->username !== null) {
} elseif ($this->username !== null) {
$this->write('MAIL FROM: <' . $this->username . '>', 250);
}

Expand Down Expand Up @@ -171,7 +171,8 @@ private function connection()

if ($sock == null) {
throw new SocketException(
'Impossible to get connected to ' . $this->url . ':' . $this->port, E_USER_ERROR
'Impossible to get connected to ' . $this->url . ':' . $this->port,
E_USER_ERROR
);
}

Expand Down Expand Up @@ -200,7 +201,8 @@ private function connection()

if (!$secured) {
throw new ErrorException(
'Can not secure your connection with tls', E_ERROR
'Can not secure your connection with tls',
E_ERROR
);
}
}
Expand Down

0 comments on commit d6f2292

Please sign in to comment.