Load surname dict.

@param Closure $callback
335263
public function mapSurname(Closure $callback)
    {
        $surnames = $this->path.'/surnames';

        if (file_exists($surnames)) {
            $dictionary = (array) include $surnames;
            $callback($dictionary);
        }
    }
778677
public function sortByKeys( \Closure $callback )
	{
		$items = $this->items;
		uksort($items, $callback);
		return new static($items);
	}
367377
public function fieldset($name, Closure $callback = null)
    {
        $lastFieldset = $this->fieldsets->isEmpty() ? 0 : last($this->fieldsets->keys()->toArray()) + 2;

        if (!strlen($this->name)) {
            throw new Exception('Invalid form name.');
        }

        $primaryEventName = 'forms:' . str_slug($this->name) . '.fieldsets.' . $lastFieldset;
        Event::fire($primaryEventName . '.before', $this);


        $fieldset = new Fieldset($this->app, $name, $callback, $this->name, $this->name);

        if (is_null($fieldset->getName())) {
            $name = sprintf('fieldset-%d', $this->fieldsets->count());
        } else {
            if ($fieldset->getName() instanceof \Closure) {
                $name = sprintf('fieldset-%d', $this->fieldsets->count());
            }
            $name = Str::slug($name);
        }

        $this->keyMap[$name] = $fieldset;
        $return              = $this->fieldsets->push($fieldset);
        Event::fire($primaryEventName . '.after', $this);

        return $return;
    }
1094266
public function map(\Closure $callback)
    {

        $this->_items = array_map($callback, $this->_items);

        return $this;
    }
907375
public function make(string $name, ?Closure $callback = null) : Collection {
        return $this->collection($name, $callback);
    }
1150801
private function cacheSpammers(Closure $callback)
    {
        return cache()->remember($this->cacheKey, $this->cacheExpires, $callback);
    }
1211746
public function then(\Closure $callback)
    {
        if ($this->ready) {
            return null;
        }

        $this->ready = true;

        if (!$this->checkDomain() || !$this->checkPath() || !$this->checkSecurity()) {
            return null;
        }

        $oNS = parent::$prefixNS;
        $oPP = parent::$prefixPath;

        if ($this->ns) {
            parent::$prefixNS = $this->ns;
        }

        if ($this->path) {
            parent::$prefixPath = rtrim($this->currentPrefixPath, '/');
        }

        call_user_func_array($callback, $this->arguments);

        parent::$prefixNS = $oNS;
        parent::$prefixPath = $oPP;
    }
514228
protected function afterResolvingCallback(Closure $callback)
    {
        $abstract = $this->getFunctionHint($callback);

        if ($abstract) {
            $this->afterResolvingCallbacks[$abstract][] = $callback;
        } else {
            $this->globalAfterResolvingCallbacks[] = $callback;
        }
    }
971315
public function table($table, Closure $callback) {
        $blueprint = $this->createBlueprint($table, $callback);
        $this->build($blueprint);
        $class = $this->connection->getClient()->makeClass($blueprint->getTable());
        $class->setProperty($blueprint->getColumns());
        $class->saveProperties();
    }
426690
public static function strModified($target, Closure $callback)
    {
        $modified = $callback($target);

        return md5($target) !== md5($modified);
    }
990842
protected function resolveCriteriaGroupClosure(\Closure $callback): Query
    {
        if ($this->closureResolver === null) {
            return $this->makeCopyForCriteriaGroup()->apply($callback);
        } else {
            return $this->closureResolver->resolveCriteriaGroupClosure($callback);
        }
    }
25607
protected function filterJSInline(\Closure $callback)
    {
        if ($this->js) {
            $filteredJs = array();
            foreach ($this->js as $position => $jsGroup) {
                $filteredJs[$position] = array();
                foreach ($jsGroup as $key => $jsCode) {
                    if (call_user_func($callback, $jsCode, RSmartLoad::RESOURCE_TYPE_JS_INLINE)) {
                        $filteredJs[$position][$key] = $jsCode;
                    }
                }
            }
            $this->js = $filteredJs;
        }
    }
1059542
public function table($table, Closure $callback)
    {
    	if(!$this->hasTable($table)) {
    		return hst_message('is has table');
    	}
        \Schema::connection($this->databaseName)->table($table, $callback);
    }
142436
public function then(\Closure $callback)
	{
		$response = $this->layers[0]->handle($this->request);

		return call_user_func($callback, $this->request, $response);
	}
890885
public static function object(\Closure $callback) {
		$obj = new Object;
		$callback->__invoke($obj);
		return json_encode($obj);
	}
383897
public function filter(Closure $callback)
    {
        $filtered_map = new static;

        foreach ($this->items as $key => $item) {
            if ($callback($item) === true) {
                $filtered_map->setItem($key, $item);
            }
        }

        return $filtered_map;
    }
429280
function (callback) {
    var data = JSON.stringify(this);
    this.cloneWithoutData(function(clone) {
      clone.loadFromJSON(data, function() {
        callback && callback(clone);
      });
    });
  }