private function runViaLaravelCollection($closure, $method = null)
    {
        $collection = new TightencoCollect($this->items);

        $result = $closure($collection);

        if (!$this->methodMustReturnArray($method)) {
            $result = $this->coollectizeItems($result);
        }

        $this->items = $collection->all();

        return $result;
    }
private function runViaLaravelCollection($closure, $method = null)
    {
        $collection = new TightencoCollect($this->items);

        $result = $closure($collection);

        if (!$this->methodMustReturnArray($method)) {
            $result = $this->coollectizeItems($result);
        }

        $this->items = $collection->all();

        return $result;
    }
private function runViaLaravelCollection ( $ closure , $ method = null ) { $ collection = new TightencoCollect ( $ this -> items ) ; $ result = $ closure ( $ collection ) ; if ( ! $ this -> methodMustReturnArray ( $ method ) ) { $ result = $ this -> coollectizeItems ( $ result ) ; } $ this -> items = $ collection -> all ( ) ; return $ result ; }
Execute a closure via Laravel's Collection

@param $closure
@param null $method
@return mixed
Execute a closure via Laravel s Collection