Skip to content

Commit 0f1df95

Browse files
committed
Apply fixes from StyleCI
1 parent 865f797 commit 0f1df95

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/Database/DatabaseEloquentModelTest.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2596,7 +2596,7 @@ public function testThrowsWhenAccessingMissingAttributesWhichArePrimitiveCasts()
25962596
$exceptionCount++;
25972597
}
25982598

2599-
foreach($primitiveCasts as $key => $type) {
2599+
foreach ($primitiveCasts as $key => $type) {
26002600
try {
26012601
$v = $model->{$key};
26022602
} catch (MissingAttributeException) {
@@ -3405,8 +3405,8 @@ public static function makePrimitiveCastsArray(): array
34053405
{
34063406
$toReturn = [];
34073407

3408-
foreach(static::$primitiveCastTypes as $index => $primitiveCastType) {
3409-
$toReturn['primitive_cast_' . $index] = $primitiveCastType;
3408+
foreach (static::$primitiveCastTypes as $index => $primitiveCastType) {
3409+
$toReturn['primitive_cast_'.$index] = $primitiveCastType;
34103410
}
34113411

34123412
return $toReturn;
@@ -3419,13 +3419,14 @@ public function __construct(array $attributes = [])
34193419
$this->mergeCasts(self::makePrimitiveCastsArray());
34203420
}
34213421

3422-
public function getThisIsFineAttribute($value) {
3422+
public function getThisIsFineAttribute($value)
3423+
{
34233424
return 'ok';
34243425
}
34253426

34263427
public function thisIsAlsoFine(): Attribute
34273428
{
3428-
return Attribute::get(fn() => 'ok');
3429+
return Attribute::get(fn () => 'ok');
34293430
}
34303431
}
34313432

0 commit comments

Comments
 (0)