Code Duplication    Length = 3-5 lines in 2 locations

src/PlaygroundCore/Module.php 2 locations

@@ 62-64 (lines=3) @@
59
                        if ($serviceManager->get('router')->match($serviceManager->get('request')) &&
60
                            strpos($serviceManager->get('router')->match($serviceManager->get('request'))->getMatchedRouteName(), 'admin') !==false
61
                        ) {
62
                            if ($e->getRequest()->getCookie() &&
63
                                $e->getRequest()->getCookie()->offsetExists('pg_locale_back')
64
                            ) {
65
                                $locale = $e->getRequest()->getCookie()->offsetGet('pg_locale_back');
66
                            }
67
                        } else {
@@ 67-71 (lines=5) @@
64
                            ) {
65
                                $locale = $e->getRequest()->getCookie()->offsetGet('pg_locale_back');
66
                            }
67
                        } else {
68
                            if ($e->getRequest()->getCookie() &&
69
                                $e->getRequest()->getCookie()->offsetExists('pg_locale_frontend')
70
                            ) {
71
                                $locale = $e->getRequest()->getCookie()->offsetGet('pg_locale_frontend');
72
                            }
73
                        }
74
                    }