mirror of
https://github.com/Karaka-Management/oms-Draw.git
synced 2026-02-14 14:18:41 +00:00
phpstan and phpcs fixes
This commit is contained in:
parent
c72979819b
commit
b712b9508c
|
|
@ -10,7 +10,7 @@
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 70,
|
"order": 70,
|
||||||
"from": "Draw",
|
"from": "Draw",
|
||||||
"permission": { "permission": 2, "type": null, "element": null },
|
"permission": { "permission": 2, "category": null, "element": null },
|
||||||
"parent": 1003301001,
|
"parent": 1003301001,
|
||||||
"children": [
|
"children": [
|
||||||
{
|
{
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 1,
|
"order": 1,
|
||||||
"from": "Draw",
|
"from": "Draw",
|
||||||
"permission": { "permission": 2, "type": null, "element": null },
|
"permission": { "permission": 2, "category": null, "element": null },
|
||||||
"parent": 1005201001,
|
"parent": 1005201001,
|
||||||
"children": []
|
"children": []
|
||||||
},
|
},
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 15,
|
"order": 15,
|
||||||
"from": "Draw",
|
"from": "Draw",
|
||||||
"permission": { "permission": 4, "type": null, "element": null },
|
"permission": { "permission": 4, "category": null, "element": null },
|
||||||
"parent": 1005201001,
|
"parent": 1005201001,
|
||||||
"children": []
|
"children": []
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,7 @@ final class ApiController extends Controller
|
||||||
];
|
];
|
||||||
|
|
||||||
$media = MediaController::createDbEntry($status, $request->header->account);
|
$media = MediaController::createDbEntry($status, $request->header->account);
|
||||||
$draw = $media !== null ? DrawImage::fromMedia($media) : null;
|
$draw = DrawImage::fromMedia($media);
|
||||||
|
|
||||||
$this->createModel($request->header->account, $draw, DrawImageMapper::class, 'draw', $request->getOrigin());
|
$this->createModel($request->header->account, $draw, DrawImageMapper::class, 'draw', $request->getOrigin());
|
||||||
$this->fillJsonResponse($request, $response, NotificationLevel::OK, 'Draw', 'Draw successfully created.', $draw);
|
$this->fillJsonResponse($request, $response, NotificationLevel::OK, 'Draw', 'Draw successfully created.', $draw);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user