original_string: 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();
          }
      }
code: 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();
          }
      }
code_tokens: 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 ( ) ; } }
docstring: Guess an image from the discovery URL.
  
  @param \core\oauth2\issuer $issuer The desired OAuth issuer
docstring_tokens: Guess an image from the discovery URL .