File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1717use craft \helpers \StringHelper ;
1818use craft \models \Site ;
1919use craft \services \Sites ;
20+ use craft \services \Tokens ;
2021use yii \base \InvalidArgumentException ;
2122use yii \base \InvalidConfigException ;
2223use yii \db \Exception as DbException ;
@@ -509,7 +510,7 @@ public function getHadToken(): bool
509510 *
510511 * @return string|null The token, or `null` if there isn’t one.
511512 * @throws BadRequestHttpException if an invalid token is supplied
512- * @see \craft\services\ Tokens::createToken()
513+ * @see Tokens::createToken()
513514 * @see Controller::requireToken()
514515 */
515516 public function getToken (): ?string
@@ -581,7 +582,7 @@ public function hasValidSiteToken(): bool
581582 {
582583 try {
583584 return $ this ->_validateSiteToken () !== null ;
584- } catch (BadRequestHttpException $ e ) {
585+ } catch (BadRequestHttpException ) {
585586 return false ;
586587 }
587588 }
You can’t perform that action at this time.
0 commit comments