Skip to content

Commit

Permalink
Apply fixes from StyleCI (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpociot authored Feb 8, 2020
1 parent 79afb25 commit 8619610
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/Console/Commands/BotManInstallDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace BotMan\Studio\Console\Commands;

use GuzzleHttp\Client;
use BotMan\Studio\Composer;
use GuzzleHttp\Client;
use Illuminate\Console\Command;

class BotManInstallDriver extends Command
Expand Down
2 changes: 1 addition & 1 deletion src/Providers/DriverServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace BotMan\Studio\Providers;

use Illuminate\Support\ServiceProvider;
use BotMan\BotMan\Drivers\DriverManager;
use Illuminate\Support\ServiceProvider;
use TheCodingMachine\Discovery\Discovery;

class DriverServiceProvider extends ServiceProvider
Expand Down
10 changes: 5 additions & 5 deletions src/Providers/StudioServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

namespace BotMan\Studio\Providers;

use Illuminate\Support\ServiceProvider;
use TheCodingMachine\Discovery\Discovery;
use BotMan\Studio\Console\Commands\BotManMakeTest;
use BotMan\Studio\Console\Commands\BotManCacheClear;
use BotMan\Studio\Console\Commands\BotManListDrivers;
use BotMan\Studio\Console\Commands\BotManInstallDriver;
use BotMan\Studio\Console\Commands\BotManMakeMiddleware;
use BotMan\Studio\Console\Commands\BotManListDrivers;
use BotMan\Studio\Console\Commands\BotManMakeConversation;
use BotMan\Studio\Console\Commands\BotManMakeMiddleware;
use BotMan\Studio\Console\Commands\BotManMakeTest;
use Illuminate\Support\ServiceProvider;
use TheCodingMachine\Discovery\Discovery;

class StudioServiceProvider extends ServiceProvider
{
Expand Down
14 changes: 7 additions & 7 deletions src/Testing/BotManTester.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
namespace BotMan\Studio\Testing;

use BotMan\BotMan\BotMan;
use Illuminate\Support\Collection;
use PHPUnit\Framework\Assert as PHPUnit;
use BotMan\BotMan\Drivers\Tests\FakeDriver;
use BotMan\BotMan\Messages\Attachments\File;
use BotMan\BotMan\Messages\Attachments\Audio;
use BotMan\BotMan\Messages\Attachments\File;
use BotMan\BotMan\Messages\Attachments\Image;
use BotMan\BotMan\Messages\Attachments\Video;
use BotMan\BotMan\Messages\Outgoing\Question;
use BotMan\BotMan\Messages\Attachments\Location;
use BotMan\BotMan\Messages\Attachments\Video;
use BotMan\BotMan\Messages\Incoming\IncomingMessage;
use BotMan\BotMan\Messages\Outgoing\OutgoingMessage;
use BotMan\BotMan\Messages\Outgoing\Question;
use Illuminate\Support\Collection;
use PHPUnit\Framework\Assert as PHPUnit;

/**
* Class BotManTester.
Expand Down Expand Up @@ -231,10 +231,10 @@ public function receivesEvent($name, $payload = null)
$this->driver->setEventPayload($payload);

$result = $this->receivesRaw(new IncomingMessage('', $this->user_id, $this->channel));

$this->driver->setEventName(null);
$this->driver->setEventPayload(null);

return $result;
}

Expand Down
16 changes: 8 additions & 8 deletions tests/BotManTesterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

namespace Tests;

use Mockery as m;
use BotMan\BotMan\BotMan;
use PHPUnit\Framework\TestCase;
use BotMan\BotMan\BotManFactory;
use BotMan\Studio\Testing\BotManTester;
use BotMan\BotMan\Drivers\Tests\FakeDriver;
use BotMan\BotMan\Messages\Attachments\File;
use BotMan\BotMan\Messages\Attachments\Audio;
use BotMan\BotMan\Messages\Attachments\File;
use BotMan\BotMan\Messages\Attachments\Image;
use BotMan\BotMan\Messages\Attachments\Video;
use BotMan\BotMan\Messages\Outgoing\Question;
use BotMan\BotMan\Messages\Attachments\Location;
use BotMan\BotMan\Messages\Attachments\Video;
use BotMan\BotMan\Messages\Outgoing\OutgoingMessage;
use BotMan\BotMan\Messages\Outgoing\Question;
use BotMan\Studio\Testing\BotManTester;
use Mockery as m;
use PHPUnit\Framework\TestCase;

class TemplateFake
{
Expand All @@ -37,12 +37,12 @@ class BotManTesterTest extends TestCase
/** @var BotMan */
protected $botman;

public function tearDown() : void
public function tearDown(): void
{
m::close();
}

protected function setUp() :void
protected function setUp(): void
{
parent::setUp();

Expand Down

0 comments on commit 8619610

Please sign in to comment.