Skip to content

Commit 5b00fff

Browse files
Fixed code-style
1 parent 1fd6cca commit 5b00fff

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

config/actions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
|
2525
*/
2626

27-
'table' => 'migration_actions',
27+
'table' => 'migration_actions',
2828

2929
/*
3030
|--------------------------------------------------------------------------
@@ -35,7 +35,7 @@
3535
|
3636
*/
3737

38-
'path' => base_path('actions'),
38+
'path' => base_path('actions'),
3939

4040
/*
4141
|--------------------------------------------------------------------------
@@ -56,5 +56,5 @@
5656
|
5757
*/
5858

59-
'exclude' => null,
59+
'exclude' => null,
6060
];

tests/Commands/MutexTest.php

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,27 @@ class MutexTest extends TestCase
1919

2020
protected Mutex $mutex;
2121

22+
protected function setUp(): void
23+
{
24+
$this->command = new class () extends Command
25+
{
26+
public int $ran = 0;
27+
28+
public function handle(): int
29+
{
30+
++$this->ran;
31+
32+
return self::SUCCESS;
33+
}
34+
};
35+
36+
$this->mutex = m::mock(Mutex::class);
37+
38+
$container = Container::getInstance();
39+
$container->instance(Mutex::class, $this->mutex);
40+
$this->command->setLaravel($container);
41+
}
42+
2243
public function testCanRunIsolatedCommandIfNotBlocked()
2344
{
2445
$this->mutex->shouldReceive('create')
@@ -74,31 +95,10 @@ public function testCanRunCommandAgainNonAutomated()
7495
$this->assertEquals(1, $this->command->ran);
7596
}
7697

77-
protected function setUp(): void
78-
{
79-
$this->command = new class extends Command
80-
{
81-
public int $ran = 0;
82-
83-
public function handle(): int
84-
{
85-
$this->ran++;
86-
87-
return self::SUCCESS;
88-
}
89-
};
90-
91-
$this->mutex = m::mock(Mutex::class);
92-
93-
$container = Container::getInstance();
94-
$container->instance(Mutex::class, $this->mutex);
95-
$this->command->setLaravel($container);
96-
}
97-
9898
protected function runCommand($withIsolated = true)
9999
{
100100
$input = new ArrayInput(['--' . Options::ISOLATED => $withIsolated]);
101-
$output = new NullOutput;
101+
$output = new NullOutput();
102102

103103
$this->command->run($input, $output);
104104
}

0 commit comments

Comments
 (0)