Skip to content

Commit e576b17

Browse files
author
Oliver Nybroe
committed
Fix styling issues
1 parent a530248 commit e576b17

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

src/Illuminate/Testing/Comparators/ModelComparator.php

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

99
class ModelComparator extends Comparator
1010
{
11+
/**
12+
* Checks if the two values are allowed to be compared with this comparator.
13+
*
14+
* @param mixed $expected
15+
* @param mixed $actual
16+
* @return bool
17+
*/
1118
public function accepts($expected, $actual): bool
1219
{
1320
return $expected instanceof Model && $actual instanceof Model;
1421
}
1522

1623
/**
17-
* @param Model $expected
18-
* @param Model $actual
24+
* Asserts that expected and actual are the same model.
25+
*
26+
* @param \Illuminate\Database\Eloquent\Model $expected
27+
* @param \Illuminate\Database\Eloquent\Model $actual
28+
* @param float $delta
29+
* @param bool $canonicalize
30+
* @param bool $ignoreCase
31+
* @return void
1932
*/
2033
public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase = false): void
2134
{

src/Illuminate/Testing/TestingServiceProvider.php

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

33
namespace Illuminate\Testing;
44

5-
use Illuminate\Contracts\Support\DeferrableProvider;
65
use Illuminate\Support\ServiceProvider;
76
use Illuminate\Testing\Comparators\ModelComparator;
87
use SebastianBergmann\Comparator\Factory;
@@ -14,7 +13,7 @@ class TestingServiceProvider extends ServiceProvider
1413
*
1514
* @return void
1615
*/
17-
public function register()
16+
public function register(): void
1817
{
1918
$comparatorFactory = Factory::getInstance();
2019
$comparatorFactory->register(new ModelComparator());

tests/Testing/Comparators/ModelComparatorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public function testIsNotEqualIfDifferentConnection()
7474
}
7575
}
7676

77-
class TestModel extends Model {
77+
class TestModel extends Model
78+
{
7879
protected $guarded = [];
7980
}

0 commit comments

Comments
 (0)