original_string: protected function makeSearchForm($resource, $class)
      {
          $form = $this->container->make($class);
          $this->publish($resource, 'search-form.created', [$form]);
          $form->addCssClass('search-form');
          return $form;
      }
code: protected function makeSearchForm($resource, $class)
      {
          $form = $this->container->make($class);
          $this->publish($resource, 'search-form.created', [$form]);
          $form->addCssClass('search-form');
          return $form;
      }
code_tokens: protected function makeSearchForm ( $ resource , $ class ) { $ form = $ this -> container -> make ( $ class ) ; $ this -> publish ( $ resource , 'search-form.created' , [ $ form ] ) ; $ form -> addCssClass ( 'search-form' ) ; return $ form ; }
docstring: Creates the search form and fires an event
  
  @param string $resource
  @param string $class
  @return \FormObject\Form
docstring_tokens: Creates the search form and fires an event