@@ -157,14 +157,14 @@ private function getBaseDir($filePath): ?string
157
157
return null ;
158
158
}
159
159
160
- /**
161
- * Search for system.xml files in both app/code and vendor directories, excluding the provided file.
162
- *
163
- * @param string $magentoBaseDir The base directory of Magento.
164
- * @param string $excludeFile The file to exclude from the search.
165
- * @return array An array of paths to system.xml files, excluding the specified file.
166
- */
167
- private function getSystemXmlFiles ($ magentoBaseDir , $ excludeFile = null ): array
160
+ /**
161
+ * Search for system.xml files in both app/code and vendor directories, excluding the provided file.
162
+ *
163
+ * @param string $magentoBaseDir The base directory of Magento.
164
+ * @param string|null $excludeFile The file to exclude from the search.
165
+ * @return array An array of paths to system.xml files, excluding the specified file.
166
+ */
167
+ private function getSystemXmlFiles (string $ magentoBaseDir , ? string $ excludeFile = null ): array
168
168
{
169
169
$ systemXmlFiles = [];
170
170
$ directoryToSearch = [
@@ -189,13 +189,13 @@ private function getSystemXmlFiles($magentoBaseDir, $excludeFile = null): array
189
189
return $ systemXmlFiles ;
190
190
}
191
191
192
- /**
193
- * Method to extract section, group and field from the Node
194
- *
195
- * @param $nodePath
196
- * @return array|null
197
- */
198
- private function extractSectionGroupField ($ nodePath ): ?array
192
+ /**
193
+ * Method to extract section, group and field from the Node
194
+ *
195
+ * @param string $nodePath
196
+ * @return array|null
197
+ */
198
+ private function extractSectionGroupField (string $ nodePath ): ?array
199
199
{
200
200
$ parts = explode ('/ ' , $ nodePath );
201
201
@@ -211,14 +211,14 @@ private function extractSectionGroupField($nodePath): ?array
211
211
return [$ sectionId , $ groupId , $ fieldId ];
212
212
}
213
213
214
- /**
215
- * Method to get Node Data using reflection class
216
- *
217
- * @param $node
218
- * @return array
219
- * @throws \ReflectionException
220
- */
221
- private function getNodeData ($ node ): array
214
+ /**
215
+ * Method to get Node Data using reflection class
216
+ *
217
+ * @param object|string $node
218
+ * @return array
219
+ * @throws \ReflectionException
220
+ */
221
+ private function getNodeData (object | string $ node ): array
222
222
{
223
223
$ data = [];
224
224
0 commit comments