original_string: private function isConfigured() : bool
      {
          if (!is_readable($this->settings['sp_key_file'])) {
              return false;
          }
          if (!is_readable($this->settings['sp_cert_file'])) {
              return false;
          }
          $key = file_get_contents($this->settings['sp_key_file']);
          if (!openssl_get_privatekey($key)) {
              return false;
          }
          $cert = file_get_contents($this->settings['sp_cert_file']);
          if (!openssl_get_publickey($cert)) {
              return false;
          }
          if (!SignatureUtils::certDNEquals($cert, $this->settings)) {
              return false;
          }
          return true;
      }
code: private function isConfigured() : bool
      {
          if (!is_readable($this->settings['sp_key_file'])) {
              return false;
          }
          if (!is_readable($this->settings['sp_cert_file'])) {
              return false;
          }
          $key = file_get_contents($this->settings['sp_key_file']);
          if (!openssl_get_privatekey($key)) {
              return false;
          }
          $cert = file_get_contents($this->settings['sp_cert_file']);
          if (!openssl_get_publickey($cert)) {
              return false;
          }
          if (!SignatureUtils::certDNEquals($cert, $this->settings)) {
              return false;
          }
          return true;
      }
code_tokens: private function isConfigured ( ) : bool { if ( ! is_readable ( $ this -> settings [ 'sp_key_file' ] ) ) { return false ; } if ( ! is_readable ( $ this -> settings [ 'sp_cert_file' ] ) ) { return false ; } $ key = file_get_contents ( $ this -> settings [ 'sp_key_file' ] ) ; if ( ! openssl_get_privatekey ( $ key ) ) { return false ; } $ cert = file_get_contents ( $ this -> settings [ 'sp_cert_file' ] ) ; if ( ! openssl_get_publickey ( $ cert ) ) { return false ; } if ( ! SignatureUtils :: certDNEquals ( $ cert , $ this -> settings ) ) { return false ; } return true ; }
docstring: (i.e. the library has been configured correctly
docstring_tokens: ( i . e . the library has been configured correctly