Code Duplication    Length = 3-5 lines in 2 locations

src/PlaygroundCore/Module.php 2 locations

@@ 91-93 (lines=3) @@
88
                        if ($serviceManager->get('router')->match($serviceManager->get('request')) &&
89
                            strpos($serviceManager->get('router')->match($serviceManager->get('request'))->getMatchedRouteName(), 'admin') !==false
90
                        ) {
91
                            if ($e->getRequest()->getCookie() &&
92
                                $e->getRequest()->getCookie()->offsetExists('pg_locale_back')
93
                            ) {
94
                                $locale = $e->getRequest()->getCookie()->offsetGet('pg_locale_back');
95
                            }
96
                        } else {
@@ 96-100 (lines=5) @@
93
                            ) {
94
                                $locale = $e->getRequest()->getCookie()->offsetGet('pg_locale_back');
95
                            }
96
                        } else {
97
                            if ($e->getRequest()->getCookie() &&
98
                                $e->getRequest()->getCookie()->offsetExists('pg_locale_frontend')
99
                            ) {
100
                                $locale = $e->getRequest()->getCookie()->offsetGet('pg_locale_frontend');
101
                            }
102
                        }
103
                    }