original_string: public function getHooks($class)
      {
          $hooks = array();
  
          foreach (get_class_methods($class) as $method) {
              if (strpos($method, 'hook') === 0) {
                  $hooks[] = $method;
              }
          }
  
          return $hooks;
      }
code: public function getHooks($class)
      {
          $hooks = array();
  
          foreach (get_class_methods($class) as $method) {
              if (strpos($method, 'hook') === 0) {
                  $hooks[] = $method;
              }
          }
  
          return $hooks;
      }
code_tokens: public function getHooks ( $ class ) { $ hooks = array ( ) ; foreach ( get_class_methods ( $ class ) as $ method ) { if ( strpos ( $ method , 'hook' ) === 0 ) { $ hooks [ ] = $ method ; } } return $ hooks ; }
docstring: Returns an array of class methods which are hooks
  @param object|string $class
  @return array
docstring_tokens: Returns an array of class methods which are hooks