Skip to content

Commit

Permalink
fix php cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Gummibeer committed Apr 17, 2024
1 parent b73f7ad commit e2e364a
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions tests/Eloquent/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

class Person extends Eloquent implements TranslatableContract
{
protected $table = 'people';

use Translatable;

/**
Expand Down Expand Up @@ -42,6 +40,8 @@ class Person extends Eloquent implements TranslatableContract
*/
public $localeKey;

protected $table = 'people';

/**
* Mutate name attribute into upper-case.
*
Expand Down
8 changes: 4 additions & 4 deletions tests/Eloquent/Vegetable.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ class Vegetable extends Eloquent implements TranslatableContract
{
use Translatable;

protected $primaryKey = 'identity';

public $translationForeignKey = 'vegetable_identity';

public $translatedAttributes = ['name'];

protected $fillable = ['quantity'];

public $localeKey;

public $translationModel;

protected $primaryKey = 'identity';

protected $fillable = ['quantity'];
}
2 changes: 1 addition & 1 deletion tests/EloquentOverrideTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Tests;

use Tests\Eloquent\Vegetable;
use PHPUnit\Framework\Attributes\Test;
use Tests\Eloquent\Vegetable;

final class EloquentOverrideTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/ScopesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Tests;

use PHPUnit\Framework\Attributes\Test;
use Tests\Eloquent\Country;
use Tests\Eloquent\Vegetable;
use PHPUnit\Framework\Attributes\Test;

final class ScopesTest extends TestCase
{
Expand Down
10 changes: 5 additions & 5 deletions tests/TranslatableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
namespace Tests;

use Astrotomic\Translatable\Locales;
use Illuminate\Database\Eloquent\MassAssignmentException;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\DB;
use PHPUnit\Framework\Attributes\Test;
use Tests\Eloquent\Country;
use Tests\Eloquent\CountryStrict;
use Tests\Eloquent\CountryTranslation;
use Tests\Eloquent\Person;
use Tests\Eloquent\Vegetable;
use Tests\Eloquent\VegetableTranslation;
use Illuminate\Database\Eloquent\MassAssignmentException;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\DB;
use PHPUnit\Framework\Attributes\Test;

final class TranslatableTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/factories/CountryFactory.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Tests\Eloquent\Country;
use Faker\Generator as Faker;
use Illuminate\Database\Eloquent\Factory as ModelFactory;
use Tests\Eloquent\Country;

/* @var ModelFactory $factory */

Expand Down
2 changes: 1 addition & 1 deletion tests/factories/VegetableFactory.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Tests\Eloquent\Vegetable;
use Faker\Generator as Faker;
use Illuminate\Database\Eloquent\Factory as ModelFactory;
use Tests\Eloquent\Vegetable;

/* @var ModelFactory $factory */

Expand Down

0 comments on commit e2e364a

Please sign in to comment.