mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-02-14 14:48:39 +00:00
improve docblocks for Mapper:: variables
This commit is contained in:
parent
61e1358692
commit
10c9afccce
|
|
@ -107,7 +107,9 @@ final class ApiController extends Controller
|
||||||
|
|
||||||
foreach ($accounts as $account) {
|
foreach ($accounts as $account) {
|
||||||
$account = (int) \trim($account);
|
$account = (int) \trim($account);
|
||||||
$isInDb = ProfileMapper::getFor($account, 'account');
|
|
||||||
|
/** @var Profile $isInDb */
|
||||||
|
$isInDb = ProfileMapper::getFor($account, 'account');
|
||||||
|
|
||||||
if ($isInDb->getId() !== 0) {
|
if ($isInDb->getId() !== 0) {
|
||||||
$profiles[] = $isInDb;
|
$profiles[] = $isInDb;
|
||||||
|
|
@ -141,6 +143,7 @@ final class ApiController extends Controller
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @var Profile $profile */
|
||||||
$profile = ProfileMapper::getFor($request->getHeader()->getAccount(), 'account');
|
$profile = ProfileMapper::getFor($request->getHeader()->getAccount(), 'account');
|
||||||
$old = clone $profile;
|
$old = clone $profile;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -77,8 +77,10 @@ final class BackendController extends Controller
|
||||||
|
|
||||||
if ($request->getData('ptype') === '-') {
|
if ($request->getData('ptype') === '-') {
|
||||||
$view->setData('accounts', ProfileMapper::getBeforePivot((int) ($request->getData('id') ?? 0), null, 25));
|
$view->setData('accounts', ProfileMapper::getBeforePivot((int) ($request->getData('id') ?? 0), null, 25));
|
||||||
} else {
|
} elseif ($request->getData('ptype') === '+') {
|
||||||
$view->setData('accounts', ProfileMapper::getAfterPivot((int) ($request->getData('id') ?? 0), null, 25));
|
$view->setData('accounts', ProfileMapper::getAfterPivot((int) ($request->getData('id') ?? 0), null, 25));
|
||||||
|
} else {
|
||||||
|
$view->setData('accounts', ProfileMapper::getAfterPivot(0, null, 25));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $view;
|
return $view;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user