Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory-orchestrator
Commits
d1e5755b
Verified
Commit
d1e5755b
authored
5 months ago
by
dockx thibault
Browse files
Options
Download
Patches
Plain Diff
Feat(Orchestrator) - phpcs
PHPCS
parent
a36a5c98
dev
70-create-unitests-for-orchestrator
73-orchestrator-create-a-librabry-in-core-orchestrator
78-redesign-audit-class
79-redesign-mail
80-redesign-notifications-class
81-redesign-reminders-class
82-redesign-lifecycle-class
main
revert-55863b23
1.1
2 merge requests
!72
Releasing Fusiondirectory Orchestrator 1.1
,
!66
Resolve "[Orchestrator] - lifeCycle prolongation adds time from date of process and not from resource end date"
Pipeline
#30597
passed with stages
in 1 minute and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/tasks/LifeCycle.php
+3
-3
plugins/tasks/LifeCycle.php
with
3 additions
and
3 deletions
+3
-3
plugins/tasks/LifeCycle.php
+
3
−
3
View file @
d1e5755b
...
@@ -238,14 +238,14 @@ class LifeCycle implements EndpointInterface
...
@@ -238,14 +238,14 @@ class LifeCycle implements EndpointInterface
* @return string|null
* @return string|null
* Note : Simple helper method to return the matched resource.
* Note : Simple helper method to return the matched resource.
*/
*/
private
function
findMatchedResource
(
array
$userStateHistory
,
string
$newResourceName
):
?string
private
function
findMatchedResource
(
array
$userStateHistory
,
string
$newResourceName
):
?string
{
{
foreach
(
$userStateHistory
as
$value
)
{
foreach
(
$userStateHistory
as
$value
)
{
if
(
$this
->
returnSupannResourceBetweenBrackets
(
$value
)
===
$newResourceName
)
{
if
(
$this
->
returnSupannResourceBetweenBrackets
(
$value
)
===
$newResourceName
)
{
return
$value
;
return
$value
;
}
}
}
}
return
null
;
return
NULL
;
}
}
/**
/**
...
@@ -253,7 +253,7 @@ class LifeCycle implements EndpointInterface
...
@@ -253,7 +253,7 @@ class LifeCycle implements EndpointInterface
* @return array
* @return array
* Simple helper method for readiness.
* Simple helper method for readiness.
*/
*/
private
function
prepareNewEntry
(
array
$lifeCycleBehavior
):
array
private
function
prepareNewEntry
(
array
$lifeCycleBehavior
):
array
{
{
return
[
return
[
'Resource'
=>
$lifeCycleBehavior
[
'fdtaskslifecyclepostresource'
][
0
],
'Resource'
=>
$lifeCycleBehavior
[
'fdtaskslifecyclepostresource'
][
0
],
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets