fix formatting

This commit is contained in:
Antonio Ramirez
2016-12-14 02:50:12 +01:00
parent f3f4b31bb4
commit 3ba01b4674
140 changed files with 512 additions and 523 deletions

View File

@ -1,4 +1,5 @@
<?php
namespace Da\User\Traits;
use Da\User\Component\AuthDbManagerComponent;
@ -9,8 +10,8 @@ trait AuthManagerTrait
/**
* @return AuthDbManagerComponent|\yii\rbac\ManagerInterface
*/
public function getAuthManager() {
public function getAuthManager()
{
return Yii::$app->getAuthManager();
}
}

View File

@ -8,11 +8,9 @@ use Yii;
use yii\di\Container;
/**
*
* @property-read Container $di
* @property-ready Da\User\Helper\AuthHelper $auth
* @property-ready Da\User\Helper\ClassMapHelper $classMap
*
*/
trait ContainerTrait
{
@ -27,11 +25,10 @@ trait ContainerTrait
/**
* Gets a class from the container.
*
* @param string $class he class name or an alias name (e.g. `foo`) that was previously registered via [[set()]]
* or [[setSingleton()]].
*
* @param array $params constructor parameters
* @param array $config attributes
* @param string $class he class name or an alias name (e.g. `foo`) that was previously registered via [[set()]]
* or [[setSingleton()]]
* @param array $params constructor parameters
* @param array $config attributes
*
* @return object
*/
@ -55,5 +52,4 @@ trait ContainerTrait
{
return $this->getDi()->get(ClassMapHelper::class);
}
}

View File

@ -2,7 +2,6 @@
namespace Da\User\Traits;
use Da\User\Helper\AuthHelper;
use Da\User\Module;
use Yii;