mirror of
https://github.com/Karaka-Management/oms-ItemManagement.git
synced 2026-02-14 11: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
|
public function apiItemAttributeValueDelete(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : void
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// @todo: I don't think values can be deleted? Only Attributes
|
// @todo: I don't think values can be deleted? Only Attributes
|
||||||
// However, It should be possible to remove UNUSED default values
|
// However, It should be possible to remove UNUSED default values
|
||||||
// either here or other function?
|
// 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
|
public function apiItemL11nUpdate(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : void
|
||||||
{
|
{
|
||||||
if (!empty($val = $this->validateItemL11nUpdate($request))) {
|
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;
|
$response->header->status = RequestStatusCode::R_400;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace Modules\ItemManagement\Models;
|
namespace Modules\ItemManagement\Models;
|
||||||
|
|
||||||
use Modules\Editor\Models\EditorDoc;
|
|
||||||
use phpOMS\Localization\BaseStringL11n;
|
use phpOMS\Localization\BaseStringL11n;
|
||||||
use phpOMS\Localization\NullBaseStringL11n;
|
use phpOMS\Localization\NullBaseStringL11n;
|
||||||
use phpOMS\Stdlib\Base\FloatInt;
|
use phpOMS\Stdlib\Base\FloatInt;
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ declare(strict_types=1);
|
||||||
|
|
||||||
use Modules\Media\Models\NullMedia;
|
use Modules\Media\Models\NullMedia;
|
||||||
use phpOMS\Localization\ISO639Enum;
|
use phpOMS\Localization\ISO639Enum;
|
||||||
use phpOMS\Localization\ISO639x1Enum;
|
|
||||||
use phpOMS\Localization\Money;
|
use phpOMS\Localization\Money;
|
||||||
use phpOMS\Localization\NullLocalization;
|
use phpOMS\Localization\NullLocalization;
|
||||||
use phpOMS\Message\Http\HttpHeader;
|
use phpOMS\Message\Http\HttpHeader;
|
||||||
|
|
@ -35,8 +34,8 @@ $topCustomers = $this->getData('topCustomers') ?? [[], []];
|
||||||
$regionSales = $this->data['regionSales'] ?? [];
|
$regionSales = $this->data['regionSales'] ?? [];
|
||||||
$countrySales = $this->data['countrySales'] ?? [];
|
$countrySales = $this->data['countrySales'] ?? [];
|
||||||
$monthlySalesCosts = $this->data['monthlySalesCosts'] ?? [];
|
$monthlySalesCosts = $this->data['monthlySalesCosts'] ?? [];
|
||||||
$attributeView = $this->data['attributeView'];
|
$attributeView = $this->data['attributeView'];
|
||||||
$l11nView = $this->data['l11nView'];
|
$l11nView = $this->data['l11nView'];
|
||||||
|
|
||||||
$languages = ISO639Enum::getConstants();
|
$languages = ISO639Enum::getConstants();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user