Skip to content

Commit

Permalink
fix: return types
Browse files Browse the repository at this point in the history
  • Loading branch information
michtio committed Jan 7, 2025
1 parent 96a2d01 commit bd954bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
7 changes: 1 addition & 6 deletions src/PasswordPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
use craftpulse\passwordpolicy\utilities\RetentionUtility;
use craftpulse\passwordpolicy\variables\PasswordPolicyVariable;
use Monolog\Formatter\LineFormatter;
use nystudio107\pluginvite\services\ViteService;
use Psr\Log\LogLevel;
use Throwable;
use yii\base\Event;
Expand All @@ -50,10 +49,7 @@
* @package PasswordPolicy
* @since 5.0.0
*
* @property-read ViteService $vite
* @property RetentionService $retention
* @property PasswordService $passwords
*
* @method Settings getSettings()
*/
class PasswordPolicy extends Plugin
{
Expand Down Expand Up @@ -107,7 +103,6 @@ public function init(): void

// Install our global event handlers
$this->installEventHandlers();
$this->installCpEventHandlers();

// Register control panel events
if (Craft::$app->getRequest()->getIsCpRequest()) {
Expand Down
8 changes: 4 additions & 4 deletions src/services/ServicesTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,21 @@ public static function config(): array
/**
* Returns the passwords service
*
* @return Events The events service
* @return Passwords The passwords service
* @throws InvalidConfigException
*/
public function getPasswords(): Events
public function getPasswords(): Passwords
{
return $this->get('passwords');
}

/**
* Returns the retention service
*
* @return Redirects The redirects service
* @return Retention The retention service
* @throws InvalidConfigException
*/
public function getRetention(): Redirects
public function getRetention(): Retention
{
return $this->get('retention');
}
Expand Down

0 comments on commit bd954bc

Please sign in to comment.