Code Duplication    Length = 11-11 lines in 3 locations

src/Kunstmaan/MediaBundle/Helper/RemoteAudio/RemoteAudioHandler.php 1 location

@@ 72-82 (lines=11) @@
69
     *
70
     * @return bool
71
     */
72
    public function canHandle($object)
73
    {
74
        if (
75
            (is_string($object)) ||
76
            ($object instanceof Media && $object->getContentType() == RemoteAudioHandler::CONTENT_TYPE)
77
        ) {
78
            return true;
79
        }
80
81
        return false;
82
    }
83
84
    /**
85
     * @param Media $media

src/Kunstmaan/MediaBundle/Helper/RemoteSlide/RemoteSlideHandler.php 1 location

@@ 50-60 (lines=11) @@
47
     *
48
     * @return bool
49
     */
50
    public function canHandle($object)
51
    {
52
        if (
53
            (is_string($object)) ||
54
            ($object instanceof Media && $object->getContentType() == RemoteSlideHandler::CONTENT_TYPE)
55
        ) {
56
            return true;
57
        }
58
59
        return false;
60
    }
61
62
    /**
63
     * @param Media $media

src/Kunstmaan/MediaBundle/Helper/RemoteVideo/RemoteVideoHandler.php 1 location

@@ 78-88 (lines=11) @@
75
     *
76
     * @return bool
77
     */
78
    public function canHandle($object)
79
    {
80
        if (
81
            (is_string($object)) ||
82
            ($object instanceof Media && $object->getContentType() == RemoteVideoHandler::CONTENT_TYPE)
83
        ) {
84
            return true;
85
        }
86
87
        return false;
88
    }
89
90
    /**
91
     * @param Media $media