Completed
Push — master ( 4794bc...0b40b3 )
by Alexander
03:31
created
src/AdjusterServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/CanBeAdjusted.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.