Skip to content

Commit 03a6cf1

Browse files
colinhall17actions-user
authored andcommitted
Fix styling
1 parent d3bf5bd commit 03a6cf1

File tree

6 files changed

+17
-27
lines changed

6 files changed

+17
-27
lines changed

src/Providers/UuidServiceProvider.php

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

33
namespace Uuid\Providers;
44

5-
use Illuminate\Support\Str;
6-
use Illuminate\Filesystem\Filesystem;
75
use Illuminate\Support\ServiceProvider;
86

97
class UuidServiceProvider extends ServiceProvider
@@ -13,15 +11,12 @@ class UuidServiceProvider extends ServiceProvider
1311
*/
1412
public function boot()
1513
{
16-
1714
}
1815

1916
/**
2017
* Register the application services.
2118
*/
2219
public function register()
2320
{
24-
2521
}
26-
2722
}

src/Traits/GeneratesUuid.php

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

77
trait GeneratesUuid
88
{
9-
10-
public static function bootGeneratesUuid(): void
9+
public static function bootGeneratesUuid(): void
1110
{
1211
static::creating(function ($model) {
1312
$model->attributes[$model->uuidColumn()] = (string) Str::uuid();
@@ -21,10 +20,10 @@ public function uuidColumn(): string
2120

2221
public function getIncrementing()
2322
{
24-
if($this->uuidColumn() == $this->getKeyName()){
25-
return false;
26-
}
27-
return true;
28-
}
23+
if ($this->uuidColumn() == $this->getKeyName()) {
24+
return false;
25+
}
2926

30-
}
27+
return true;
28+
}
29+
}

tests/PrimaryTest.php

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

33
namespace Uuid\Tests;
44

5-
use Uuid\Traits\GeneratesUuid;
65
use Illuminate\Database\Eloquent\Model;
6+
use Uuid\Traits\GeneratesUuid;
77

88
class PrimaryTest extends Model
99
{
@@ -13,5 +13,4 @@ public function uuidColumn(): string
1313
{
1414
return 'id';
1515
}
16-
17-
}
16+
}

tests/Test.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
namespace Uuid\Tests;
44

5-
use Uuid\Traits\GeneratesUuid;
65
use Illuminate\Database\Eloquent\Model;
6+
use Uuid\Traits\GeneratesUuid;
77

88
class Test extends Model
99
{
1010
use GeneratesUuid;
11-
12-
}
11+
}

tests/TestCase.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
namespace Uuid\Tests;
44

5-
use Illuminate\Support\Facades\Schema;
65
use Illuminate\Database\Schema\Blueprint;
6+
use Illuminate\Support\Facades\Schema;
77
use Orchestra\Testbench\TestCase as Orchestra;
88

99
abstract class TestCase extends Orchestra
1010
{
11-
public function setUp() : void
11+
public function setUp() : void
1212
{
13-
parent::setUp();
13+
parent::setUp();
1414

1515
Schema::create('primary_tests', function (Blueprint $table) {
1616
$table->uuid('id')->primary();
@@ -20,10 +20,9 @@ public function setUp() : void
2020

2121
Schema::create('tests', function (Blueprint $table) {
2222
$table->bigIncrements('id');
23-
$table->uuid('uuid');
23+
$table->uuid('uuid');
2424
$table->string('name');
2525
$table->timestamps();
2626
});
27-
2827
}
29-
}
28+
}

tests/Unit/UuidTest.php

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

33
namespace Uuid\Tests\Unit;
44

5+
use Uuid\Tests\PrimaryTest;
56
use Uuid\Tests\Test;
67
use Uuid\Tests\TestCase;
7-
use Uuid\Tests\PrimaryTest;
8-
use Illuminate\Foundation\Testing\RefreshDatabase;
98

109
class UuidTest extends TestCase
1110
{

0 commit comments

Comments
 (0)