protected static function guess_image($issuer) {
        if (empty($issuer->get('image')) && !empty($issuer->get('baseurl'))) {
            $baseurl = parse_url($issuer->get('baseurl'));
            $imageurl = $baseurl['scheme'] . '://' . $baseurl['host'] . '/favicon.ico';
            $issuer->set('image', $imageurl);
            $issuer->update();
        }
    }
protected static function guess_image($issuer) {
        if (empty($issuer->get('image')) && !empty($issuer->get('baseurl'))) {
            $baseurl = parse_url($issuer->get('baseurl'));
            $imageurl = $baseurl['scheme'] . '://' . $baseurl['host'] . '/favicon.ico';
            $issuer->set('image', $imageurl);
            $issuer->update();
        }
    }
protected static function guess_image ( $ issuer ) { if ( empty ( $ issuer -> get ( 'image' ) ) && ! empty ( $ issuer -> get ( 'baseurl' ) ) ) { $ baseurl = parse_url ( $ issuer -> get ( 'baseurl' ) ) ; $ imageurl = $ baseurl [ 'scheme' ] . '://' . $ baseurl [ 'host' ] . '/favicon.ico' ; $ issuer -> set ( 'image' , $ imageurl ) ; $ issuer -> update ( ) ; } }
Guess an image from the discovery URL.

@param \core\oauth2\issuer $issuer The desired OAuth issuer
Guess an image from the discovery URL .