Code Duplication    Length = 3-3 lines in 2 locations

catalog/admin/includes/functions/general.php 2 locations

@@ 953-955 (lines=3) @@
950
            'text' => $Qcategory->value('categories_name')
951
          ];
952
953
          if ($Qcategory->valueInt('parent_id') > 0) {
954
            $categories_array = call_user_func(__FUNCTION__, $Qcategory->valueInt('parent_id'), 'category', $categories_array, $index);
955
          }
956
957
          $categories_array[$index] = array_reverse($categories_array[$index]);
958
        }
@@ 982-984 (lines=3) @@
979
        'text' => $Qcategory->value('categories_name')
980
      ];
981
982
      if ($Qcategory->valueInt('parent_id') > 0) {
983
        $categories_array = call_user_func(__FUNCTION__, $Qcategory->valueInt('parent_id'), 'category', $categories_array, $index);
984
      }
985
    }
986
987
    return $categories_array;