Code Duplication    Length = 11-11 lines in 2 locations

src/Staff/Transformer.php 1 location

@@ 150-160 (lines=11) @@
147
     *
148
     * @return array
149
     */
150
    public function transformMaterial(AbstractMessage $message)
151
    {
152
        $type = $message->getType();
153
154
        return [
155
            'msgtype' => $type,
156
            $type     => [
157
                'media_id' => $message->get('media_id'),
158
            ],
159
        ];
160
    }
161
}
162

src/Broadcast/Transformer.php 1 location

@@ 194-204 (lines=11) @@
191
     *
192
     * @return array
193
     */
194
    public function transformMaterial(AbstractMessage $message)
195
    {
196
        $type = $message->getType();
197
198
        return [
199
            'msgtype' => $type,
200
            $type     => [
201
                'media_id' => $message->get('media_id'),
202
            ],
203
        ];
204
    }
205
206
    /**
207
     * Transform textcard message.