original_string: private function cleanTarget(): void
      {
          foreach ($this->targetDictionary->keys() as $key) {
              if (!$this->sourceDictionary->has($key) || $this->sourceDictionary->get($key)->isSourceEmpty()) {
                  $this->logger->log($this->logLevel, 'Removing obsolete {key}.', ['key' => $key]);
                  if ($this->dryRun) {
                      continue;
                  }
  
                  $this->targetDictionary->remove($key);
              }
          }
      }
code: private function cleanTarget(): void
      {
          foreach ($this->targetDictionary->keys() as $key) {
              if (!$this->sourceDictionary->has($key) || $this->sourceDictionary->get($key)->isSourceEmpty()) {
                  $this->logger->log($this->logLevel, 'Removing obsolete {key}.', ['key' => $key]);
                  if ($this->dryRun) {
                      continue;
                  }
  
                  $this->targetDictionary->remove($key);
              }
          }
      }
code_tokens: private function cleanTarget ( ) : void { foreach ( $ this -> targetDictionary -> keys ( ) as $ key ) { if ( ! $ this -> sourceDictionary -> has ( $ key ) || $ this -> sourceDictionary -> get ( $ key ) -> isSourceEmpty ( ) ) { $ this -> logger -> log ( $ this -> logLevel , 'Removing obsolete {key}.' , [ 'key' => $ key ] ) ; if ( $ this -> dryRun ) { continue ; } $ this -> targetDictionary -> remove ( $ key ) ; } } }
docstring: Clean the target language.
  
  @return void
docstring_tokens: Clean the target language .