diff --git a/src/Plugins/WatchingStrategies/EloquentModels/EloquentSituations.php b/src/Plugins/WatchingStrategies/EloquentModels/EloquentSituations.php index 93469a1..92a494c 100644 --- a/src/Plugins/WatchingStrategies/EloquentModels/EloquentSituations.php +++ b/src/Plugins/WatchingStrategies/EloquentModels/EloquentSituations.php @@ -5,10 +5,10 @@ final class EloquentSituations { protected $methods = [ - 'whenYouFetch' => 'retrieved', + 'whenYouFetch' => 'retrieved', 'whenYouCreate' => 'creating', 'whenYouUpdate' => 'updating', - 'whenYouSave' => 'saving', + 'whenYouSave' => 'saving', 'whenYouDelete' => 'deleting', ]; diff --git a/src/Switching/Consider.php b/src/Switching/Consider.php index 784bd52..3662ba9 100644 --- a/src/Switching/Consider.php +++ b/src/Switching/Consider.php @@ -68,7 +68,7 @@ private function changeMode($key) { config()->set($key, [ 'turnOff' => true, - 'turnOn' => false, + 'turnOn' => false, ][$this->mode]); } } diff --git a/tests/ReactionsTest.php b/tests/ReactionsTest.php index f317ad7..2de376f 100644 --- a/tests/ReactionsTest.php +++ b/tests/ReactionsTest.php @@ -69,11 +69,11 @@ public function test_json_response() return view('welcome'); })->name('welcome1.name'); - HeyMan::whenYouVisitUrl(['welcome', 'welcome_'])->always()->response()->json(['m'=> 'm'], 403); + HeyMan::whenYouVisitUrl(['welcome', 'welcome_'])->always()->response()->json(['m' => 'm'], 403); HeyMan::whenYouVisitUrl('welcome1')->thisValueShouldAllow(true)->otherwise()->weDenyAccess(); app(StartGuarding::class)->start(); - $this->get('welcome')->assertJson(['m'=>'m'])->assertStatus(403); + $this->get('welcome')->assertJson(['m' => 'm'])->assertStatus(403); $this->get('welcome1')->assertStatus(200); } @@ -101,10 +101,10 @@ public function test_we_respond_from() HeyMan::whenYouVisitUrl('welcome') ->thisValueShouldAllow(false) ->otherwise() - ->weRespondFrom(SomeClass::class.'@someMethod2', ['p1' => 20, 'p2' =>30]); + ->weRespondFrom(SomeClass::class.'@someMethod2', ['p1' => 20, 'p2' => 30]); app(StartGuarding::class)->start(); - $this->get('welcome')->assertStatus(566)->assertJson(['Wow'=> '50']); + $this->get('welcome')->assertStatus(566)->assertJson(['Wow' => '50']); } public function test_we_respond_from_2() @@ -118,7 +118,7 @@ public function test_we_respond_from_2() app(StartGuarding::class)->start(); - $this->get('welcome')->assertStatus(201)->assertJson(['Wow'=> '50']); + $this->get('welcome')->assertStatus(201)->assertJson(['Wow' => '50']); } public function test_we_respond_from_3()