Skip to content

Commit b309f26

Browse files
hkp22github-actions[bot]
authored andcommitted
Fix styling
1 parent 8ddf93f commit b309f26

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Traits/Reactable.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public function scopeWhereReactedBy(Builder $query, $userId = null, $type = null
197197
try {
198198
$user = $this->getUser($userId);
199199
} catch (InvalidReactionUser $e) {
200-
if (!$user && !$userId) {
200+
if (! $user && ! $userId) {
201201
throw InvalidReactionUser::notDefined();
202202
}
203203
}
@@ -223,15 +223,15 @@ public function scopeWhereReactedBy(Builder $query, $userId = null, $type = null
223223
*/
224224
private function getUser($user = null)
225225
{
226-
if (!$user && auth()->check()) {
226+
if (! $user && auth()->check()) {
227227
return auth()->user();
228228
}
229229

230230
if ($user instanceof ReactsInterface) {
231231
return $user;
232232
}
233233

234-
if (!$user) {
234+
if (! $user) {
235235
throw InvalidReactionUser::notDefined();
236236
}
237237

src/Traits/Reacts.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function reactTo(ReactableInterface $reactable, $type)
2323
Helper::resolveReactsIdColumn() => $this->getKey(),
2424
])->first();
2525

26-
if (!$reaction) {
26+
if (! $reaction) {
2727
return $this->storeReaction($reactable, $type);
2828
}
2929

@@ -48,7 +48,7 @@ public function removeReactionFrom(ReactableInterface $reactable)
4848
Helper::resolveReactsIdColumn() => $this->getKey(),
4949
])->first();
5050

51-
if (!$reaction) {
51+
if (! $reaction) {
5252
return;
5353
}
5454

@@ -68,7 +68,7 @@ public function toggleReactionOn(ReactableInterface $reactable, $type)
6868
Helper::resolveReactsIdColumn() => $this->getKey(),
6969
])->first();
7070

71-
if (!$reaction) {
71+
if (! $reaction) {
7272
return $this->storeReaction($reactable, $type);
7373
}
7474

0 commit comments

Comments
 (0)