Code Duplication    Length = 8-8 lines in 2 locations

src/Grid/Column.php 2 locations

@@ 848-855 (lines=8) @@
845
     *
846
     * @return $this
847
     */
848
    public function belongsTo($selectable)
849
    {
850
        if (method_exists($selectable, 'display')) {
851
            $this->display($selectable::display());
852
        }
853
854
        return $this->displayUsing(Grid\Displayers\BelongsTo::class, [$selectable]);
855
    }
856
857
    /**
858
     * @param string $selectable
@@ 862-869 (lines=8) @@
859
     *
860
     * @return $this
861
     */
862
    public function belongsToMany($selectable)
863
    {
864
        if (method_exists($selectable, 'display')) {
865
            $this->display($selectable::display());
866
        }
867
868
        return $this->displayUsing(Grid\Displayers\BelongsToMany::class, [$selectable]);
869
    }
870
871
    /**
872
     * If has display callbacks.