Verified Commit d1e5755b authored by dockx thibault's avatar dockx thibault
Browse files

:sparkles: Feat(Orchestrator) - phpcs

PHPCS
2 merge requests!72Releasing Fusiondirectory Orchestrator 1.1,!66Resolve "[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
Showing with 3 additions and 3 deletions
+3 -3
...@@ -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],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment