Skip to content

Commit 0a75728

Browse files
authored
Merge pull request #6 from milwad-dev/analysis-ZngmQN
Apply fixes from StyleCI
2 parents 37f7ca5 + 520e0f9 commit 0a75728

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

tests/AttributeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
[
2828
'title' => 'framework',
2929
'value' => 'laravel',
30-
]
30+
],
3131
]);
3232

3333
assertDatabaseCount('products', 1);

tests/SetUp/Models/Product.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ class Product extends Model
1111

1212
protected $table = 'products';
1313
protected $fillable = ['title'];
14-
}
14+
}

tests/SetUp/migrations/2023_04_02_141649_create_products_table.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
return new class extends Migration
8-
{
7+
return new class() extends Migration {
98
/**
109
* Run the migrations.
1110
*

tests/TestCase.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
99
/**
1010
* Load package service provider.
1111
*
12-
* @param \Illuminate\Foundation\Application $app
12+
* @param \Illuminate\Foundation\Application $app
13+
*
1314
* @return array
1415
*/
1516
protected function getPackageProviders($app)
@@ -20,22 +21,22 @@ protected function getPackageProviders($app)
2021
/**
2122
* Define environment setup.
2223
*
23-
* @param \Illuminate\Foundation\Application $app
24+
* @param \Illuminate\Foundation\Application $app
2425
*/
2526
protected function getEnvironmentSetUp($app)
2627
{
2728
// Setup default database to use sqlite :memory:
2829
$app['config']->set('database.default', 'testing');
2930
$app['config']->set('database.connections.testing', [
30-
'driver' => 'sqlite',
31+
'driver' => 'sqlite',
3132
'database' => ':memory:',
32-
'prefix' => '',
33+
'prefix' => '',
3334
]);
3435
}
3536

3637
protected function setUp(): void
3738
{
3839
parent::setUp();
39-
$this->loadMigrationsFrom(__DIR__ . '/SetUp/migrations');
40+
$this->loadMigrationsFrom(__DIR__.'/SetUp/migrations');
4041
}
4142
}

0 commit comments

Comments
 (0)