@@ -225,7 +225,7 @@ public function connectSinksAndSources(Progress $progress): void
225
225
$ codebase = $ project_analyzer ->getCodebase ();
226
226
227
227
// Remove all specializations without an outgoing edge
228
- /* foreach ($this->specializations as $k => &$map) {
228
+ foreach ($ this ->specializations as $ k => &$ map ) {
229
229
foreach ($ map as $ kk => $ specialized_id ) {
230
230
if (!isset ($ this ->forward_edges [$ specialized_id ])) {
231
231
unset($ map [$ kk ]);
@@ -234,7 +234,7 @@ public function connectSinksAndSources(Progress $progress): void
234
234
if (!$ map ) {
235
235
unset($ this ->specializations [$ k ]);
236
236
}
237
- } unset($map);*/
237
+ } unset($ map );
238
238
239
239
$ stack = [];
240
240
// reprocess resolved descendants up to a maximum nesting level of 40
@@ -270,7 +270,9 @@ public function connectSinksAndSources(Progress $progress): void
270
270
// If this is a specialized node, de-specialize;
271
271
// Then, if we have one or more edges starting at the de-specialized node,
272
272
// process destinations of those edges.
273
- if ($ source ->specialization_key !== null && isset ($ this ->specialized_calls [$ source ->specialization_key ])) {
273
+ if ($ source ->specialization_key !== null
274
+ && isset ($ this ->specialized_calls [$ source ->specialization_key ])
275
+ ) {
274
276
/** @var string $source->unspecialized_id */
275
277
if (!isset ($ this ->forward_edges [$ source ->unspecialized_id ])) {
276
278
continue ;
@@ -310,9 +312,6 @@ public function connectSinksAndSources(Progress $progress): void
310
312
if ($ specialized_calls ) {
311
313
// If processing descendants of a specialized call, accept only descendants.
312
314
foreach ($ this ->specializations [$ source ->id ] as $ specialization => $ specialized_id ) {
313
- if (!isset ($ this ->forward_edges [$ specialized_id ])) {
314
- continue ;
315
- }
316
315
if (!isset ($ specialized_calls [$ specialization ])) {
317
316
continue ;
318
317
}
@@ -345,9 +344,6 @@ public function connectSinksAndSources(Progress $progress): void
345
344
} else {
346
345
// If not processing descendants, accept all specializations.
347
346
foreach ($ this ->specializations [$ source ->id ] as $ specialization => $ specialized_id ) {
348
- if (!isset ($ this ->forward_edges [$ specialized_id ])) {
349
- continue ;
350
- }
351
347
$ new_source = new DataFlowNode (
352
348
$ specialized_id ,
353
349
$ source ->id ,
0 commit comments