File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,12 @@ function (array $extendedNode) {
190
190
return $ classes ;
191
191
}
192
192
193
+ /**
194
+ * Parse an XML for references to PHP class names in selected tags or attributes
195
+ *
196
+ * @param SimpleXMLElement $xml
197
+ * @return array
198
+ */
193
199
private function collectClassesInLayout (SimpleXMLElement $ xml ): array
194
200
{
195
201
$ classes = $ this ->getValuesFromXmlTagAttribute (
@@ -206,7 +212,7 @@ function (array $extendedNode) {
206
212
);
207
213
$ classes = array_merge (
208
214
$ classes ,
209
- $ this ->getValuesFromXmlTagAttribute (
215
+ $ this ->getValuesFromXmlTagAttribute (
210
216
$ xml ,
211
217
'/layout//@module ' ,
212
218
'module '
@@ -216,6 +222,12 @@ function (array $extendedNode) {
216
222
return $ classes ;
217
223
}
218
224
225
+ /**
226
+ * Extract class references from layout tabs
227
+ *
228
+ * @param SimpleXMLElement $xml
229
+ * @return array
230
+ */
219
231
private function collectClassesInLayoutTabs (SimpleXMLElement $ xml ): array
220
232
{
221
233
return $ this ->getValuesFromXmlTagContent (
@@ -224,7 +236,6 @@ private function collectClassesInLayoutTabs(SimpleXMLElement $xml): array
224
236
);
225
237
}
226
238
227
-
228
239
/**
229
240
* Extract value from tag contents which exist in the XML path
230
241
*
You can’t perform that action at this time.
0 commit comments