Code Duplication    Length = 3-3 lines in 5 locations

manager/frames/nodes.functions.inc.php 5 locations

@@ 229-231 (lines=3) @@
226
                $ph = (count($phnew) > 0) ? $phnew : $ph;
227
            }
228
229
            if ($ph['contextmenu']) {
230
                $ph['contextmenu'] = ' data-contextmenu="' . _htmlentities($ph['contextmenu']) . '"';
231
            }
232
233
            if ($_SESSION['tree_show_only_folders']) {
234
                if ($row['parent'] == 0) {
@@ 287-289 (lines=3) @@
284
                        $ph = (count($phnew) > 0) ? $phnew : $ph;
285
                    }
286
287
                    if ($ph['contextmenu']) {
288
                        $ph['contextmenu'] = ' data-contextmenu="' . _htmlentities($ph['contextmenu']) . '"';
289
                    }
290
291
                    $node .= $modx->parseText($tpl, $ph);
292
                    if ($checkFolders) {
@@ 325-327 (lines=3) @@
322
                        $ph = (count($phnew) > 0) ? $phnew : $ph;
323
                    }
324
325
                    if ($ph['contextmenu']) {
326
                        $ph['contextmenu'] = ' data-contextmenu="' . _htmlentities($ph['contextmenu']) . '"';
327
                    }
328
329
                    $node .= $modx->parseText($tpl, $ph);
330
                    $node .= '</div></div>';
@@ 376-378 (lines=3) @@
373
                        $tpl = getTplFolderNodeNotChildren();
374
                    }
375
376
                    if ($ph['contextmenu']) {
377
                        $ph['contextmenu'] = ' data-contextmenu="' . _htmlentities($ph['contextmenu']) . '"';
378
                    }
379
380
                    $node .= $modx->parseText($tpl, $ph);
381
                    if ($ph['donthit'] == 0) {
@@ 418-420 (lines=3) @@
415
                        $tpl = getTplFolderNodeNotChildren();
416
                    }
417
418
                    if ($ph['contextmenu']) {
419
                        $ph['contextmenu'] = ' data-contextmenu="' . _htmlentities($ph['contextmenu']) . '"';
420
                    }
421
422
                    $node .= $modx->parseText($tpl, $ph);
423
                    $node .= '</div></div>';