original_string: public function validateProductCollectionItem($product_id)
      {
          $product = $this->product->get($product_id);
  
          if (empty($product['status'])) {
              return $this->translation->text('@name is unavailable', array(
                  '@name' => $this->translation->text('Product')));
          }
  
          return true;
      }
code: public function validateProductCollectionItem($product_id)
      {
          $product = $this->product->get($product_id);
  
          if (empty($product['status'])) {
              return $this->translation->text('@name is unavailable', array(
                  '@name' => $this->translation->text('Product')));
          }
  
          return true;
      }
code_tokens: public function validateProductCollectionItem ( $ product_id ) { $ product = $ this -> product -> get ( $ product_id ) ; if ( empty ( $ product [ 'status' ] ) ) { return $ this -> translation -> text ( '@name is unavailable' , array ( '@name' => $ this -> translation -> text ( 'Product' ) ) ) ; } return true ; }
docstring: Validates product collection item. Hook callback
  @param integer $product_id
  @return boolean|string
docstring_tokens: Validates product collection item . Hook callback