original_string: public function updateElement(Element $element, array $data) {
          if (isset($data["id"])) {
              $element->setId($data["id"]);
          }
          if (isset($data["class"])) {
              $element->addClass($data["class"]);
          }
          return $element;
      }
code: public function updateElement(Element $element, array $data) {
          if (isset($data["id"])) {
              $element->setId($data["id"]);
          }
          if (isset($data["class"])) {
              $element->addClass($data["class"]);
          }
          return $element;
      }
code_tokens: public function updateElement ( Element $ element , array $ data ) { if ( isset ( $ data [ "id" ] ) ) { $ element -> setId ( $ data [ "id" ] ) ; } if ( isset ( $ data [ "class" ] ) ) { $ element -> addClass ( $ data [ "class" ] ) ; } return $ element ; }
docstring: Set element properties using a json string
  @param Element $element array
  @param $data array
  @return Element $element
docstring_tokens: Set element properties using a json string