Code Duplication    Length = 7-7 lines in 4 locations

src/Bundle/ResourceBundle/Rest/View/EventSubscriber/FormViewSubscriber.php 1 location

@@ 109-115 (lines=7) @@
106
    /**
107
     * {@inheritdoc}
108
     */
109
    public static function getSubscribedEvents()
110
    {
111
        return [RestEvents::VIEW => [
112
            ['onApi', -1000],
113
            ['onView', -2000],
114
        ]];
115
    }
116
117
    /**
118
     * @param FormInterface $form

src/Bundle/ResourceBundle/Rest/View/EventSubscriber/GridViewSubscriber.php 1 location

@@ 119-125 (lines=7) @@
116
    /**
117
     * {@inheritdoc}
118
     */
119
    public static function getSubscribedEvents()
120
    {
121
        return [RestEvents::VIEW => [
122
            ['onApi', -2000],
123
            ['onView', -1000],
124
        ]];
125
    }
126
}
127

src/Bundle/ResourceBundle/Rest/View/EventSubscriber/PagerfantaViewSubscriber.php 1 location

@@ 107-113 (lines=7) @@
104
    /**
105
     * {@inheritdoc}
106
     */
107
    public static function getSubscribedEvents()
108
    {
109
        return [RestEvents::VIEW => [
110
            ['onApi', -3000],
111
            ['onView', -3000],
112
        ]];
113
    }
114
}
115

src/Bundle/ResourceBundle/Rest/View/EventSubscriber/ResourceViewSubscriber.php 1 location

@@ 63-69 (lines=7) @@
60
    /**
61
     * {@inheritdoc}
62
     */
63
    public static function getSubscribedEvents()
64
    {
65
        return [RestEvents::VIEW => [
66
            ['onApi', -4000],
67
            ['onView', -4000],
68
        ]];
69
    }
70
}
71