Skip to content

Commit 8619610

Browse files
authored
Apply fixes from StyleCI (#42)
1 parent 79afb25 commit 8619610

File tree

5 files changed

+22
-22
lines changed

5 files changed

+22
-22
lines changed

src/Console/Commands/BotManInstallDriver.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace BotMan\Studio\Console\Commands;
44

5-
use GuzzleHttp\Client;
65
use BotMan\Studio\Composer;
6+
use GuzzleHttp\Client;
77
use Illuminate\Console\Command;
88

99
class BotManInstallDriver extends Command

src/Providers/DriverServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace BotMan\Studio\Providers;
44

5-
use Illuminate\Support\ServiceProvider;
65
use BotMan\BotMan\Drivers\DriverManager;
6+
use Illuminate\Support\ServiceProvider;
77
use TheCodingMachine\Discovery\Discovery;
88

99
class DriverServiceProvider extends ServiceProvider

src/Providers/StudioServiceProvider.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
namespace BotMan\Studio\Providers;
44

5-
use Illuminate\Support\ServiceProvider;
6-
use TheCodingMachine\Discovery\Discovery;
7-
use BotMan\Studio\Console\Commands\BotManMakeTest;
85
use BotMan\Studio\Console\Commands\BotManCacheClear;
9-
use BotMan\Studio\Console\Commands\BotManListDrivers;
106
use BotMan\Studio\Console\Commands\BotManInstallDriver;
11-
use BotMan\Studio\Console\Commands\BotManMakeMiddleware;
7+
use BotMan\Studio\Console\Commands\BotManListDrivers;
128
use BotMan\Studio\Console\Commands\BotManMakeConversation;
9+
use BotMan\Studio\Console\Commands\BotManMakeMiddleware;
10+
use BotMan\Studio\Console\Commands\BotManMakeTest;
11+
use Illuminate\Support\ServiceProvider;
12+
use TheCodingMachine\Discovery\Discovery;
1313

1414
class StudioServiceProvider extends ServiceProvider
1515
{

src/Testing/BotManTester.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
namespace BotMan\Studio\Testing;
44

55
use BotMan\BotMan\BotMan;
6-
use Illuminate\Support\Collection;
7-
use PHPUnit\Framework\Assert as PHPUnit;
86
use BotMan\BotMan\Drivers\Tests\FakeDriver;
9-
use BotMan\BotMan\Messages\Attachments\File;
107
use BotMan\BotMan\Messages\Attachments\Audio;
8+
use BotMan\BotMan\Messages\Attachments\File;
119
use BotMan\BotMan\Messages\Attachments\Image;
12-
use BotMan\BotMan\Messages\Attachments\Video;
13-
use BotMan\BotMan\Messages\Outgoing\Question;
1410
use BotMan\BotMan\Messages\Attachments\Location;
11+
use BotMan\BotMan\Messages\Attachments\Video;
1512
use BotMan\BotMan\Messages\Incoming\IncomingMessage;
1613
use BotMan\BotMan\Messages\Outgoing\OutgoingMessage;
14+
use BotMan\BotMan\Messages\Outgoing\Question;
15+
use Illuminate\Support\Collection;
16+
use PHPUnit\Framework\Assert as PHPUnit;
1717

1818
/**
1919
* Class BotManTester.
@@ -231,10 +231,10 @@ public function receivesEvent($name, $payload = null)
231231
$this->driver->setEventPayload($payload);
232232

233233
$result = $this->receivesRaw(new IncomingMessage('', $this->user_id, $this->channel));
234-
234+
235235
$this->driver->setEventName(null);
236236
$this->driver->setEventPayload(null);
237-
237+
238238
return $result;
239239
}
240240

tests/BotManTesterTest.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
namespace Tests;
44

5-
use Mockery as m;
65
use BotMan\BotMan\BotMan;
7-
use PHPUnit\Framework\TestCase;
86
use BotMan\BotMan\BotManFactory;
9-
use BotMan\Studio\Testing\BotManTester;
107
use BotMan\BotMan\Drivers\Tests\FakeDriver;
11-
use BotMan\BotMan\Messages\Attachments\File;
128
use BotMan\BotMan\Messages\Attachments\Audio;
9+
use BotMan\BotMan\Messages\Attachments\File;
1310
use BotMan\BotMan\Messages\Attachments\Image;
14-
use BotMan\BotMan\Messages\Attachments\Video;
15-
use BotMan\BotMan\Messages\Outgoing\Question;
1611
use BotMan\BotMan\Messages\Attachments\Location;
12+
use BotMan\BotMan\Messages\Attachments\Video;
1713
use BotMan\BotMan\Messages\Outgoing\OutgoingMessage;
14+
use BotMan\BotMan\Messages\Outgoing\Question;
15+
use BotMan\Studio\Testing\BotManTester;
16+
use Mockery as m;
17+
use PHPUnit\Framework\TestCase;
1818

1919
class TemplateFake
2020
{
@@ -37,12 +37,12 @@ class BotManTesterTest extends TestCase
3737
/** @var BotMan */
3838
protected $botman;
3939

40-
public function tearDown() : void
40+
public function tearDown(): void
4141
{
4242
m::close();
4343
}
4444

45-
protected function setUp() :void
45+
protected function setUp(): void
4646
{
4747
parent::setUp();
4848

0 commit comments

Comments
 (0)