cs and phpstan fixes

This commit is contained in:
Dennis Eichhorn 2020-10-24 17:52:23 +02:00
parent 32d6c35f14
commit 7ba929b175
2 changed files with 7 additions and 8 deletions

View File

@ -17,7 +17,6 @@ namespace Modules\Auditor\Controller;
use Modules\Admin\Models\NullAccount;
use Modules\Auditor\Models\Audit;
use Modules\Auditor\Models\AuditMapper;
use phpOMS\Account\Account;
use phpOMS\Utils\StringUtils;
/**
@ -38,7 +37,7 @@ final class ApiController extends Controller
/**
* Log model creation
*
* @param mixed $account Account who created the model
* @param int $account Account who created the model
* @param mixed $old Old value (always null)
* @param mixed $new New value
* @param int $type Module model type
@ -55,7 +54,7 @@ final class ApiController extends Controller
* @since 1.0.0
*/
public function apiLogCreate(
$account,
int $account,
$old,
$new,
int $type = 0,
@ -75,7 +74,7 @@ final class ApiController extends Controller
/**
* Log model update
*
* @param mixed $account Account who created the model
* @param int $account Account who created the model
* @param mixed $old Old value
* @param mixed $new New value
* @param int $type Module model type
@ -92,7 +91,7 @@ final class ApiController extends Controller
* @since 1.0.0
*/
public function apiLogUpdate(
$account,
int $account,
$old,
$new,
int $type = 0,
@ -118,7 +117,7 @@ final class ApiController extends Controller
/**
* Log model delete
*
* @param mixed $account Account who created the model
* @param int $account Account who created the model
* @param mixed $old Old value
* @param mixed $new New value (always null)
* @param int $type Module model type
@ -135,7 +134,7 @@ final class ApiController extends Controller
* @since 1.0.0
*/
public function apiLogDelete(
$account,
int $account,
$old,
$new,
int $type = 0,

View File

@ -51,7 +51,7 @@ final class AuditMapper extends DataMapperAbstract
/**
* Belongs to.
*
* @var array<string, array{mapper:string, self:string}>
* @var array<string, array{mapper:string, external:string}>
* @since 1.0.0
*/
protected static array $belongsTo = [