Skip to content
This repository was archived by the owner on Dec 10, 2018. It is now read-only.

Commit 07eeefa

Browse files
authored
Merge pull request #7 from spatie/analysis-8Q4vR6
Apply fixes from StyleCI
2 parents dd3d0ef + 1b7c731 commit 07eeefa

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/UuidServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ protected function createGrammarFromConnection(Connection $connection): Grammar
2525

2626
$queryGrammarClass = get_class($queryGrammar);
2727

28-
if (!in_array($queryGrammarClass, [
28+
if (! in_array($queryGrammarClass, [
2929
IlluminateMySqlGrammar::class,
30-
IlluminateSQLiteGrammar::class
30+
IlluminateSQLiteGrammar::class,
3131
])) {
3232
throw new Exception("There current grammar `$queryGrammarClass` doesn't support binary uuids. Only MySql and SQLite connections are supported.");
3333
}

tests/Benchmark/Benchmark.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ abstract class Benchmark
1616

1717
protected $randomTexts = [];
1818

19-
/** @var \Doctrine\DBAL\Driver\Connection */
19+
/** @var \Doctrine\DBAL\Driver\Connection */
2020
protected $connection;
2121

22-
/** @var \Faker\Generator */
22+
/** @var \Faker\Generator */
2323
protected $faker;
2424

2525
protected $result = [];

tests/Benchmark/BenchmarkTest.php

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

33
namespace Spatie\BinaryUuid\Test\Benchmark;
44

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

1010
class BenchmarkTest extends TestCase
1111
{
@@ -85,7 +85,6 @@ protected function runIteration(Collection $benchmarks, int $recordsInTable)
8585

8686
->tap(function () {
8787
$this->writeln("\nSeeding tables");
88-
8988
})
9089
->each(function (Benchmark $benchmark) {
9190
$benchmark->seedTable();

0 commit comments

Comments
 (0)