original_string: public function addProvider($type, callable $check)
      {
          $this->providers = [$type => ['type' => $type, 'callable' => $check]]
              + $this->providers;
  
          return $this;
      }
code: public function addProvider($type, callable $check)
      {
          $this->providers = [$type => ['type' => $type, 'callable' => $check]]
              + $this->providers;
  
          return $this;
      }
code_tokens: public function addProvider ( $ type , callable $ check ) { $ this -> providers = [ $ type => [ 'type' => $ type , 'callable' => $ check ] ] + $ this -> providers ; return $ this ; }
docstring: Add a new context type.
  
  Form context types allow FormHelper to interact with
  data providers that come from outside CakePHP. For example
  if you wanted to use an alternative ORM like Doctrine you could
  create and connect a new context class to allow FormHelper to
  read metadata from doctrine.
  
  @param string $type The type of context. This key
  can be used to overwrite existing providers.
  @param callable $check A callable that returns an object
  when the form context is the correct type.
  @return $this
docstring_tokens: Add a new context type .