mirror of
https://github.com/Karaka-Management/oms-HumanResourceTimeRecording.git
synced 2026-01-11 11:58:47 +00:00
autofixes
This commit is contained in:
parent
a8d5939460
commit
e90d6f8e90
|
|
@ -5,7 +5,7 @@ return [
|
||||||
0 => [
|
0 => [
|
||||||
'dest' => '\Modules\HumanResourceTimeRecording\Controller\TimerecordingController:viewDashboard',
|
'dest' => '\Modules\HumanResourceTimeRecording\Controller\TimerecordingController:viewDashboard',
|
||||||
'verb' => 1,
|
'verb' => 1,
|
||||||
'active' => true,
|
'active' => true,
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'module' => 'HumanResourceTimeRecording',
|
'module' => 'HumanResourceTimeRecording',
|
||||||
'type' => 2,
|
'type' => 2,
|
||||||
|
|
@ -17,7 +17,7 @@ return [
|
||||||
0 => [
|
0 => [
|
||||||
'dest' => '\Modules\HumanResourceTimeRecording\Controller\TimerecordingController:viewDashboard',
|
'dest' => '\Modules\HumanResourceTimeRecording\Controller\TimerecordingController:viewDashboard',
|
||||||
'verb' => 1,
|
'verb' => 1,
|
||||||
'active' => true,
|
'active' => true,
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'module' => 'HumanResourceTimeRecording',
|
'module' => 'HumanResourceTimeRecording',
|
||||||
'type' => 2,
|
'type' => 2,
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ return [
|
||||||
'dest' => '\Modules\HumanResourceTimeRecording\Controller\ApiController:apiSessionCreate',
|
'dest' => '\Modules\HumanResourceTimeRecording\Controller\ApiController:apiSessionCreate',
|
||||||
'verb' => RouteVerb::PUT,
|
'verb' => RouteVerb::PUT,
|
||||||
'csrf' => true,
|
'csrf' => true,
|
||||||
'active' => true,
|
'active' => true,
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'module' => ApiController::NAME,
|
'module' => ApiController::NAME,
|
||||||
'type' => PermissionType::CREATE,
|
'type' => PermissionType::CREATE,
|
||||||
|
|
@ -36,7 +36,7 @@ return [
|
||||||
'dest' => '\Modules\HumanResourceTimeRecording\Controller\ApiController:apiSessionElementCreate',
|
'dest' => '\Modules\HumanResourceTimeRecording\Controller\ApiController:apiSessionElementCreate',
|
||||||
'verb' => RouteVerb::PUT,
|
'verb' => RouteVerb::PUT,
|
||||||
'csrf' => true,
|
'csrf' => true,
|
||||||
'active' => true,
|
'active' => true,
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'module' => ApiController::NAME,
|
'module' => ApiController::NAME,
|
||||||
'type' => PermissionType::CREATE,
|
'type' => PermissionType::CREATE,
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ return [
|
||||||
[
|
[
|
||||||
'dest' => '\Modules\HumanResourceTimeRecording\Controller\BackendController:viewDashboard',
|
'dest' => '\Modules\HumanResourceTimeRecording\Controller\BackendController:viewDashboard',
|
||||||
'verb' => RouteVerb::GET,
|
'verb' => RouteVerb::GET,
|
||||||
'active' => true,
|
'active' => true,
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'module' => BackendController::NAME,
|
'module' => BackendController::NAME,
|
||||||
'type' => PermissionType::READ,
|
'type' => PermissionType::READ,
|
||||||
|
|
@ -34,7 +34,7 @@ return [
|
||||||
[
|
[
|
||||||
'dest' => '\Modules\HumanResourceTimeRecording\Controller\BackendController:viewPrivateDashboard',
|
'dest' => '\Modules\HumanResourceTimeRecording\Controller\BackendController:viewPrivateDashboard',
|
||||||
'verb' => RouteVerb::GET,
|
'verb' => RouteVerb::GET,
|
||||||
'active' => true,
|
'active' => true,
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'module' => BackendController::NAME,
|
'module' => BackendController::NAME,
|
||||||
'type' => PermissionType::READ,
|
'type' => PermissionType::READ,
|
||||||
|
|
@ -46,7 +46,7 @@ return [
|
||||||
[
|
[
|
||||||
'dest' => '\Modules\HumanResourceTimeRecording\Controller\BackendController:viewPrivateSession',
|
'dest' => '\Modules\HumanResourceTimeRecording\Controller\BackendController:viewPrivateSession',
|
||||||
'verb' => RouteVerb::GET,
|
'verb' => RouteVerb::GET,
|
||||||
'active' => true,
|
'active' => true,
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'module' => BackendController::NAME,
|
'module' => BackendController::NAME,
|
||||||
'type' => PermissionType::READ,
|
'type' => PermissionType::READ,
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@ class Session implements \JsonSerializable
|
||||||
\usort($this->sessionElements, [$this, 'compareSessionElementTimestamps']);
|
\usort($this->sessionElements, [$this, 'compareSessionElementTimestamps']);
|
||||||
|
|
||||||
$start = null;
|
$start = null;
|
||||||
$end = null;
|
$end = null;
|
||||||
|
|
||||||
foreach ($this->sessionElements as $e) {
|
foreach ($this->sessionElements as $e) {
|
||||||
if ($e->status === ClockingStatus::START
|
if ($e->status === ClockingStatus::START
|
||||||
|
|
@ -125,7 +125,7 @@ class Session implements \JsonSerializable
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->start = $start;
|
$this->start = $start;
|
||||||
$this->end = $end;
|
$this->end = $end;
|
||||||
|
|
||||||
$busyTime = 0;
|
$busyTime = 0;
|
||||||
$lastStart = $this->start;
|
$lastStart = $this->start;
|
||||||
|
|
|
||||||
|
|
@ -17,5 +17,5 @@ return ['Navigation' => [
|
||||||
'List' => 'Liste',
|
'List' => 'Liste',
|
||||||
'Stats' => 'Statistiken',
|
'Stats' => 'Statistiken',
|
||||||
'TimeRecording' => 'Zeitaufnahme',
|
'TimeRecording' => 'Zeitaufnahme',
|
||||||
'Dashboard' => 'Dashboard',
|
'Dashboard' => 'Dashboard',
|
||||||
]];
|
]];
|
||||||
|
|
|
||||||
|
|
@ -17,5 +17,5 @@ return ['Navigation' => [
|
||||||
'List' => 'List',
|
'List' => 'List',
|
||||||
'Stats' => 'Stats',
|
'Stats' => 'Stats',
|
||||||
'TimeRecording' => 'Time Recording',
|
'TimeRecording' => 'Time Recording',
|
||||||
'Dashboard' => 'Dashboard',
|
'Dashboard' => 'Dashboard',
|
||||||
]];
|
]];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user