Reset TwoStepAuth collection item and code.

@param collection $twoStepAuth

@return collection
338698
private function resetAuthStatus($twoStepAuth)
    {
        $twoStepAuth->authCode = $this->generateCode();
        $twoStepAuth->authCount = 0;
        $twoStepAuth->authStatus = 0;
        $twoStepAuth->authDate = null;
        $twoStepAuth->requestDate = null;

        $twoStepAuth->save();

        return $twoStepAuth;
    }
674571
public function reset( array $names = array() )
    {
        if( array() == $names )
        {
            // Unset new instance to force reset
            $this->new_instance = array();
            return $this->update();
        }
        else
        {
            foreach( $this->components as $c )
            {
                if( in_array($c->get_name(), $names) )
                {
                    $this->new_instance[$c->get_name()] = $c->get_default_value();
                }
            }
            return $this->update();
        }
    }
1120500
private function reset()
    {
        $this->uid = null;
        $this->title = null;
        $this->altTitle = null;
        $this->redirect = null;
        $this->target = null;
        $this->url = null;
        $this->site = null;
        $this->root = null;
        $this->parent = null;
        $this->layout = null;
        $this->elements = array();
        $this->itemToPushInMainZone = null;
        $this->createdAt = null;
        $this->publishedAt = null;
        $this->archiving = null;
        $this->state = null;
        $this->persist = null;
        $this->isSection = false;

        return $this;
    }
945995
protected function delete($step)
    {
        $userCollection = $this->matchUsers('delete', $step);

        $this->setReferences($userCollection, $step);

        $userService = $this->repository->getUserService();

        foreach ($userCollection as $user) {
            $userService->deleteUser($user);
        }

        return $userCollection;
    }
547553
function resetChangeHistory($attribute) {
    if ($this->propertyExists($attribute, 'changes')) {
        $this->setPropertyFor($attribute, 'changes', [], null, false);
    }

    return $this;
  }
770756
public function reset()
    {
        $this->isBold = false;
        $this->isUnderline = false;
        $this->hasHighlightedBackground = false;
        $this->hasHighlightedForeground = false;
        $this->backgroundColor = Style::COLOR_BLACK;
        $this->foregroundColor = Style::COLOR_WHITE;

        return $this;
    }
239053
public function reset($items = null)
    {
        $this->items = [];
        if ((func_get_args() > 0) && is_array($items)) {
            $this->items = $items;
        }
        return $this;
    }
113721
public static function resetRecursion($subjectModel, $alias = false) {
        if ($alias) {
            $key = self::getStoreKey($subjectModel, $alias);
            unset(static::$_recursion[$key]);
            return;
        }
        $_store = array();
        foreach (static::$_recursion as $key => $value) {
            $keyBits = explode('.', $key);
            // Strip off the integer from the end in the case of homophyllic relationships.
            array_walk($keyBits, function(&$kb) {
                $kb = preg_replace('/\d$/', '', $kb);
            });

            if (!in_array($subjectModel, $keyBits)) {
                $_store[$key] = $value;
            }
        }
        static::$_recursion = $_store;
    }
1093788
function reset()
    {
        $this->_transforms = array();
        $this->_transforms_str = '';
        $this->_info = null;
        if ($this->_handler) imagedestroy($this->_handler);
        $this->_handler = null;
        return $this;
    }
515186
public function reset()
    {
        // reset structure
        parent::reset();

        // reset errors
        $this->clearErrors();

        // reset behaviors
        $this->clearBehaviors();

        // init delegates
        $this->initDelegates();

        return $this;
    }
1211959
public function reset()
    {
        $this->builder->resetQueryParts();
        $this->relations = [];
        $this->resetBinds();

        $this->setQuery();
        $this->values();
        $this->setPrimaryKeyConditions();

        return $this;
    }
990937
public function getReset($token = null) {
        if (is_null($token))
        {
            throw new NotFoundHttpException;
        }

        //return view('usermanagement::auth.reset')->with('token', $token);
        return view('usermanagement::frontend.'.$this->frontend_template_name.'.password.reset', [
            'title' => 'Reset Password',
            'token' => $token,
        ]);
    }
1085814
public function reset($name = "", $position = "BL", $options = array())
    {
        if ($name == "") $name = trans('rapyd::rapyd.reset');
        $this->link($this->url->current(true), $name, $position, $options);

        return $this;
    }
263995
private function setUser2StepData()
    {
        $user = Auth::User();
        $twoStepAuth = $this->getTwoStepAuthStatus($user->id);
        $authCount = $twoStepAuth->authCount;
        $this->_user = $user;
        $this->_twoStepAuth = $twoStepAuth;
        $this->_authCount = $authCount;
        $this->_authStatus = $twoStepAuth->authStatus;
        $this->_remainingAttempts = config('laravel2step.laravel2stepExceededCount') - $authCount;
    }
143835
protected function delete($step)
    {
        $roleCollection = $this->matchRoles('delete', $step);

        $this->setReferences($roleCollection, $step);

        $roleService = $this->repository->getRoleService();

        foreach ($roleCollection as $role) {
            $roleService->deleteRole($role);
        }

        return $roleCollection;
    }
1266960
public function reset()
	{
		$this->uri 		   = null;
		$this->method 	   = self::GET;
		$this->headers 	   = array();
		$this->paramsGet   = array();
		$this->paramsPost  = array();
		$this->useRawData  = false;
		$this->dataRaw 	   = null;
		$this->httpVersion = self::HTTP_1;
		$this->curlOpts    = array();
		
		return $this;
	}
924998
public function resetDQLParts($parts = null)
    {
        if (is_null($parts)) {
            $parts = array_keys($this->_dqlParts);
        }

        foreach ($parts as $part) {
            $this->resetDQLPart($part);
        }

        return $this;
    }