Skip to content

Commit 1b4f56f

Browse files
Merge pull request #151 from imanghafoori1/analysis-nedoDw
Apply fixes from StyleCI [ci skip] [skip ci]
2 parents 32f900f + f2982dd commit 1b4f56f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/Plugins/WatchingStrategies/EloquentModels/EloquentSituations.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
final class EloquentSituations
66
{
77
protected $methods = [
8-
'whenYouFetch' => 'retrieved',
8+
'whenYouFetch' => 'retrieved',
99
'whenYouCreate' => 'creating',
1010
'whenYouUpdate' => 'updating',
11-
'whenYouSave' => 'saving',
11+
'whenYouSave' => 'saving',
1212
'whenYouDelete' => 'deleting',
1313
];
1414

src/Switching/Consider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ private function changeMode($key)
6868
{
6969
config()->set($key, [
7070
'turnOff' => true,
71-
'turnOn' => false,
71+
'turnOn' => false,
7272
][$this->mode]);
7373
}
7474
}

tests/ReactionsTest.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ public function test_json_response()
6969
return view('welcome');
7070
})->name('welcome1.name');
7171

72-
HeyMan::whenYouVisitUrl(['welcome', 'welcome_'])->always()->response()->json(['m'=> 'm'], 403);
72+
HeyMan::whenYouVisitUrl(['welcome', 'welcome_'])->always()->response()->json(['m' => 'm'], 403);
7373
HeyMan::whenYouVisitUrl('welcome1')->thisValueShouldAllow(true)->otherwise()->weDenyAccess();
7474
app(StartGuarding::class)->start();
7575

76-
$this->get('welcome')->assertJson(['m'=>'m'])->assertStatus(403);
76+
$this->get('welcome')->assertJson(['m' => 'm'])->assertStatus(403);
7777
$this->get('welcome1')->assertStatus(200);
7878
}
7979

@@ -101,10 +101,10 @@ public function test_we_respond_from()
101101
HeyMan::whenYouVisitUrl('welcome')
102102
->thisValueShouldAllow(false)
103103
->otherwise()
104-
->weRespondFrom(SomeClass::class.'@someMethod2', ['p1' => 20, 'p2' =>30]);
104+
->weRespondFrom(SomeClass::class.'@someMethod2', ['p1' => 20, 'p2' => 30]);
105105
app(StartGuarding::class)->start();
106106

107-
$this->get('welcome')->assertStatus(566)->assertJson(['Wow'=> '50']);
107+
$this->get('welcome')->assertStatus(566)->assertJson(['Wow' => '50']);
108108
}
109109

110110
public function test_we_respond_from_2()
@@ -118,7 +118,7 @@ public function test_we_respond_from_2()
118118

119119
app(StartGuarding::class)->start();
120120

121-
$this->get('welcome')->assertStatus(201)->assertJson(['Wow'=> '50']);
121+
$this->get('welcome')->assertStatus(201)->assertJson(['Wow' => '50']);
122122
}
123123

124124
public function test_we_respond_from_3()

0 commit comments

Comments
 (0)