original_string: protected function setDataAuthorEditProduct()
      {
          $user_id = $this->getData('product.user_id');
  
          if (!empty($user_id)) {
              $user = $this->user->get($user_id);
              $this->setData('product.author', $user['email']);
          }
      }
code: protected function setDataAuthorEditProduct()
      {
          $user_id = $this->getData('product.user_id');
  
          if (!empty($user_id)) {
              $user = $this->user->get($user_id);
              $this->setData('product.author', $user['email']);
          }
      }
code_tokens: protected function setDataAuthorEditProduct ( ) { $ user_id = $ this -> getData ( 'product.user_id' ) ; if ( ! empty ( $ user_id ) ) { $ user = $ this -> user -> get ( $ user_id ) ; $ this -> setData ( 'product.author' , $ user [ 'email' ] ) ; } }
docstring: Sets the product author data
docstring_tokens: Sets the product author data