mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-01-21 04:38:39 +00:00
phpstan and phpcs fixes
This commit is contained in:
parent
9ce75caab8
commit
c3673c5cc4
|
|
@ -10,7 +10,7 @@
|
|||
"icon": "fa fa-database",
|
||||
"order": 2,
|
||||
"from": "Organization",
|
||||
"permission": { "permission": 2, "type": null, "element": null },
|
||||
"permission": { "permission": 2, "category": null, "element": null },
|
||||
"parent": 0,
|
||||
"children": [
|
||||
{
|
||||
|
|
@ -26,7 +26,7 @@
|
|||
"from": "Organization",
|
||||
"permission": {
|
||||
"permission": 2,
|
||||
"type": null,
|
||||
"category": null,
|
||||
"element": null
|
||||
},
|
||||
"parent": 1004701001,
|
||||
|
|
@ -43,7 +43,7 @@
|
|||
"icon": null,
|
||||
"order": 5,
|
||||
"from": "Organization",
|
||||
"permission": { "permission": 2, "type": null, "element": null },
|
||||
"permission": { "permission": 2, "category": null, "element": null },
|
||||
"parent": 1004701001,
|
||||
"children": [
|
||||
{
|
||||
|
|
@ -57,7 +57,7 @@
|
|||
"icon": null,
|
||||
"order": 5,
|
||||
"from": "Organization",
|
||||
"permission": { "permission": 2, "type": null, "element": null },
|
||||
"permission": { "permission": 2, "category": null, "element": null },
|
||||
"parent": 1004703001,
|
||||
"children": []
|
||||
},
|
||||
|
|
@ -72,7 +72,7 @@
|
|||
"icon": null,
|
||||
"order": 25,
|
||||
"from": "Organization",
|
||||
"permission": { "permission": 4, "type": null, "element": null },
|
||||
"permission": { "permission": 4, "category": null, "element": null },
|
||||
"parent": 1004703001,
|
||||
"children": []
|
||||
}
|
||||
|
|
@ -89,7 +89,7 @@
|
|||
"icon": null,
|
||||
"order": 10,
|
||||
"from": "Organization",
|
||||
"permission": { "permission": 2, "type": null, "element": null },
|
||||
"permission": { "permission": 2, "category": null, "element": null },
|
||||
"parent": 1004701001,
|
||||
"children": [
|
||||
{
|
||||
|
|
@ -103,7 +103,7 @@
|
|||
"icon": null,
|
||||
"order": 5,
|
||||
"from": "Organization",
|
||||
"permission": { "permission": 2, "type": null, "element": null },
|
||||
"permission": { "permission": 2, "category": null, "element": null },
|
||||
"parent": 1004704001,
|
||||
"children": []
|
||||
},
|
||||
|
|
@ -118,7 +118,7 @@
|
|||
"icon": null,
|
||||
"order": 25,
|
||||
"from": "Organization",
|
||||
"permission": { "permission": 4, "type": null, "element": null },
|
||||
"permission": { "permission": 4, "category": null, "element": null },
|
||||
"parent": 1004704001,
|
||||
"children": []
|
||||
}
|
||||
|
|
@ -135,7 +135,7 @@
|
|||
"icon": null,
|
||||
"order": 20,
|
||||
"from": "Organization",
|
||||
"permission": { "permission": 2, "type": null, "element": null },
|
||||
"permission": { "permission": 2, "category": null, "element": null },
|
||||
"parent": 1004701001,
|
||||
"children": [
|
||||
{
|
||||
|
|
@ -149,7 +149,7 @@
|
|||
"icon": null,
|
||||
"order": 5,
|
||||
"from": "Organization",
|
||||
"permission": { "permission": 2, "type": null, "element": null },
|
||||
"permission": { "permission": 2, "category": null, "element": null },
|
||||
"parent": 1004705001,
|
||||
"children": []
|
||||
},
|
||||
|
|
@ -164,7 +164,7 @@
|
|||
"icon": null,
|
||||
"order": 25,
|
||||
"from": "Organization",
|
||||
"permission": { "permission": 4, "type": null, "element": null },
|
||||
"permission": { "permission": 4, "category": null, "element": null },
|
||||
"parent": 1004705001,
|
||||
"children": []
|
||||
}
|
||||
|
|
|
|||
|
|
@ -186,7 +186,7 @@ final class ApiController extends Controller
|
|||
$this->createModel($request->header->account, $unit, UnitMapper::class, 'unit', $request->getOrigin());
|
||||
|
||||
if ($this->app->appSettings->get(null, SettingsEnum::GROUP_GENERATE_AUTOMATICALLY_UNIT)->content === '1') {
|
||||
$newRequest = new HttpRequest();
|
||||
$newRequest = new HttpRequest();
|
||||
$newRequest->header->account = $request->header->account;
|
||||
$newRequest->setData('name', 'org:unit:' . \strtolower($unit->name));
|
||||
$newRequest->setData('status', GroupStatus::ACTIVE);
|
||||
|
|
@ -405,7 +405,7 @@ final class ApiController extends Controller
|
|||
$this->createModel($request->header->account, $position, PositionMapper::class, 'position', $request->getOrigin());
|
||||
|
||||
if ($this->app->appSettings->get(null, SettingsEnum::GROUP_GENERATE_AUTOMATICALLY_POSITION)->content === '1') {
|
||||
$newRequest = new HttpRequest();
|
||||
$newRequest = new HttpRequest();
|
||||
$newRequest->header->account = $request->header->account;
|
||||
$newRequest->setData('name', 'org:pos:' . \strtolower($position->name));
|
||||
$newRequest->setData('status', GroupStatus::ACTIVE);
|
||||
|
|
@ -584,7 +584,7 @@ final class ApiController extends Controller
|
|||
$this->createModel($request->header->account, $department, DepartmentMapper::class, 'department', $request->getOrigin());
|
||||
|
||||
if ($this->app->appSettings->get(null, SettingsEnum::GROUP_GENERATE_AUTOMATICALLY_DEPARTMENT)->content === '1') {
|
||||
$newRequest = new HttpRequest();
|
||||
$newRequest = new HttpRequest();
|
||||
$newRequest->header->account = $request->header->account;
|
||||
$newRequest->setData('name', 'org:dep:' . \strtolower($department->name));
|
||||
$newRequest->setData('status', GroupStatus::ACTIVE);
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace Modules\Organization\Models;
|
||||
|
||||
|
||||
/**
|
||||
* Organization department class.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace Modules\Organization\Models;
|
||||
|
||||
|
||||
/**
|
||||
* Organization position class.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user