update php code standards fixer rules

This commit is contained in:
Antonio Ramirez
2017-07-15 16:45:25 +02:00
parent 8c4f7699df
commit f706ebb4fa
72 changed files with 389 additions and 508 deletions

View File

@ -1,5 +1,14 @@
<?php
/*
* This file is part of the 2amigos/yii2-usuario project.
*
* (c) 2amigOS! <http://2amigos.us/>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Da\User\Service;
use Da\User\Contracts\ServiceInterface;

View File

@ -65,7 +65,6 @@ class AuthItemEditionService implements ServiceInterface
$this->model->item = $item;
$this->updateChildren();
} catch (Exception $e) {
return false;
}

View File

@ -1,5 +1,14 @@
<?php
/*
* This file is part of the 2amigos/yii2-usuario project.
*
* (c) 2amigOS! <http://2amigos.us/>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Da\User\Service;
use Da\User\Contracts\MailChangeStrategyInterface;
@ -80,7 +89,6 @@ class EmailChangeService implements ServiceInterface
return $this->model->save(false);
}
return false;
}
}

View File

@ -1,5 +1,14 @@
<?php
/*
* This file is part of the 2amigos/yii2-usuario project.
*
* (c) 2amigOS! <http://2amigos.us/>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Da\User\Service;
use Da\User\Contracts\ServiceInterface;
@ -21,11 +30,11 @@ class MailService implements ServiceInterface
/**
* MailService constructor.
*
* @param string $from
* @param string $to
* @param string $subject
* @param string $view
* @param array $params
* @param string $from
* @param string $to
* @param string $subject
* @param string $view
* @param array $params
* @param BaseMailer|MailerInterface $mailer
*/
public function __construct($from, $to, $subject, $view, array $params, MailerInterface $mailer)

View File

@ -1,5 +1,14 @@
<?php
/*
* This file is part of the 2amigos/yii2-usuario project.
*
* (c) 2amigOS! <http://2amigos.us/>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Da\User\Service;
use Da\User\Contracts\ServiceInterface;

View File

@ -32,8 +32,8 @@ class SocialNetworkAccountConnectService implements ServiceInterface
/**
* SocialNetworkAccountUserLinkService constructor.
*
* @param SecurityController $controller
* @param AuthClientInterface $client
* @param SecurityController $controller
* @param AuthClientInterface $client
* @param SocialNetworkAccountQuery $socialNetworkAccountQuery
*/
public function __construct(
@ -68,7 +68,6 @@ class SocialNetworkAccountConnectService implements ServiceInterface
Yii::t('usuario', 'This account has already been connected to another user')
);
return false;
}