From 7ba929b175794dfcf5858366740c79a12a1f1377 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 24 Oct 2020 17:52:23 +0200 Subject: [PATCH] cs and phpstan fixes --- Controller/ApiController.php | 13 ++++++------- Models/AuditMapper.php | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 65077ee..82af30a 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -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, diff --git a/Models/AuditMapper.php b/Models/AuditMapper.php index 5e29c5d..e4871ce 100755 --- a/Models/AuditMapper.php +++ b/Models/AuditMapper.php @@ -51,7 +51,7 @@ final class AuditMapper extends DataMapperAbstract /** * Belongs to. * - * @var array + * @var array * @since 1.0.0 */ protected static array $belongsTo = [