original_string: private function configure()
      {
          $keyCert = SignatureUtils::generateKeyCert($this->settings);
          $dir = dirname($this->settings['sp_key_file']);
          if (!is_dir($dir)) {
              throw new \InvalidArgumentException('The directory you selected for sp_key_file does not exist. Please create ' . $dir);
          }
          $dir = dirname($this->settings['sp_cert_file']);
          if (!is_dir($dir)) {
              throw new \InvalidArgumentException('The directory you selected for sp_cert_file does not exist. Please create ' . $dir);
          }
          file_put_contents($this->settings['sp_key_file'], $keyCert['key']);
          file_put_contents($this->settings['sp_cert_file'], $keyCert['cert']);
      }
code: private function configure()
      {
          $keyCert = SignatureUtils::generateKeyCert($this->settings);
          $dir = dirname($this->settings['sp_key_file']);
          if (!is_dir($dir)) {
              throw new \InvalidArgumentException('The directory you selected for sp_key_file does not exist. Please create ' . $dir);
          }
          $dir = dirname($this->settings['sp_cert_file']);
          if (!is_dir($dir)) {
              throw new \InvalidArgumentException('The directory you selected for sp_cert_file does not exist. Please create ' . $dir);
          }
          file_put_contents($this->settings['sp_key_file'], $keyCert['key']);
          file_put_contents($this->settings['sp_cert_file'], $keyCert['cert']);
      }
code_tokens: private function configure ( ) { $ keyCert = SignatureUtils :: generateKeyCert ( $ this -> settings ) ; $ dir = dirname ( $ this -> settings [ 'sp_key_file' ] ) ; if ( ! is_dir ( $ dir ) ) { throw new \ InvalidArgumentException ( 'The directory you selected for sp_key_file does not exist. Please create ' . $ dir ) ; } $ dir = dirname ( $ this -> settings [ 'sp_cert_file' ] ) ; if ( ! is_dir ( $ dir ) ) { throw new \ InvalidArgumentException ( 'The directory you selected for sp_cert_file does not exist. Please create ' . $ dir ) ; } file_put_contents ( $ this -> settings [ 'sp_key_file' ] , $ keyCert [ 'key' ] ) ; file_put_contents ( $ this -> settings [ 'sp_cert_file' ] , $ keyCert [ 'cert' ] ) ; }
docstring: this function should be used with care because it requires write access to the filesystem, and invalidates the metadata
docstring_tokens: this function should be used with care because it requires write access to the filesystem and invalidates the metadata