original_string: protected function setDataEditSettings()
      {
          $header = $this->getData('settings.header');
  
          if (is_array($header)) {
  
              $string = '';
              foreach ($header as $key => $value) {
                  $string .= "$key $value" . PHP_EOL;
              }
  
              $this->setData('settings.header', trim($string));
          }
      }
code: protected function setDataEditSettings()
      {
          $header = $this->getData('settings.header');
  
          if (is_array($header)) {
  
              $string = '';
              foreach ($header as $key => $value) {
                  $string .= "$key $value" . PHP_EOL;
              }
  
              $this->setData('settings.header', trim($string));
          }
      }
code_tokens: protected function setDataEditSettings ( ) { $ header = $ this -> getData ( 'settings.header' ) ; if ( is_array ( $ header ) ) { $ string = '' ; foreach ( $ header as $ key => $ value ) { $ string .= "$key $value" . PHP_EOL ; } $ this -> setData ( 'settings.header' , trim ( $ string ) ) ; } }
docstring: Prepare data before rendering
docstring_tokens: Prepare data before rendering