original_string: protected function setDataEditStore()
      {
          foreach (array('logo', 'favicon') as $field) {
  
              $value = $this->getData("store.data.$field");
  
              if (!empty($value)) {
                  $this->setData("store.{$field}_thumb", $this->image($value));
              }
          }
  
          foreach (array('email', 'phone', 'fax', 'map') as $field) {
  
              $value = $this->getData("store.data.$field");
  
              if (isset($value)) {
                  $this->setData("store.data.$field", implode("\n", (array) $value));
              }
          }
      }
code: protected function setDataEditStore()
      {
          foreach (array('logo', 'favicon') as $field) {
  
              $value = $this->getData("store.data.$field");
  
              if (!empty($value)) {
                  $this->setData("store.{$field}_thumb", $this->image($value));
              }
          }
  
          foreach (array('email', 'phone', 'fax', 'map') as $field) {
  
              $value = $this->getData("store.data.$field");
  
              if (isset($value)) {
                  $this->setData("store.data.$field", implode("\n", (array) $value));
              }
          }
      }
code_tokens: protected function setDataEditStore ( ) { foreach ( array ( 'logo' , 'favicon' ) as $ field ) { $ value = $ this -> getData ( "store.data.$field" ) ; if ( ! empty ( $ value ) ) { $ this -> setData ( "store.{$field}_thumb" , $ this -> image ( $ value ) ) ; } } foreach ( array ( 'email' , 'phone' , 'fax' , 'map' ) as $ field ) { $ value = $ this -> getData ( "store.data.$field" ) ; if ( isset ( $ value ) ) { $ this -> setData ( "store.data.$field" , implode ( "\n" , ( array ) $ value ) ) ; } } }
docstring: Prepares a store data
docstring_tokens: Prepares a store data