Skip to content

Commit

Permalink
Apply fixes from StyleCI (#33312)
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell authored Jun 23, 2020
1 parent b20125d commit d750abe
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function testBasicCustomCasting()
public function testGetOriginalWithCastValueObjects()
{
$model = new TestEloquentModelWithCustomCast([
'address' => new Address('110 Kingsbrook St.', 'My Childhood House')
'address' => new Address('110 Kingsbrook St.', 'My Childhood House'),
]);

$model->syncOriginal();
Expand All @@ -106,9 +106,8 @@ public function testGetOriginalWithCastValueObjects()
$this->assertEquals('110 Kingsbrook St.', $model->getOriginal('address')->lineOne);
$this->assertEquals('117 Spencer St.', $model->address->lineOne);


$model = new TestEloquentModelWithCustomCast([
'address' => new Address('110 Kingsbrook St.', 'My Childhood House')
'address' => new Address('110 Kingsbrook St.', 'My Childhood House'),
]);

$model->syncOriginal();
Expand Down Expand Up @@ -241,7 +240,7 @@ class AddressCaster implements CastsAttributes
public function get($model, $key, $value, $attributes)
{
if (is_null($attributes['address_line_one'])) {
return null;
return;
}

return new Address($attributes['address_line_one'], $attributes['address_line_two']);
Expand Down

0 comments on commit d750abe

Please sign in to comment.