mirror of
https://github.com/Karaka-Management/oms-Auditor.git
synced 2026-02-14 20:48:41 +00:00
phpstan fixes
This commit is contained in:
parent
c2f93270d6
commit
69eaae2e1a
|
|
@ -61,7 +61,7 @@ final class ApiController extends Controller
|
||||||
) : void
|
) : void
|
||||||
{
|
{
|
||||||
$newString = StringUtils::stringify($new, \JSON_PRETTY_PRINT);
|
$newString = StringUtils::stringify($new, \JSON_PRETTY_PRINT);
|
||||||
$audit = new Audit(new NullAccount($account), null, $newString, $type, $subtype, $module, $ref, $content, \ip2long($ip ?? '127.0.0.1'));
|
$audit = new Audit(new NullAccount($account), null, $newString, $type, $subtype, $module, $ref, $content, (int) \ip2long($ip ?? '127.0.0.1'));
|
||||||
|
|
||||||
AuditMapper::create($audit);
|
AuditMapper::create($audit);
|
||||||
}
|
}
|
||||||
|
|
@ -104,7 +104,7 @@ final class ApiController extends Controller
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$audit = new Audit(new NullAccount($account), $oldString, $newString, $type, $subtype, $module, $ref, $content, \ip2long($ip ?? '127.0.0.1'));
|
$audit = new Audit(new NullAccount($account), $oldString, $newString, $type, $subtype, $module, $ref, $content, (int) \ip2long($ip ?? '127.0.0.1'));
|
||||||
|
|
||||||
AuditMapper::create($audit);
|
AuditMapper::create($audit);
|
||||||
}
|
}
|
||||||
|
|
@ -141,7 +141,7 @@ final class ApiController extends Controller
|
||||||
) : void
|
) : void
|
||||||
{
|
{
|
||||||
$oldString = StringUtils::stringify($old, \JSON_PRETTY_PRINT);
|
$oldString = StringUtils::stringify($old, \JSON_PRETTY_PRINT);
|
||||||
$audit = new Audit(new NullAccount($account), $oldString, null, $type, $subtype, $module, $ref, $content, \ip2long($ip ?? '127.0.0.1'));
|
$audit = new Audit(new NullAccount($account), $oldString, null, $type, $subtype, $module, $ref, $content, (int) \ip2long($ip ?? '127.0.0.1'));
|
||||||
|
|
||||||
AuditMapper::create($audit);
|
AuditMapper::create($audit);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user