Skip to content

Commit e2e364a

Browse files
committed
fix php cs
1 parent b73f7ad commit e2e364a

7 files changed

+15
-15
lines changed

tests/Eloquent/Person.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
class Person extends Eloquent implements TranslatableContract
1010
{
11-
protected $table = 'people';
12-
1311
use Translatable;
1412

1513
/**
@@ -42,6 +40,8 @@ class Person extends Eloquent implements TranslatableContract
4240
*/
4341
public $localeKey;
4442

43+
protected $table = 'people';
44+
4545
/**
4646
* Mutate name attribute into upper-case.
4747
*

tests/Eloquent/Vegetable.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ class Vegetable extends Eloquent implements TranslatableContract
1010
{
1111
use Translatable;
1212

13-
protected $primaryKey = 'identity';
14-
1513
public $translationForeignKey = 'vegetable_identity';
1614

1715
public $translatedAttributes = ['name'];
1816

19-
protected $fillable = ['quantity'];
20-
2117
public $localeKey;
2218

2319
public $translationModel;
20+
21+
protected $primaryKey = 'identity';
22+
23+
protected $fillable = ['quantity'];
2424
}

tests/EloquentOverrideTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Tests;
44

5-
use Tests\Eloquent\Vegetable;
65
use PHPUnit\Framework\Attributes\Test;
6+
use Tests\Eloquent\Vegetable;
77

88
final class EloquentOverrideTest extends TestCase
99
{

tests/ScopesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace Tests;
44

5+
use PHPUnit\Framework\Attributes\Test;
56
use Tests\Eloquent\Country;
67
use Tests\Eloquent\Vegetable;
7-
use PHPUnit\Framework\Attributes\Test;
88

99
final class ScopesTest extends TestCase
1010
{

tests/TranslatableTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
namespace Tests;
44

55
use Astrotomic\Translatable\Locales;
6+
use Illuminate\Database\Eloquent\MassAssignmentException;
7+
use Illuminate\Database\Eloquent\ModelNotFoundException;
8+
use Illuminate\Support\Facades\App;
9+
use Illuminate\Support\Facades\DB;
10+
use PHPUnit\Framework\Attributes\Test;
611
use Tests\Eloquent\Country;
712
use Tests\Eloquent\CountryStrict;
813
use Tests\Eloquent\CountryTranslation;
914
use Tests\Eloquent\Person;
1015
use Tests\Eloquent\Vegetable;
1116
use Tests\Eloquent\VegetableTranslation;
12-
use Illuminate\Database\Eloquent\MassAssignmentException;
13-
use Illuminate\Database\Eloquent\ModelNotFoundException;
14-
use Illuminate\Support\Facades\App;
15-
use Illuminate\Support\Facades\DB;
16-
use PHPUnit\Framework\Attributes\Test;
1717

1818
final class TranslatableTest extends TestCase
1919
{

tests/factories/CountryFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
use Tests\Eloquent\Country;
43
use Faker\Generator as Faker;
54
use Illuminate\Database\Eloquent\Factory as ModelFactory;
5+
use Tests\Eloquent\Country;
66

77
/* @var ModelFactory $factory */
88

tests/factories/VegetableFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
use Tests\Eloquent\Vegetable;
43
use Faker\Generator as Faker;
54
use Illuminate\Database\Eloquent\Factory as ModelFactory;
5+
use Tests\Eloquent\Vegetable;
66

77
/* @var ModelFactory $factory */
88

0 commit comments

Comments
 (0)