mirror of
https://github.com/Karaka-Management/oms-Draw.git
synced 2026-02-17 15:28:41 +00:00
phpstan and phpcs fixes
This commit is contained in:
parent
c72979819b
commit
b712b9508c
|
|
@ -10,7 +10,7 @@
|
|||
"icon": null,
|
||||
"order": 70,
|
||||
"from": "Draw",
|
||||
"permission": { "permission": 2, "type": null, "element": null },
|
||||
"permission": { "permission": 2, "category": null, "element": null },
|
||||
"parent": 1003301001,
|
||||
"children": [
|
||||
{
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
"icon": null,
|
||||
"order": 1,
|
||||
"from": "Draw",
|
||||
"permission": { "permission": 2, "type": null, "element": null },
|
||||
"permission": { "permission": 2, "category": null, "element": null },
|
||||
"parent": 1005201001,
|
||||
"children": []
|
||||
},
|
||||
|
|
@ -39,7 +39,7 @@
|
|||
"icon": null,
|
||||
"order": 15,
|
||||
"from": "Draw",
|
||||
"permission": { "permission": 4, "type": null, "element": null },
|
||||
"permission": { "permission": 4, "category": null, "element": null },
|
||||
"parent": 1005201001,
|
||||
"children": []
|
||||
}
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ final class ApiController extends Controller
|
|||
];
|
||||
|
||||
$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->fillJsonResponse($request, $response, NotificationLevel::OK, 'Draw', 'Draw successfully created.', $draw);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user