autofixes

This commit is contained in:
Dennis Eichhorn 2024-04-07 17:47:06 +00:00
parent a8d5939460
commit e90d6f8e90
6 changed files with 11 additions and 11 deletions

View File

@ -5,7 +5,7 @@ return [
0 => [
'dest' => '\Modules\HumanResourceTimeRecording\Controller\TimerecordingController:viewDashboard',
'verb' => 1,
'active' => true,
'active' => true,
'permission' => [
'module' => 'HumanResourceTimeRecording',
'type' => 2,
@ -17,7 +17,7 @@ return [
0 => [
'dest' => '\Modules\HumanResourceTimeRecording\Controller\TimerecordingController:viewDashboard',
'verb' => 1,
'active' => true,
'active' => true,
'permission' => [
'module' => 'HumanResourceTimeRecording',
'type' => 2,

View File

@ -23,7 +23,7 @@ return [
'dest' => '\Modules\HumanResourceTimeRecording\Controller\ApiController:apiSessionCreate',
'verb' => RouteVerb::PUT,
'csrf' => true,
'active' => true,
'active' => true,
'permission' => [
'module' => ApiController::NAME,
'type' => PermissionType::CREATE,
@ -36,7 +36,7 @@ return [
'dest' => '\Modules\HumanResourceTimeRecording\Controller\ApiController:apiSessionElementCreate',
'verb' => RouteVerb::PUT,
'csrf' => true,
'active' => true,
'active' => true,
'permission' => [
'module' => ApiController::NAME,
'type' => PermissionType::CREATE,

View File

@ -22,7 +22,7 @@ return [
[
'dest' => '\Modules\HumanResourceTimeRecording\Controller\BackendController:viewDashboard',
'verb' => RouteVerb::GET,
'active' => true,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
@ -34,7 +34,7 @@ return [
[
'dest' => '\Modules\HumanResourceTimeRecording\Controller\BackendController:viewPrivateDashboard',
'verb' => RouteVerb::GET,
'active' => true,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
@ -46,7 +46,7 @@ return [
[
'dest' => '\Modules\HumanResourceTimeRecording\Controller\BackendController:viewPrivateSession',
'verb' => RouteVerb::GET,
'active' => true,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,

View File

@ -110,7 +110,7 @@ class Session implements \JsonSerializable
\usort($this->sessionElements, [$this, 'compareSessionElementTimestamps']);
$start = null;
$end = null;
$end = null;
foreach ($this->sessionElements as $e) {
if ($e->status === ClockingStatus::START
@ -125,7 +125,7 @@ class Session implements \JsonSerializable
}
$this->start = $start;
$this->end = $end;
$this->end = $end;
$busyTime = 0;
$lastStart = $this->start;

View File

@ -17,5 +17,5 @@ return ['Navigation' => [
'List' => 'Liste',
'Stats' => 'Statistiken',
'TimeRecording' => 'Zeitaufnahme',
'Dashboard' => 'Dashboard',
'Dashboard' => 'Dashboard',
]];

View File

@ -17,5 +17,5 @@ return ['Navigation' => [
'List' => 'List',
'Stats' => 'Stats',
'TimeRecording' => 'Time Recording',
'Dashboard' => 'Dashboard',
'Dashboard' => 'Dashboard',
]];