original_string: public function callFinder($type, array $args = [])
      {
          $type = strtolower($type);
  
          if ($this->hasFinder($type) && $this->has($this->_finderMap[$type][0])) {
              list($behavior, $callMethod) = $this->_finderMap[$type];
  
              return call_user_func_array([$this->_loaded[$behavior], $callMethod], $args);
          }
  
          throw new BadMethodCallException(
              sprintf('Cannot call finder "%s" it does not belong to any attached behavior.', $type)
          );
      }
code: public function callFinder($type, array $args = [])
      {
          $type = strtolower($type);
  
          if ($this->hasFinder($type) && $this->has($this->_finderMap[$type][0])) {
              list($behavior, $callMethod) = $this->_finderMap[$type];
  
              return call_user_func_array([$this->_loaded[$behavior], $callMethod], $args);
          }
  
          throw new BadMethodCallException(
              sprintf('Cannot call finder "%s" it does not belong to any attached behavior.', $type)
          );
      }
code_tokens: public function callFinder ( $ type , array $ args = [ ] ) { $ type = strtolower ( $ type ) ; if ( $ this -> hasFinder ( $ type ) && $ this -> has ( $ this -> _finderMap [ $ type ] [ 0 ] ) ) { list ( $ behavior , $ callMethod ) = $ this -> _finderMap [ $ type ] ; return call_user_func_array ( [ $ this -> _loaded [ $ behavior ] , $ callMethod ] , $ args ) ; } throw new BadMethodCallException ( sprintf ( 'Cannot call finder "%s" it does not belong to any attached behavior.' , $ type ) ) ; }
docstring: Invoke a finder on a behavior.
  
  @param string $type The finder type to invoke.
  @param array $args The arguments you want to invoke the method with.
  @return mixed The return value depends on the underlying behavior method.
  @throws \BadMethodCallException When the method is unknown.
docstring_tokens: Invoke a finder on a behavior .