mirror of
https://github.com/Karaka-Management/oms-Support.git
synced 2026-01-11 17:18:40 +00:00
automated phpcs fixes
This commit is contained in:
parent
0928f51993
commit
520b75efed
|
|
@ -173,7 +173,7 @@ final class Application
|
||||||
$head = new Head();
|
$head = new Head();
|
||||||
|
|
||||||
$pageView->setData('unitId', $this->app->unitId);
|
$pageView->setData('unitId', $this->app->unitId);
|
||||||
$pageView->data['head'] = $head;
|
$pageView->head = $head;
|
||||||
$response->set('Content', $pageView);
|
$response->set('Content', $pageView);
|
||||||
|
|
||||||
/* App only allows GET */
|
/* App only allows GET */
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ final class ApiController extends Controller
|
||||||
{
|
{
|
||||||
if (!empty($val = $this->validateTicketCreate($request))) {
|
if (!empty($val = $this->validateTicketCreate($request))) {
|
||||||
$response->data[$request->uri->__toString()] = new FormValidation($val);
|
$response->data[$request->uri->__toString()] = new FormValidation($val);
|
||||||
$response->header->status = RequestStatusCode::R_400;
|
$response->header->status = RequestStatusCode::R_400;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -227,7 +227,7 @@ final class ApiController extends Controller
|
||||||
{
|
{
|
||||||
if (!empty($val = $this->validateTicketElementCreate($request))) {
|
if (!empty($val = $this->validateTicketElementCreate($request))) {
|
||||||
$response->data['ticket_element_create'] = new FormValidation($val);
|
$response->data['ticket_element_create'] = new FormValidation($val);
|
||||||
$response->header->status = RequestStatusCode::R_400;
|
$response->header->status = RequestStatusCode::R_400;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -350,7 +350,7 @@ final class ApiController extends Controller
|
||||||
{
|
{
|
||||||
if (!empty($val = $this->validateSupportAppCreate($request))) {
|
if (!empty($val = $this->validateSupportAppCreate($request))) {
|
||||||
$response->data['qa_app_create'] = new FormValidation($val);
|
$response->data['qa_app_create'] = new FormValidation($val);
|
||||||
$response->header->status = RequestStatusCode::R_400;
|
$response->header->status = RequestStatusCode::R_400;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -415,7 +415,7 @@ final class ApiController extends Controller
|
||||||
{
|
{
|
||||||
if (!empty($val = $this->validateTicketAttributeCreate($request))) {
|
if (!empty($val = $this->validateTicketAttributeCreate($request))) {
|
||||||
$response->data['attribute_create'] = new FormValidation($val);
|
$response->data['attribute_create'] = new FormValidation($val);
|
||||||
$response->header->status = RequestStatusCode::R_400;
|
$response->header->status = RequestStatusCode::R_400;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -492,7 +492,7 @@ final class ApiController extends Controller
|
||||||
{
|
{
|
||||||
if (!empty($val = $this->validateTicketAttributeTypeL11nCreate($request))) {
|
if (!empty($val = $this->validateTicketAttributeTypeL11nCreate($request))) {
|
||||||
$response->data['attr_type_l11n_create'] = new FormValidation($val);
|
$response->data['attr_type_l11n_create'] = new FormValidation($val);
|
||||||
$response->header->status = RequestStatusCode::R_400;
|
$response->header->status = RequestStatusCode::R_400;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -561,7 +561,7 @@ final class ApiController extends Controller
|
||||||
{
|
{
|
||||||
if (!empty($val = $this->validateTicketAttributeTypeCreate($request))) {
|
if (!empty($val = $this->validateTicketAttributeTypeCreate($request))) {
|
||||||
$response->data['attr_type_create'] = new FormValidation($val);
|
$response->data['attr_type_create'] = new FormValidation($val);
|
||||||
$response->header->status = RequestStatusCode::R_400;
|
$response->header->status = RequestStatusCode::R_400;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -628,7 +628,7 @@ final class ApiController extends Controller
|
||||||
{
|
{
|
||||||
if (!empty($val = $this->validateTicketAttributeValueCreate($request))) {
|
if (!empty($val = $this->validateTicketAttributeValueCreate($request))) {
|
||||||
$response->data['attr_value_create'] = new FormValidation($val);
|
$response->data['attr_value_create'] = new FormValidation($val);
|
||||||
$response->header->status = RequestStatusCode::R_400;
|
$response->header->status = RequestStatusCode::R_400;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -713,7 +713,7 @@ final class ApiController extends Controller
|
||||||
{
|
{
|
||||||
if (!empty($val = $this->validateTicketAttributeValueL11nCreate($request))) {
|
if (!empty($val = $this->validateTicketAttributeValueL11nCreate($request))) {
|
||||||
$response->data['attr_value_l11n_create'] = new FormValidation($val);
|
$response->data['attr_value_l11n_create'] = new FormValidation($val);
|
||||||
$response->header->status = RequestStatusCode::R_400;
|
$response->header->status = RequestStatusCode::R_400;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -133,10 +133,10 @@ final class BackendController extends Controller
|
||||||
|
|
||||||
$view->data['ticket'] = $ticket;
|
$view->data['ticket'] = $ticket;
|
||||||
|
|
||||||
$accGrpSelector = new \Modules\Profile\Theme\Backend\Components\AccountGroupSelector\BaseView($this->app->l11nManager, $request, $response);
|
$accGrpSelector = new \Modules\Profile\Theme\Backend\Components\AccountGroupSelector\BaseView($this->app->l11nManager, $request, $response);
|
||||||
$view->data['accGrpSelector'] = $accGrpSelector;
|
$view->data['accGrpSelector'] = $accGrpSelector;
|
||||||
|
|
||||||
$editor = new \Modules\Editor\Theme\Backend\Components\Editor\BaseView($this->app->l11nManager, $request, $response);
|
$editor = new \Modules\Editor\Theme\Backend\Components\Editor\BaseView($this->app->l11nManager, $request, $response);
|
||||||
$view->data['editor'] = $editor;
|
$view->data['editor'] = $editor;
|
||||||
|
|
||||||
return $view;
|
return $view;
|
||||||
|
|
@ -239,16 +239,16 @@ final class BackendController extends Controller
|
||||||
*/
|
*/
|
||||||
public function viewModuleSettings(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : RenderableInterface
|
public function viewModuleSettings(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : RenderableInterface
|
||||||
{
|
{
|
||||||
$view = new View($this->app->l11nManager, $request, $response);
|
$view = new View($this->app->l11nManager, $request, $response);
|
||||||
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1000105001, $request, $response);
|
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1000105001, $request, $response);
|
||||||
|
|
||||||
$id = $request->getDataString('id') ?? '';
|
$id = $request->getDataString('id') ?? '';
|
||||||
|
|
||||||
$settings = SettingMapper::getAll()->where('module', $id)->execute();
|
$settings = SettingMapper::getAll()->where('module', $id)->execute();
|
||||||
$view->data['settings'] = $settings;
|
$view->data['settings'] = $settings;
|
||||||
|
|
||||||
/** @var \Modules\Support\Models\SupportApp[] $applications */
|
/** @var \Modules\Support\Models\SupportApp[] $applications */
|
||||||
$applications = SupportAppMapper::getAll()->execute();
|
$applications = SupportAppMapper::getAll()->execute();
|
||||||
$view->data['applications'] = $applications;
|
$view->data['applications'] = $applications;
|
||||||
|
|
||||||
$view->setTemplate('/Modules/' . static::NAME . '/Admin/Settings/Theme/Backend/settings');
|
$view->setTemplate('/Modules/' . static::NAME . '/Admin/Settings/Theme/Backend/settings');
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,6 @@ class TicketAttributeValue implements \JsonSerializable
|
||||||
*/
|
*/
|
||||||
private ?BaseStringL11n $l11n = null;
|
private ?BaseStringL11n $l11n = null;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set value
|
* Set value
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user