original_string: public static function type($name)
      {
          $finder = new pakeFinder();
  
          if (strtolower(substr($name, 0, 3)) == 'dir') {
              $finder->type = 'directory';
          } else {
              if (strtolower($name) == 'any') {
                  $finder->type = 'any';
              } else {
                  $finder->type = 'file';
              }
          }
  
          return $finder;
      }
code: public static function type($name)
      {
          $finder = new pakeFinder();
  
          if (strtolower(substr($name, 0, 3)) == 'dir') {
              $finder->type = 'directory';
          } else {
              if (strtolower($name) == 'any') {
                  $finder->type = 'any';
              } else {
                  $finder->type = 'file';
              }
          }
  
          return $finder;
      }
code_tokens: public static function type ( $ name ) { $ finder = new pakeFinder ( ) ; if ( strtolower ( substr ( $ name , 0 , 3 ) ) == 'dir' ) { $ finder -> type = 'directory' ; } else { if ( strtolower ( $ name ) == 'any' ) { $ finder -> type = 'any' ; } else { $ finder -> type = 'file' ; } } return $ finder ; }
docstring: Factory, which prepares new pakeFinder objects
  Sets the type of elements to return.
  
  @param  string "directory" or "file" or "any" (for both file and directory)
  @return pakeFinder
docstring_tokens: Factory which prepares new pakeFinder objects Sets the type of elements to return .