Skip to content

Commit 3e6b2de

Browse files
committed
changed from codeclimate to qlty.sh
1 parent 609ded9 commit 3e6b2de

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/Service/Generator/Compiler/Mapper/AbstractMapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ public function chainMethodsToString(array $methods): string
1313
if (0 !== count($methods)) {
1414
$result = '$table';
1515
foreach ($methods as $method) {
16-
$result .= '->' . $method;
16+
$result .= '->'.$method;
1717
}
18-
$result .= ';' . PHP_EOL . ' ';
18+
$result .= ';'.PHP_EOL.' ';
1919
}
2020

2121

tests/DbTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class DbTestCase extends TestCase
1010
protected function setUp(): void
1111
{
1212
parent::setUp();
13-
$this->loadMigrationsFrom($this->resourceFolder . '/Database/Migrations/');
13+
$this->loadMigrationsFrom($this->resourceFolder.'/Database/Migrations/');
1414
$this->loadLaravelMigrations(['--database' => 'mysql']);
1515
}
1616
}

tests/Integration/Service/Generator/MigrationGeneratorTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ public function setUp(): void
1919

2020
public function testGenerateMigrationForTable(): void
2121
{
22-
$path = $this->resourceFolder . 'ExpectedMigrations/';
22+
$path = $this->resourceFolder.'ExpectedMigrations/';
2323
$this->generator->setMigrationDir($path);
2424
$result = $this->generator->generateMigrationForTable('testing', 'fields_test');
2525
$this->assertTrue($result);
2626
$files = $this->generator->getMigrationFiles();
2727
foreach ($files as $file) {
28-
$this->assertFileExists($path . DIRECTORY_SEPARATOR . $file);
28+
$this->assertFileExists($path.DIRECTORY_SEPARATOR.$file);
2929
}
3030
}
3131

3232
public function testGenerateMigrationForTableWithUnknownTableReturnsFalse(): void
3333
{
34-
$path = $this->resourceFolder . 'ExpectedMigrations/';
34+
$path = $this->resourceFolder.'ExpectedMigrations/';
3535
$this->generator->setMigrationDir($path);
3636
$result = $this->generator->generateMigrationForTable('testing', uniqid('test', true));
3737
$this->assertFalse($result);
@@ -40,7 +40,7 @@ public function testGenerateMigrationForTableWithUnknownTableReturnsFalse(): voi
4040

4141
public function tearDown(): void
4242
{
43-
$files = glob($this->resourceFolder . 'ExpectedMigrations/*');
43+
$files = glob($this->resourceFolder.'ExpectedMigrations/*');
4444
foreach ($files as $file) {
4545
if (is_file($file)) {
4646
unlink($file);

tests/Unit/Generator/Compiler/Mapper/AbstractMapperTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class AbstractMapperTest extends TestCase
1515
public function setUp(): void
1616
{
1717
parent::setUp();
18-
$this->abstractMapper = new class extends AbstractMapper{
18+
$this->abstractMapper = new class extends AbstractMapper {
1919

2020
public function map(array $data): array
2121
{
@@ -45,8 +45,8 @@ public static function chainMethodProvider(): array
4545
}
4646

4747
/**
48-
* @param array $methods
49-
* @param string $expectedResult
48+
* @param array $methods
49+
* @param string $expectedResult
5050
*/
5151
#[DataProvider('chainMethodProvider')]
5252
public function testChainMethodsToStringWorks(array $methods, string $expectedResult): void

0 commit comments

Comments
 (0)