src/Repositories/TranslationRepository.php
public function parseCode($code)
    {
        $segments = (new NamespacedItemResolver)->parseKey($code);

        if (is_null($segments[0])) {
            $segments[0] = '*';
        }

        return $segments;
    }
public function parseCode($code)
    {
        $segments = (new NamespacedItemResolver)->parseKey($code);

        if (is_null($segments[0])) {
            $segments[0] = '*';
        }

        return $segments;
    }
public function parseCode ( $ code ) { $ segments = ( new NamespacedItemResolver ) -> parseKey ( $ code ) ; if ( is_null ( $ segments [ 0 ] ) ) { $ segments [ 0 ] = '*' ; } return $ segments ; }
Parse a translation code into its components

@param  string $code
@return boolean
Parse a translation code into its components