protected function fetchKey($key)
    {
        if (str_contains($key, '.'))
        {
            $keys = explode('.', $key);
            $search = array_except($keys, 0);

            return array(array_get($keys, 0), implode('.', $search));
        }

        return array($key, null);
    }
protected function fetchKey($key)
    {
        if (str_contains($key, '.'))
        {
            $keys = explode('.', $key);
            $search = array_except($keys, 0);

            return array(array_get($keys, 0), implode('.', $search));
        }

        return array($key, null);
    }
protected function fetchKey ( $ key ) { if ( str_contains ( $ key , '.' ) ) { $ keys = explode ( '.' , $ key ) ; $ search = array_except ( $ keys , 0 ) ; return array ( array_get ( $ keys , 0 ) , implode ( '.' , $ search ) ) ; } return array ( $ key , null ) ; }
Get registry key

@param  string $key
@return array
Get registry key