Skip to content

Commit

Permalink
Apply fixes from StyleCI (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpociot authored Jan 19, 2018
1 parent a409474 commit 261f882
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/WebDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
use BotMan\BotMan\Messages\Attachments\Image;
use BotMan\BotMan\Messages\Attachments\Video;
use BotMan\BotMan\Messages\Outgoing\Question;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use BotMan\BotMan\Messages\Incoming\IncomingMessage;
use BotMan\BotMan\Messages\Outgoing\OutgoingMessage;
use Symfony\Component\HttpFoundation\File\UploadedFile;

class WebDriver extends HttpDriver
{
Expand Down Expand Up @@ -228,6 +228,7 @@ protected function addAttachments($incomingMessage)
} else {
$path = $file['tmp_name'];
}

return new Image($this->getDataURI($path));
})->values()->toArray();
$incomingMessage->setText(Image::PATTERN);
Expand All @@ -239,6 +240,7 @@ protected function addAttachments($incomingMessage)
} else {
$path = $file['tmp_name'];
}

return new Audio($this->getDataURI($path));
})->values()->toArray();
$incomingMessage->setText(Audio::PATTERN);
Expand All @@ -250,6 +252,7 @@ protected function addAttachments($incomingMessage)
} else {
$path = $file['tmp_name'];
}

return new Video($this->getDataURI($path));
})->values()->toArray();
$incomingMessage->setText(Video::PATTERN);
Expand Down

0 comments on commit 261f882

Please sign in to comment.