Passed
Branch master (8da6e2)
by Anton
04:53
created
Category
src/Likeable/Models/Traits/Likeable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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())
Please login to merge, or discard this patch.
src/Likeable/Services/LikeableService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Likeable/Events/LikeableWasDisliked.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Likeable/Events/LikeableWasLiked.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Likeable/Events/LikeableWasUndisliked.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Likeable/Events/LikeableWasUnliked.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Console/Commands/Recount.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Like/Observers/LikeObserver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Like/Enums/LikeType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.