private function findByKey(string $scopeKey): Scope
    {
        $locales = $this->config->get('locales');

        $locales = array_merge($locales['*'], $locales[$scopeKey]);

        // We flip our values so in case of duplicate locales, the default one
        // is omitted and the one from the specific scope is preserved.
        return new Scope(array_flip(array_flip($locales)));
    }
private function findByKey(string $scopeKey): Scope
    {
        $locales = $this->config->get('locales');

        $locales = array_merge($locales['*'], $locales[$scopeKey]);

        // We flip our values so in case of duplicate locales, the default one
        // is omitted and the one from the specific scope is preserved.
        return new Scope(array_flip(array_flip($locales)));
    }
private function findByKey ( string $ scopeKey ) : Scope { $ locales = $ this -> config -> get ( 'locales' ) ; $ locales = array_merge ( $ locales [ '*' ] , $ locales [ $ scopeKey ] ) ; // We flip our values so in case of duplicate locales, the default one // is omitted and the one from the specific scope is preserved. return new Scope ( array_flip ( array_flip ( $ locales ) ) ) ; }
We limit the available locales to the current domain space, including the default ones
We limit the available locales to the current domain space including the default ones