mirror of
https://github.com/Karaka-Management/oms-ItemManagement.git
synced 2026-01-27 19:18:41 +00:00
autofixes
This commit is contained in:
parent
1c8cd09ecb
commit
3bbb1dd3ae
|
|
@ -446,7 +446,6 @@ final class ApiAttributeController extends Controller
|
|||
public function apiItemAttributeValueDelete(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : void
|
||||
{
|
||||
return;
|
||||
|
||||
// @todo: I don't think values can be deleted? Only Attributes
|
||||
// However, It should be possible to remove UNUSED default values
|
||||
// either here or other function?
|
||||
|
|
|
|||
|
|
@ -374,7 +374,7 @@ final class ApiController extends Controller
|
|||
public function apiItemL11nUpdate(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : void
|
||||
{
|
||||
if (!empty($val = $this->validateItemL11nUpdate($request))) {
|
||||
$response->data['l11n_update'] = new FormValidation($val);
|
||||
$response->data['l11n_update'] = new FormValidation($val);
|
||||
$response->header->status = RequestStatusCode::R_400;
|
||||
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace Modules\ItemManagement\Models;
|
||||
|
||||
use Modules\Editor\Models\EditorDoc;
|
||||
use phpOMS\Localization\BaseStringL11n;
|
||||
use phpOMS\Localization\NullBaseStringL11n;
|
||||
use phpOMS\Stdlib\Base\FloatInt;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ declare(strict_types=1);
|
|||
|
||||
use Modules\Media\Models\NullMedia;
|
||||
use phpOMS\Localization\ISO639Enum;
|
||||
use phpOMS\Localization\ISO639x1Enum;
|
||||
use phpOMS\Localization\Money;
|
||||
use phpOMS\Localization\NullLocalization;
|
||||
use phpOMS\Message\Http\HttpHeader;
|
||||
|
|
@ -35,8 +34,8 @@ $topCustomers = $this->getData('topCustomers') ?? [[], []];
|
|||
$regionSales = $this->data['regionSales'] ?? [];
|
||||
$countrySales = $this->data['countrySales'] ?? [];
|
||||
$monthlySalesCosts = $this->data['monthlySalesCosts'] ?? [];
|
||||
$attributeView = $this->data['attributeView'];
|
||||
$l11nView = $this->data['l11nView'];
|
||||
$attributeView = $this->data['attributeView'];
|
||||
$l11nView = $this->data['l11nView'];
|
||||
|
||||
$languages = ISO639Enum::getConstants();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user