@@ -46,7 +46,7 @@ |
||
46 | 46 | { |
47 | 47 | $this->mergeConfigFrom( __DIR__ . '/../resources/config/adjuster.php', 'adjuster' ); |
48 | 48 | |
49 | - $this->app->bind( 'adjuster.model', function ( $app ) { |
|
49 | + $this->app->bind( 'adjuster.model', function( $app ) { |
|
50 | 50 | return new $app->config[ 'adjuster.adjustment_model' ]; |
51 | 51 | } ); |
52 | 52 | } |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | */ |
37 | 37 | protected static function bootCanBeAdjusted() |
38 | 38 | { |
39 | - static::saving( function ( Adjustable $model ) { |
|
39 | + static::saving( function( Adjustable $model ) { |
|
40 | 40 | if ( $model->isAdjusted() && $model->hasSaveProtection() ) { |
41 | 41 | throw new ModelAdjustedException(); |
42 | 42 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | // We will fetch any existing changes from the adjustment and then filter them down |
62 | 62 | // based on certain criterias. If the value is null or the adjusted value equals |
63 | 63 | // the original value we will remove the value before persisting the changes. |
64 | - $changes = $existingChanges->merge( $changes )->filter( function ( $value, $attribute ) { |
|
64 | + $changes = $existingChanges->merge( $changes )->filter( function( $value, $attribute ) { |
|
65 | 65 | return ! is_null( $value ) && $this->$attribute !== $value; |
66 | 66 | } ); |
67 | 67 |