src/Dropbox/Authentication/DropboxAuthHelper.php
protected function decodeState($state)
    {
        $csrfToken = $state;
        $urlState = null;

        $splitPos = strpos($state, "|");

        if ($splitPos !== false) {
            $csrfToken = substr($state, 0, $splitPos);
            $urlState = substr($state, $splitPos + 1);
        }

        return ['csrfToken' => $csrfToken, 'urlState' => $urlState];
    }
protected function decodeState($state)
    {
        $csrfToken = $state;
        $urlState = null;

        $splitPos = strpos($state, "|");

        if ($splitPos !== false) {
            $csrfToken = substr($state, 0, $splitPos);
            $urlState = substr($state, $splitPos + 1);
        }

        return ['csrfToken' => $csrfToken, 'urlState' => $urlState];
    }
protected function decodeState ( $ state ) { $ csrfToken = $ state ; $ urlState = null ; $ splitPos = strpos ( $ state , "|" ) ; if ( $ splitPos !== false ) { $ csrfToken = substr ( $ state , 0 , $ splitPos ) ; $ urlState = substr ( $ state , $ splitPos + 1 ) ; } return [ 'csrfToken' => $ csrfToken , 'urlState' => $ urlState ] ; }
Decode State to get the CSRF Token and the URL State

@param  string $state State

@return array
Decode State to get the CSRF Token and the URL State