Code Duplication    Length = 12-12 lines in 2 locations

src/ActivatableScope.php 2 locations

@@ 48-59 (lines=12) @@
45
        });
46
    }
47
48
    public function addWithoutDeactivated(Builder $builder)
49
    {
50
        $builder->macro('withoutDeactivated', function (Builder $builder) {
51
            $model = $builder->getModel();
52
53
            $builder->withoutGlobalScope($this)->whereNotNull(
54
                $model->getQualifiedActivatedAtColumn()
55
            );
56
57
            return $builder;
58
        });
59
    }
60
61
    public function addOnlyDeactivated(Builder $builder)
62
    {
@@ 61-72 (lines=12) @@
58
        });
59
    }
60
61
    public function addOnlyDeactivated(Builder $builder)
62
    {
63
        $builder->macro('onlyDeactivated', function (Builder $builder) {
64
            $model = $builder->getModel();
65
66
            $builder->withoutGlobalScope($this)->whereNull(
67
                $model->getQualifiedActivatedAtColumn()
68
            );
69
70
            return $builder;
71
        });
72
    }
73
74
    public function addDeactivate(Builder $builder)
75
    {