phcbf autofixes

This commit is contained in:
Dennis Eichhorn 2023-05-28 12:38:27 +00:00
parent 0257b54735
commit 6a10c0c884
2 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
vendor
Build

View File

@ -170,9 +170,9 @@ final class ApiController extends Controller
*/
private function createSupplierL11nFromRequest(RequestAbstract $request) : BaseStringL11n
{
$supplierL11n = new BaseStringL11n();
$supplierL11n->ref = $request->getDataInt('supplier') ?? 0;
$supplierL11n->type = new NullBaseStringL11nType($request->getDataInt('type') ?? 0);
$supplierL11n = new BaseStringL11n();
$supplierL11n->ref = $request->getDataInt('supplier') ?? 0;
$supplierL11n->type = new NullBaseStringL11nType($request->getDataInt('type') ?? 0);
$supplierL11n->setLanguage(
$request->getDataString('language') ?? $request->getLanguage()
);