Skip to content

Commit ee091ee

Browse files
johanwilferCopilot
andauthored
Rector fix, step 1 (#195)
* Rector fix, step 1 * revert * Update Tests/PairHistory/DocumentPairHistoryManagerTest.php Co-authored-by: Copilot <[email protected]> * Update Tests/PairHistory/PairHistoryManagerTest.php Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent fecb588 commit ee091ee

17 files changed

+28
-12
lines changed

Tests/AppKernel.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ class AppKernel extends Kernel
1616
{
1717
use MicroKernelTrait;
1818

19-
public function __construct(string $environment, bool $debug, protected array $configs = [])
20-
{
19+
public function __construct(
20+
string $environment,
21+
bool $debug,
22+
protected array $configs = []
23+
) {
2124
parent::__construct($environment, $debug);
2225
}
2326

Tests/Document/DocumentRatioHistoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class DocumentRatioHistoryTest extends TestCase
1212
{
1313
public function testClassExists(): void
1414
{
15-
$this->assertTrue(class_exists(\Tbbc\MoneyBundle\Document\DocumentRatioHistory::class));
15+
$this->assertTrue(class_exists(DocumentRatioHistory::class));
1616
}
1717

1818
public function testProperties(): void

Tests/Document/DocumentStorageRatioTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class DocumentStorageRatioTest extends TestCase
1111
{
1212
public function testClassExists(): void
1313
{
14-
$this->assertTrue(class_exists(\Tbbc\MoneyBundle\Document\DocumentStorageRatio::class));
14+
$this->assertTrue(class_exists(DocumentStorageRatio::class));
1515
}
1616

1717
public function testConstructor(): void

Tests/Entity/DoctrineStorageRatioTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class DoctrineStorageRatioTest extends TestCase
1111
{
1212
public function testClassExists(): void
1313
{
14-
$this->assertTrue(class_exists(\Tbbc\MoneyBundle\Entity\DoctrineStorageRatio::class));
14+
$this->assertTrue(class_exists(DoctrineStorageRatio::class));
1515
}
1616

1717
public function testConstructor(): void

Tests/Entity/RatioHistoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class RatioHistoryTest extends TestCase
1212
{
1313
public function testClassExists(): void
1414
{
15-
$this->assertTrue(class_exists(\Tbbc\MoneyBundle\Entity\RatioHistory::class));
15+
$this->assertTrue(class_exists(RatioHistory::class));
1616
}
1717

1818
public function testProperties(): void

Tests/Form/DataTransformer/SimpleMoneyToArrayTransformerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
class SimpleMoneyToArrayTransformerTest extends TestCase
1313
{
1414
private Money $money;
15+
1516
private SimpleMoneyToArrayTransformer $transformer;
1617

1718
protected function setUp(): void

Tests/Formatter/MoneyFormatterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function testFormatCurrencyAsName(): void
108108
public function testGetCurrency(): void
109109
{
110110
$value = $this->formatter->getCurrency($this->inputMoney);
111-
$this->assertInstanceOf(\Money\Currency::class, $value);
111+
$this->assertInstanceOf(Currency::class, $value);
112112
$currency = new Currency('EUR');
113113
$this->assertSame($currency->getCode(), $value->getCode());
114114
}

Tests/Pair/PairManagerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class PairManagerTest extends KernelTestCase
1818
use MoneyAssert;
1919

2020
protected PairManager $manager;
21+
2122
protected string $fileName;
2223

2324
public function setUp(): void
@@ -53,7 +54,7 @@ public function testRatio(): void
5354
try {
5455
$this->manager->convert($eur, 'USD');
5556
$this->fail();
56-
} catch (MoneyException $e) {
57+
} catch (MoneyException) {
5758
$this->assertTrue(true);
5859
}
5960
$this->manager->saveRatio('USD', 1.25);

Tests/Pair/RatioProvider/ECBRatioProviderTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
class ECBRatioProviderTest extends TestCase
1414
{
1515
private MockHttpClient $client;
16+
1617
private ECBRatioProvider $ratio;
1718

1819
protected function setUp(): void

Tests/Pair/Storage/CsvStorageTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
class CsvStorageTest extends KernelTestCase
1212
{
1313
protected CsvStorage $storage;
14+
1415
protected string $fileName;
1516

1617
public function setUp(): void

0 commit comments

Comments
 (0)