original_string: public static function define($section, \Closure $closure)
      {
          $config = call_user_func($closure, self::getInstance());
          if (! is_array($config)) {
              throw new \Exception("You should return an array in the Configuration::define closure!");
          }
  
          self::getInstance()->add($section, $config);
      }
code: public static function define($section, \Closure $closure)
      {
          $config = call_user_func($closure, self::getInstance());
          if (! is_array($config)) {
              throw new \Exception("You should return an array in the Configuration::define closure!");
          }
  
          self::getInstance()->add($section, $config);
      }
code_tokens: public static function define ( $ section , \ Closure $ closure ) { $ config = call_user_func ( $ closure , self :: getInstance ( ) ) ; if ( ! is_array ( $ config ) ) { throw new \ Exception ( "You should return an array in the Configuration::define closure!" ) ; } self :: getInstance ( ) -> add ( $ section , $ config ) ; }
docstring: Define multiple configuration keys and values in a closure.
  
  @param string $section Section to define.
  @param \Closure $closure Function (inline) that will return the values.
  
  @throws \Exception
docstring_tokens: Define multiple configuration keys and values in a closure .