Skip to content

Commit

Permalink
Fix generator multi store store specific executor conditions (#496)
Browse files Browse the repository at this point in the history
* Fix conditions where a non-existing structure is examined and therefore it's always true
  • Loading branch information
peresypkin authored May 22, 2024
1 parent 6f87cc2 commit 4e9cd42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function exec(array $projectData): array
foreach ($projectData[ProjectDataRegionsConstants::REGIONS_KEY] as $regionName => $regionData) {
$regionServices = $regionData[ProjectDataServicesConstants::SERVICES_KEY] ?? [];

if (!isset($services[ProjectDataServicesConstants::BROKER_KEY][ProjectDataServicesConstants::SERVICES_NAMESPACE_KEY])) {
if (!isset($regionServices[ProjectDataServicesConstants::BROKER_KEY][ProjectDataServicesConstants::SERVICES_NAMESPACE_KEY])) {
continue;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function exec(array $projectData): array
foreach ($projectData[ProjectDataRegionsConstants::REGIONS_KEY] as $regionName => $regionData) {
$regionServices = $regionData[ProjectDataServicesConstants::SERVICES_KEY] ?? [];

if (!isset($services[ProjectDataServicesConstants::KEY_VALUE_STORE_KEY][ProjectDataServicesConstants::SERVICES_NAMESPACE_KEY])) {
if (!isset($regionServices[ProjectDataServicesConstants::KEY_VALUE_STORE_KEY][ProjectDataServicesConstants::SERVICES_NAMESPACE_KEY])) {
continue;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function exec(array $projectData): array
foreach ($projectData[ProjectDataRegionsConstants::REGIONS_KEY] as $regionName => $regionData) {
$regionServices = $regionData[ProjectDataServicesConstants::SERVICES_KEY] ?? [];

if (!isset($services[ProjectDataServicesConstants::SESSION_KEY][ProjectDataServicesConstants::SERVICES_NAMESPACE_KEY])) {
if (!isset($regionServices[ProjectDataServicesConstants::SESSION_KEY][ProjectDataServicesConstants::SERVICES_NAMESPACE_KEY])) {
continue;
}

Expand Down

0 comments on commit 4e9cd42

Please sign in to comment.