@@ -1058,9 +1058,9 @@ public function updateQuietly(array $attributes = [], array $options = [])
1058
1058
*/
1059
1059
protected function incrementQuietly ($ column , $ amount = 1 , array $ extra = [])
1060
1060
{
1061
- return static ::withoutEvents (function () use ( $ column , $ amount , $ extra ) {
1062
- return $ this ->incrementOrDecrement ($ column , $ amount , $ extra , 'increment ' );
1063
- } );
1061
+ return static ::withoutEvents (
1062
+ fn () => $ this ->incrementOrDecrement ($ column , $ amount , $ extra , 'increment ' )
1063
+ );
1064
1064
}
1065
1065
1066
1066
/**
@@ -1073,9 +1073,9 @@ protected function incrementQuietly($column, $amount = 1, array $extra = [])
1073
1073
*/
1074
1074
protected function decrementQuietly ($ column , $ amount = 1 , array $ extra = [])
1075
1075
{
1076
- return static ::withoutEvents (function () use ( $ column , $ amount , $ extra ) {
1077
- return $ this ->incrementOrDecrement ($ column , $ amount , $ extra , 'decrement ' );
1078
- } );
1076
+ return static ::withoutEvents (
1077
+ fn () => $ this ->incrementOrDecrement ($ column , $ amount , $ extra , 'decrement ' )
1078
+ );
1079
1079
}
1080
1080
1081
1081
/**
@@ -1732,10 +1732,10 @@ public function refresh()
1732
1732
->attributes
1733
1733
);
1734
1734
1735
- $ this ->load ((new BaseCollection ($ this ->relations ))->reject (function ( $ relation ) {
1736
- return $ relation instanceof Pivot
1737
- || (is_object ($ relation ) && in_array (AsPivot::class, class_uses_recursive ($ relation ), true ));
1738
- } )->keys ()->all ());
1735
+ $ this ->load ((new BaseCollection ($ this ->relations ))->reject (
1736
+ fn ( $ relation ) => $ relation instanceof Pivot
1737
+ || (is_object ($ relation ) && in_array (AsPivot::class, class_uses_recursive ($ relation ), true ))
1738
+ )->keys ()->all ());
1739
1739
1740
1740
$ this ->syncOriginal ();
1741
1741
0 commit comments