We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 999d8e5 commit 401b423Copy full SHA for 401b423
app/code/Magento/Integration/Model/Config/Consolidated/Converter.php
@@ -82,13 +82,14 @@ public function convert($source)
82
}
83
84
// Add root resource if any child has been added
85
- if (! empty($result[$integrationName][self::API_RESOURCES])) {
+ if (!empty($result[$integrationName][self::API_RESOURCES])) {
86
array_unshift($result[$integrationName][self::API_RESOURCES], $allResources[1]['id']);
87
88
89
// Remove any duplicates added parents
90
- $result[$integrationName][self::API_RESOURCES] =
91
- array_values(array_unique($result[$integrationName][self::API_RESOURCES]));
+ $result[$integrationName][self::API_RESOURCES] = array_values(
+ array_unique($result[$integrationName][self::API_RESOURCES])
92
+ );
93
94
return $result;
95
0 commit comments