original_string: protected function setDataSummaryIndexProduct()
      {
          $summary = '';
  
          if (!empty($this->data_product['description'])) {
              $exploded = $this->explodeText($this->data_product['description']);
              $summary = strip_tags($exploded[0]);
          }
  
          $this->setData('summary', $summary);
      }
code: protected function setDataSummaryIndexProduct()
      {
          $summary = '';
  
          if (!empty($this->data_product['description'])) {
              $exploded = $this->explodeText($this->data_product['description']);
              $summary = strip_tags($exploded[0]);
          }
  
          $this->setData('summary', $summary);
      }
code_tokens: protected function setDataSummaryIndexProduct ( ) { $ summary = '' ; if ( ! empty ( $ this -> data_product [ 'description' ] ) ) { $ exploded = $ this -> explodeText ( $ this -> data_product [ 'description' ] ) ; $ summary = strip_tags ( $ exploded [ 0 ] ) ; } $ this -> setData ( 'summary' , $ summary ) ; }
docstring: Sets the description summary on the product page
docstring_tokens: Sets the description summary on the product page