mirror of
https://github.com/Karaka-Management/oms-Auditor.git
synced 2026-02-18 22:48:39 +00:00
cs and phpstan fixes
This commit is contained in:
parent
32d6c35f14
commit
7ba929b175
|
|
@ -17,7 +17,6 @@ namespace Modules\Auditor\Controller;
|
||||||
use Modules\Admin\Models\NullAccount;
|
use Modules\Admin\Models\NullAccount;
|
||||||
use Modules\Auditor\Models\Audit;
|
use Modules\Auditor\Models\Audit;
|
||||||
use Modules\Auditor\Models\AuditMapper;
|
use Modules\Auditor\Models\AuditMapper;
|
||||||
use phpOMS\Account\Account;
|
|
||||||
use phpOMS\Utils\StringUtils;
|
use phpOMS\Utils\StringUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -38,7 +37,7 @@ final class ApiController extends Controller
|
||||||
/**
|
/**
|
||||||
* Log model creation
|
* 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 $old Old value (always null)
|
||||||
* @param mixed $new New value
|
* @param mixed $new New value
|
||||||
* @param int $type Module model type
|
* @param int $type Module model type
|
||||||
|
|
@ -55,7 +54,7 @@ final class ApiController extends Controller
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function apiLogCreate(
|
public function apiLogCreate(
|
||||||
$account,
|
int $account,
|
||||||
$old,
|
$old,
|
||||||
$new,
|
$new,
|
||||||
int $type = 0,
|
int $type = 0,
|
||||||
|
|
@ -75,7 +74,7 @@ final class ApiController extends Controller
|
||||||
/**
|
/**
|
||||||
* Log model update
|
* 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 $old Old value
|
||||||
* @param mixed $new New value
|
* @param mixed $new New value
|
||||||
* @param int $type Module model type
|
* @param int $type Module model type
|
||||||
|
|
@ -92,7 +91,7 @@ final class ApiController extends Controller
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function apiLogUpdate(
|
public function apiLogUpdate(
|
||||||
$account,
|
int $account,
|
||||||
$old,
|
$old,
|
||||||
$new,
|
$new,
|
||||||
int $type = 0,
|
int $type = 0,
|
||||||
|
|
@ -118,7 +117,7 @@ final class ApiController extends Controller
|
||||||
/**
|
/**
|
||||||
* Log model delete
|
* 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 $old Old value
|
||||||
* @param mixed $new New value (always null)
|
* @param mixed $new New value (always null)
|
||||||
* @param int $type Module model type
|
* @param int $type Module model type
|
||||||
|
|
@ -135,7 +134,7 @@ final class ApiController extends Controller
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function apiLogDelete(
|
public function apiLogDelete(
|
||||||
$account,
|
int $account,
|
||||||
$old,
|
$old,
|
||||||
$new,
|
$new,
|
||||||
int $type = 0,
|
int $type = 0,
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ final class AuditMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Belongs to.
|
* Belongs to.
|
||||||
*
|
*
|
||||||
* @var array<string, array{mapper:string, self:string}>
|
* @var array<string, array{mapper:string, external:string}>
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static array $belongsTo = [
|
protected static array $belongsTo = [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user