php cs and stan fixes

This commit is contained in:
Dennis Eichhorn 2020-03-02 22:49:01 +01:00
parent 4a11ffe120
commit 2c4fa26fe5
3 changed files with 23 additions and 5 deletions

View File

@ -528,8 +528,7 @@ final class ApiController extends Controller
);
$this->updateModel($request->getHeader()->getAccount(), $old, $account, function() use($account) : void {
$t = $this->app->appSettings->get(null, Settings::LOGIN_TRIES);
$account->setLoginTries((int) $this->app->appSettings->get(null, Settings::LOGIN_TRIES));
$account->setLoginTries((int) $this->app->appSettings->get(null, (string) Settings::LOGIN_TRIES));
AccountMapper::update($account);
}, 'account');
}

View File

@ -30,7 +30,13 @@ use phpOMS\Views\View;
*/
class GroupTagSelectorPopupView extends View
{
private $id = '';
/**
* Dom id
*
* @var string
* @since 1.0.0
*/
private string $id = '';
/**
* {@inheritdoc}

View File

@ -30,8 +30,21 @@ use phpOMS\Views\View;
*/
class GroupTagSelectorView extends View
{
private $id = '';
private $isRequired = false;
/**
* Dom id
*
* @var string
* @since 1.0.0
*/
private string $id = '';
/**
* Is required?
*
* @var bool
* @since 1.0.0
*/
private bool $isRequired = false;
/**
* {@inheritdoc}