Code Duplication    Length = 20-20 lines in 2 locations

src/TwoMartens/Bundle/CoreBundle/Controller/ACPGroupController.php 1 location

@@ 286-305 (lines=20) @@
283
    /**
284
     * {@inheritdoc}
285
     */
286
    protected function setBreadcrumbs()
287
    {
288
        $userBreadcrumb = new Breadcrumb(
289
            'acp.user',
290
            $this->get('translator')->trans('acp.breadcrumb.user', [], 'TwoMartensCoreBundle')
291
        );
292
        $activeBreadcrumb = new Breadcrumb(
293
            'acp.user.group.'.$this->action,
294
            $this->get('translator')->trans(
295
                'acp.breadcrumb.user.group.'.$this->action,
296
                [],
297
                'TwoMartensCoreBundle'
298
            )
299
        );
300
        $activeBreadcrumb->activate();
301
        $this->breadcrumbs = [
302
            $userBreadcrumb,
303
            $activeBreadcrumb
304
        ];
305
    }
306
307
    /**
308
     * {@inheritdoc}

src/TwoMartens/Bundle/CoreBundle/Controller/ACPUserController.php 1 location

@@ 239-258 (lines=20) @@
236
    /**
237
     * {@inheritdoc}
238
     */
239
    protected function setBreadcrumbs()
240
    {
241
        $userBreadcrumb = new Breadcrumb(
242
            'acp.user',
243
            $this->get('translator')->trans('acp.breadcrumb.user', [], 'TwoMartensCoreBundle')
244
        );
245
        $activeBreadcrumb = new Breadcrumb(
246
            'acp.user.user.'.$this->action,
247
            $this->get('translator')->trans(
248
                'acp.breadcrumb.user.user.'.$this->action,
249
                [],
250
                'TwoMartensCoreBundle'
251
            )
252
        );
253
        $activeBreadcrumb->activate();
254
        $this->breadcrumbs = [
255
            $userBreadcrumb,
256
            $activeBreadcrumb
257
        ];
258
    }
259
260
    /**
261
     * {@inheritdoc}