Skip to content

Commit bdb9094

Browse files
authored
Apply fixes from StyleCI
2 parents 3487720 + 4a8c19a commit bdb9094

File tree

12 files changed

+20
-20
lines changed

12 files changed

+20
-20
lines changed

src/HasBinaryUuid.php

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

33
namespace BoxedCode\BinaryUuid;
44

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

88
trait HasBinaryUuid
99
{
@@ -48,7 +48,7 @@ public static function scopeWithUuidRelation(Builder $builder, $uuid, string $fi
4848
}, $uuid));
4949
}
5050

51-
public static function generateUuid() : string
51+
public static function generateUuid(): string
5252
{
5353
return Uuid::uuid1();
5454
}

src/MySqlGrammar.php

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

33
namespace BoxedCode\BinaryUuid;
44

5-
use Illuminate\Support\Fluent;
65
use Illuminate\Database\Schema\Grammars\MySqlGrammar as IlluminateMySqlGrammar;
6+
use Illuminate\Support\Fluent;
77

88
class MySqlGrammar extends IlluminateMySqlGrammar
99
{

src/SQLiteGrammar.php

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

33
namespace BoxedCode\BinaryUuid;
44

5-
use Illuminate\Support\Fluent;
65
use Illuminate\Database\Schema\Grammars\SQLiteGrammar as IlluminateSQLiteGrammar;
6+
use Illuminate\Support\Fluent;
77

88
class SQLiteGrammar extends IlluminateSQLiteGrammar
99
{

src/UuidServiceProvider.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
namespace BoxedCode\BinaryUuid;
44

55
use Exception;
6-
use Ramsey\Uuid\Uuid;
7-
use Ramsey\Uuid\UuidFactory;
86
use Illuminate\Database\Connection;
9-
use Illuminate\Support\ServiceProvider;
10-
use Ramsey\Uuid\Codec\OrderedTimeCodec;
11-
use Illuminate\Database\Schema\Grammars\Grammar;
127
use Illuminate\Database\Query\Grammars\MySqlGrammar as IlluminateMySqlGrammar;
138
use Illuminate\Database\Query\Grammars\SQLiteGrammar as IlluminateSQLiteGrammar;
9+
use Illuminate\Database\Schema\Grammars\Grammar;
10+
use Illuminate\Support\ServiceProvider;
11+
use Ramsey\Uuid\Codec\OrderedTimeCodec;
12+
use Ramsey\Uuid\Uuid;
13+
use Ramsey\Uuid\UuidFactory;
1414

1515
class UuidServiceProvider extends ServiceProvider
1616
{

tests/Benchmark/Benchmark.php

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

33
namespace BoxedCode\BinaryUuid\Test\Benchmark;
44

5-
use Faker\Factory;
6-
use Doctrine\DBAL\Driver\Connection;
7-
use Doctrine\DBAL\Logging\DebugStack;
85
use BoxedCode\BinaryUuid\Test\Benchmark\Result\FileResult;
96
use BoxedCode\BinaryUuid\Test\Benchmark\Result\InlineResult;
7+
use Doctrine\DBAL\Driver\Connection;
8+
use Doctrine\DBAL\Logging\DebugStack;
9+
use Faker\Factory;
1010

1111
abstract class Benchmark
1212
{

tests/Benchmark/BenchmarkTest.php

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

33
namespace BoxedCode\BinaryUuid\Test\Benchmark;
44

5-
use PHPUnit\Framework\TestCase;
65
use Doctrine\DBAL\Configuration;
76
use Doctrine\DBAL\DriverManager;
87
use Illuminate\Support\Collection;
8+
use PHPUnit\Framework\TestCase;
99

1010
class BenchmarkTest extends TestCase
1111
{

tests/Benchmark/BinaryUuid.php

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

33
namespace BoxedCode\BinaryUuid\Test\Benchmark;
44

5-
use Ramsey\Uuid\Uuid;
65
use BoxedCode\BinaryUuid\Test\Benchmark\Result\InlineResult;
6+
use Ramsey\Uuid\Uuid;
77

88
class BinaryUuid extends Benchmark
99
{

tests/Benchmark/OptimisedUuid.php

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

33
namespace BoxedCode\BinaryUuid\Test\Benchmark;
44

5+
use BoxedCode\BinaryUuid\Test\Benchmark\Result\InlineResult;
56
use Ramsey\Uuid\Uuid;
67
use Ramsey\Uuid\UuidInterface;
7-
use BoxedCode\BinaryUuid\Test\Benchmark\Result\InlineResult;
88

99
class OptimisedUuid extends Benchmark
1010
{

tests/Benchmark/TextualUuid.php

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

33
namespace BoxedCode\BinaryUuid\Test\Benchmark;
44

5-
use Ramsey\Uuid\Uuid;
65
use BoxedCode\BinaryUuid\Test\Benchmark\Result\InlineResult;
6+
use Ramsey\Uuid\Uuid;
77

88
class TextualUuid extends Benchmark
99
{

tests/Feature/HasBinaryUuidTest.php

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

33
namespace BoxedCode\BinaryUuid\Test\Feature;
44

5-
use Ramsey\Uuid\Uuid;
65
use BoxedCode\BinaryUuid\Test\TestCase;
76
use BoxedCode\BinaryUuid\Test\TestModel;
7+
use Ramsey\Uuid\Uuid;
88

99
class HasBinaryUuidTest extends TestCase
1010
{

0 commit comments

Comments
 (0)