Test Failed
Push — master ( 8058df...bae25b )
by Nur
10:24 queued 27s
created
src/LikeableServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
      */
82 82
     protected function registerPublishes()
83 83
     {
84
-        $databasePath = __DIR__.'./../migrations';
84
+        $databasePath = __DIR__ . './../migrations';
85 85
         $this->loadMigrationsFrom($databasePath);
86 86
         
87 87
         if ($this->app->runningInConsole()) {
Please login to merge, or discard this patch.
src/Services/LikeableService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
     {
309 309
         $userId = $this->getLikerUserId($userId);
310 310
 
311
-        return $query->whereHas('likesAndDislikes', function (Builder $innerQuery) use ($type, $userId) {
311
+        return $query->whereHas('likesAndDislikes', function(Builder $innerQuery) use ($type, $userId) {
312 312
             $innerQuery->where('user_id', $userId);
313 313
             $innerQuery->where('type_id', $this->getLikeTypeId($type));
314 314
         });
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
 
329 329
         return $query
330 330
             ->select($likeable->getTable() . '.*', 'like_counter.count')
331
-            ->leftJoin('like_counter', function (JoinClause $join) use ($likeable, $likeType) {
331
+            ->leftJoin('like_counter', function(JoinClause $join) use ($likeable, $likeType) {
332 332
                 $join
333 333
                     ->on('like_counter.likeable_id', '=', "{$likeable->getTable()}.{$likeable->getKeyName()}")
334 334
                     ->where('like_counter.likeable_type', '=', $likeable->getMorphClass())
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
                 continue;
445 445
             }
446 446
 
447
-            return $likeable->{$relation}->contains(function ($item) use ($userId, $typeId) {
447
+            return $likeable->{$relation}->contains(function($item) use ($userId, $typeId) {
448 448
                 return $item->user_id == $userId && $item->type_id === $typeId;
449 449
             });
450 450
         }
Please login to merge, or discard this patch.
src/Models/Like.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@
 block discarded – undo
37 37
     /**
38 38
      * @access private
39 39
      */
40
-	public function likeable(): MorphTo
41
-	{
42
-		return $this->morphTo();
43
-	}
40
+ public function likeable(): MorphTo
41
+ {
42
+  return $this->morphTo();
43
+ }
44 44
     /**
45 45
      * Return the like's author.
46 46
      */
Please login to merge, or discard this patch.
src/Models/LikeCounter.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@
 block discarded – undo
11 11
  */
12 12
 class LikeCounter extends Model implements LikeCounterContract
13 13
 {
14
-	protected $table = 'like_counters';
15
-	protected $fillable = [
14
+ protected $table = 'like_counters';
15
+ protected $fillable = [
16 16
         'type_id',
17 17
         'count',
18 18
     ];
Please login to merge, or discard this patch.