@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Cog\Laravel\Love\Likeable\Models\Traits; |
15 | 15 | |
@@ -364,7 +364,7 @@ discard block |
||
364 | 364 | $userId = $service->getLikerUserId($userId); |
365 | 365 | $typeId = $service->getLikeTypeId($type); |
366 | 366 | |
367 | - return $query->whereHas('likesAndDislikes', function (Builder $innerQuery) use ($typeId, $userId) { |
|
367 | + return $query->whereHas('likesAndDislikes', function(Builder $innerQuery) use ($typeId, $userId) { |
|
368 | 368 | $innerQuery->where('user_id', $userId); |
369 | 369 | $innerQuery->where('type_id', $typeId); |
370 | 370 | }); |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | |
389 | 389 | return $query |
390 | 390 | ->select($likeable->getTable() . '.*', 'love_like_counters.count') |
391 | - ->leftJoin('love_like_counters', function (JoinClause $join) use ($likeable, $typeId) { |
|
391 | + ->leftJoin('love_like_counters', function(JoinClause $join) use ($likeable, $typeId) { |
|
392 | 392 | $join |
393 | 393 | ->on('love_like_counters.likeable_id', '=', "{$likeable->getTable()}.{$likeable->getKeyName()}") |
394 | 394 | ->where('love_like_counters.likeable_type', '=', $likeable->getMorphClass()) |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Cog\Laravel\Love\Likeable\Services; |
15 | 15 | |
@@ -427,7 +427,7 @@ discard block |
||
427 | 427 | continue; |
428 | 428 | } |
429 | 429 | |
430 | - return $likeable->{$relation}->contains(function ($item) use ($userId, $typeId) { |
|
430 | + return $likeable->{$relation}->contains(function($item) use ($userId, $typeId) { |
|
431 | 431 | return $item->user_id == $userId && $item->type_id === $typeId; |
432 | 432 | }); |
433 | 433 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Cog\Laravel\Love\Likeable\Events; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Cog\Laravel\Love\Likeable\Events; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Cog\Laravel\Love\Likeable\Events; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Cog\Laravel\Love\Likeable\Events; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Cog\Laravel\Love\Console\Commands; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Cog\Laravel\Love\Like\Observers; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Cog\Laravel\Love\Like\Enums; |
15 | 15 |