original_string: public function createPlaceholder($value)
      {
          if (($key = array_search($value, $this->all()))) {
              $placeholder = $key;
          } else {
              $placeholder = $this->createUniquePlaceholder();
          }
  
          $value = $this->removeNestedPlaceholders($value);
          $this->items[$placeholder] = $value;
  
          return $placeholder;
      }
code: public function createPlaceholder($value)
      {
          if (($key = array_search($value, $this->all()))) {
              $placeholder = $key;
          } else {
              $placeholder = $this->createUniquePlaceholder();
          }
  
          $value = $this->removeNestedPlaceholders($value);
          $this->items[$placeholder] = $value;
  
          return $placeholder;
      }
code_tokens: public function createPlaceholder ( $ value ) { if ( ( $ key = array_search ( $ value , $ this -> all ( ) ) ) ) { $ placeholder = $ key ; } else { $ placeholder = $ this -> createUniquePlaceholder ( ) ; } $ value = $ this -> removeNestedPlaceholders ( $ value ) ; $ this -> items [ $ placeholder ] = $ value ; return $ placeholder ; }
docstring: Create a unique placeholder for the given contents.
  
  @param string $value
  
  @return string $placeholder
docstring_tokens: Create a unique placeholder for the given contents .