{
  "target_php": "8.3.36",
  "scope": {
    "directory": "intranet",
    "recursive": false,
    "root_php_files_reviewed": 886,
    "subdirectories_excluded": true,
    "method": "PHP syntax tree scan of each loose .php file. JavaScript reset() calls, comments and library/subdirectory code are excluded. Neighboring root-level HTML files contained no PHP tags."
  },
  "files": [
    "_database.php",
    "_database2.php",
    "_database3.php",
    "_database4.php",
    "_test_paypal_approve.php",
    "_test_paypal_cancel.php",
    "_test_paypal_get_token.php",
    "aba-menu.php",
    "abonarNC.php",
    "abonardocumento.php",
    "abonardocumentocompra.php",
    "abonardocumentonew.php",
    "abonarindent.php",
    "abonarindent2.php",
    "abriranocontable.php",
    "abrircartola.php",
    "abrirdepre.php",
    "actualiza_slugs.php",
    "actualiza_slugs2.php",
    "actualiza_slugs_.php",
    "actualiza_slugs_exec.php",
    "actualiza_slugs_sku.php",
    "actualizaaccion.php",
    "actualizaclaseproducto.php",
    "actualizaproductos.php",
    "amzn-fulfillment-items.php",
    "arreglaproductoscostoceroendetalle_facvta.php",
    "arreglaproductoscostoceroenproductos.php",
    "arreglasaldos.php",
    "asignactactedetalle.php",
    "asignadetallectacte.php",
    "assets_pdf.php",
    "autologin.php",
    "azure-product-image.php",
    "azure-storage-config.php",
    "bad-weights.php",
    "balance-b.php",
    "balance-estadoresultado-half.php",
    "balance-estadoresultado.php",
    "balance.php",
    "balance_cmp_pdf.php",
    "balance_pdf.php",
    "balance_pdf2.php",
    "balance_qa.php",
    "balance_respaldo_2022_04_09.php",
    "book-shipments.php",
    "book-shipments2.php",
    "busca-item-nota-transferencia-new.php",
    "cabecera.php",
    "cabecera_new.php",
    "cabeceraconfecciona.php",
    "cabeceraconfeccionadte.php",
    "cabeceraconfeccionaot.php",
    "cajachica.php",
    "cajalistafacturas.php",
    "calculate_balance.php",
    "calendario.php",
    "calzavendedores.php",
    "cambiacodigo-cli.php",
    "cambiacodigo-v2.php",
    "cambiacodigo-v3.php",
    "cambiacodigo.php",
    "cambiacontrasena.php",
    "cambiadeclarado.php",
    "cambiaprecio2.php",
    "cargadetallepagoprovee.php",
    "cargaitems.php",
    "cargaitems_new.php",
    "cargaitemsgd.php",
    "cargaot.php",
    "cerraranocontable.php",
    "cerrardepre.php",
    "change-adjustment-movement.php",
    "check_page.php",
    "checkout-emails.php",
    "china-login-access.php",
    "cierracartola.php",
    "columna.php",
    "commissions.php",
    "compound-payment-back.php",
    "compound-payments.php",
    "conexionsolowp.php",
    "conexionwp.php",
    "confecciona.php",
    "confecciona2.php",
    "confecciona2_new.php",
    "confecciona_new.php",
    "config-QA.php",
    "config.php",
    "consulta-producto-v2.php",
    "consulta-producto.php",
    "consulta-producto2.php",
    "consultaTB.php",
    "consultacajachica.php",
    "consultacajachica2.php",
    "consultacuentasporcobrar.php",
    "consultadoctos-docto-27.php",
    "consultadoctos.php",
    "consultadoctoscompra.php",
    "consultadoctoscompra2.php",
    "consultadoctoscompra3.php",
    "conta-menu-new.php",
    "conta-menu.php",
    "create_manual_pallet_batch.php",
    "createsaleinv.php",
    "creditnote-old-version.php",
    "creditnote.php",
    "critical-stock-amazon-fba-back.php",
    "critical-stock-amazon-fba.php",
    "critical-stock-b.php",
    "critical-stock-back.php",
    "critical-stock-by-top-sales-amazon.php",
    "critical-stock-by-top-sales-colombia.php",
    "critical-stock-by-top-sales-new-old.php",
    "critical-stock-by-top-sales-new.php",
    "critical-stock-by-top-sales.php",
    "critical-stock-by-top-sales2.php",
    "critical-stock-by-top-sales3.php",
    "critical-stock-menu.php",
    "critical-stock-new.php",
    "critical-stock-po-rules.php",
    "critical-stock-v2.php",
    "critical-stock-v22.php",
    "critical-stock.php",
    "cron-backorders-new.php",
    "cron-backorders.php",
    "cron-backorders2.php",
    "cron-check-endpoint-stock.php",
    "cron-date-dispatch.php",
    "cron-ebay-orders.php",
    "cron-fix-cost-rates.php",
    "cron-kill-connections-mysql-cl.php",
    "cron-kill-connections-mysql-col.php",
    "cron-kill-connections-mysql.php",
    "cron-page.php",
    "cron-pageOLD.php",
    "cron-paylpal-complete-update.php",
    "cron-product-prices-list-cl-2026.php",
    "cron-update-data-new-debug.php",
    "cron-update-data-new-web-translations.php",
    "cron-update-data-new-web.php",
    "cron-update-data-new-web_NEW.php",
    "cron_ecommerce_listings.php",
    "cron_mertranano.php",
    "cron_mertranano2.php",
    "cronbalance.php",
    "cronbalance2.php",
    "cronbalance3.php",
    "cronbitacora.php",
    "cronconviertevideos.php",
    "cronnotaventa2.php",
    "cronnotaventa666.php",
    "cronnotaventaass.php",
    "cronproductos.php",
    "cronproductos1.php",
    "cronstockrecomendado.php",
    "crontracking.php",
    "ctacteCustomers.php",
    "ctactepro.php",
    "ctacteprov.php",
    "customerQueries-QA.php",
    "customerQueries.php",
    "datasheet_base.php",
    "datasheet_template.php",
    "delayed.php",
    "delivery_receipt.php",
    "detalleccp.php",
    "detalleingresosegresos.php",
    "detalleseries.php",
    "detalleseriesgd.php",
    "detalleserieshot.php",
    "detalleseriesobs.php",
    "detalleseriesot.php",
    "dipatch-back-qa.php",
    "dispatch-back-new.php",
    "dispatch-back-po-pdf.php",
    "dispatch-back-qa.php",
    "dispatch-back.php",
    "dispatch-menu.php",
    "dispatch-new-mockup.php",
    "dispatch-new-mockup_TEST.php",
    "dispatch-new.php",
    "dispatch-product-image.php",
    "dispatch-summary.php",
    "dispatch-summary2.php",
    "dispatch.php",
    "dispatch_old_respaldo.php",
    "distributor_account_editor.php",
    "doindent-back.php",
    "doindent-invoice-back.php",
    "doindent-v1.php",
    "doindent.php",
    "doinvoice-quote-QA.php",
    "doinvoice-quote-back-QA.php",
    "doinvoice-quote-back-old-version.php",
    "doinvoice-quote-back.php",
    "doinvoice-quote-clone-full-olddata.php",
    "doinvoice-quote-delete.php",
    "doinvoice-quote-new.php",
    "doinvoice-quote-old-version.php",
    "doinvoice-quote-old.php",
    "doinvoice-quote.php",
    "doinvoice-resp.php",
    "doinvoice-warehouse-transfer-OLD.php",
    "doinvoice-warehouse-transfer-list.php",
    "doinvoice-warehouse-transfer.php",
    "doinvoice.php",
    "doinvoiceof44saleasset.php",
    "doinvoiceofsaleasset.php",
    "duplicaproducto.php",
    "duplicates_masive_product.php",
    "editAddress.php",
    "editComments.php",
    "editContacts.php",
    "editaacceso.php",
    "editaauto.php",
    "editabitacora.php",
    "editacategoria.php",
    "editacc.php",
    "editaccd.php",
    "editaciudad.php",
    "editacliente.php",
    "editacomuna.php",
    "editactacte.php",
    "editadepre.php",
    "editaegreso.php",
    "editaevacorre.php",
    "editaevaextra.php",
    "editaevaotros.php",
    "editaevapnc.php",
    "editaevapreve.php",
    "editafamilia.php",
    "editagiro.php",
    "editalocal.php",
    "editamodelo.php",
    "editaobsserie.php",
    "editapagina.php",
    "editaprivilegio.php",
    "editaproducto.php",
    "editaproducto2.php",
    "editaproductolight.php",
    "editasupercategoria.php",
    "editatipocliente.php",
    "editatipocomercial.php",
    "editatipodocumento.php",
    "editatipoingreso.php",
    "editausuario.php",
    "eliminactacte.php",
    "eliminadetalle.php",
    "eliminaitem.php",
    "eliminaitemabonoindent.php",
    "eliminaitemcajachica.php",
    "eliminaitemot.php",
    "eliminaitempago.php",
    "eliminaitempagocompra.php",
    "estadoresultado.php",
    "evaluacapa.php",
    "evaluaprov.php",
    "evaluaservicio.php",
    "evaluavta.php",
    "exi-menu.php",
    "exportTaxCa.php",
    "exportalibrocompra.php",
    "exportalibroventa.php",
    "exportalisdifproddeta.php",
    "exportamanuales.php",
    "facturarot.php",
    "facturarot2.php",
    "fake.php",
    "fechador.php",
    "fechador1.php",
    "fichaacceso.php",
    "fichaauto.php",
    "fichabitacora.php",
    "fichacajachica.php",
    "fichacambiafechadeclaracion.php",
    "fichacategoria.php",
    "fichacc.php",
    "fichaccd.php",
    "fichaciudad.php",
    "fichacliente.php",
    "fichacliente2.php",
    "fichacomuna.php",
    "fichaconfecciona.php",
    "fichaconfecciona2.php",
    "fichaconfecciona2_new.php",
    "fichactacte.php",
    "fichadepre.php",
    "fichaegreso.php",
    "fichaegreso2.php",
    "fichaevacorre.php",
    "fichaevaluacapa.php",
    "fichaevaluaprov.php",
    "fichaevaluaserv.php",
    "fichaevaluavta.php",
    "fichaevaluavtanew.php",
    "fichaevaotros.php",
    "fichaevapnc.php",
    "fichafamilia.php",
    "fichafolios.php",
    "fichagd.php",
    "fichagiro.php",
    "fichalocal.php",
    "fichamodelo.php",
    "fichanctextos.php",
    "fichanuevaot.php",
    "fichapagina.php",
    "fichaparametros-new.php",
    "fichaparametros.php",
    "fichaprivilegio.php",
    "fichaproducto-back.php",
    "fichaproducto-old.php",
    "fichaproducto-v34.php",
    "fichaproducto.php",
    "fichaproductolight.php",
    "fichasupercategoria.php",
    "fichatarea.php",
    "fichatipocliente.php",
    "fichatipocomercial.php",
    "fichatipodocumento.php",
    "fichatraspaso.php",
    "fichatraspaso2.php",
    "fichausuario.php",
    "follow-up-customers.php",
    "form.php",
    "formpagacon.php",
    "ftp_respaldos.php",
    "funciones.php",
    "generar_numeros_de_serie.php",
    "generate-qr.php",
    "get-checkout-mistakes.php",
    "getdescuadre.php",
    "giorgio-list.php",
    "global-brand-assessment-preview.php",
    "global-brand-inside-sales-preview-document.php",
    "global-brand-inside-sales-preview.php",
    "global-brand-links.php",
    "global-brand-manual-preview-page.php",
    "global-brand-review.php",
    "global-brand-start-approval.php",
    "global-brand-test-preview.php",
    "grababoleta.php",
    "grabacompradesdeindent.php",
    "grabafactura.php",
    "grabafactura2.php",
    "grabafacturacompra.php",
    "grabafacturanv.php",
    "grabafacturanv2.php",
    "grabanotacredito.php",
    "grabanotacreditoaba.php",
    "grabaotrasfacturacompra.php",
    "grabapagoprovee.php",
    "grabaventadesdeindent.php",
    "grabavoid.php",
    "grabavoidindent.php",
    "grabavoidindent2.php",
    "grafico.php",
    "graficojs.php",
    "graficovtaporpais.php",
    "historyBlacklist.php",
    "iframepdf.php",
    "import-amazon.php",
    "import-authorize-json.php",
    "import-authorize.php",
    "import-bank-of-america-data.php",
    "import-bank-of-america-json.php",
    "import-bank-of-america.php",
    "import-boa-data.php",
    "import-chase-checking-json-data.php",
    "import-chase-checking-json.php",
    "import-chase-checking.php",
    "import-chase-visa-business-data.php",
    "import-chase-visa-business-json.php",
    "import-chase-visa-business-json2.php",
    "import-chase-visa-business-json3.php",
    "import-chase-visa-business.php",
    "import-clover.php",
    "import-ebay.php",
    "import-paypal-json.php",
    "import-paypal.php",
    "import-queries-back.php",
    "importandsup.php",
    "importaproductos.php",
    "importar.php",
    "incoterm.php",
    "indent-new-contact.php",
    "indent-purchase-new-contact.php",
    "indent.php",
    "index.php",
    "index2.php",
    "index3.php",
    "informa.php",
    "inicio-new-proof.php",
    "inicio-old.php",
    "inicio.php",
    "intransit-inventory-reserved.php",
    "invoice-b.php",
    "invoice-old-version.php",
    "invoice-quote-QA.php",
    "invoice-quote-old-version.php",
    "invoice-quote.php",
    "invoice.php",
    "iso.php",
    "itemscompraconfecciona.php",
    "itemscompragastoconfecciona.php",
    "itemsconfecciona.php",
    "itemsconfecciona_new.php",
    "itemsncgastoconfecciona.php",
    "itemsotp.php",
    "itemsotped.php",
    "itemsots.php",
    "itemsotsed.php",
    "leedirectorio2.php",
    "libcompra.php",
    "libvta-old.php",
    "libvta.php",
    "libvta2.php",
    "libvtadia.php",
    "links.php",
    "liscomi.php",
    "liscomimec.php",
    "lisdifdetaprod.php",
    "lisdifproddeta.php",
    "lisliscomidetalle2.php",
    "lisliscomidetallemec.php",
    "lisliscomiresumen2.php",
    "lisliscomiresumen2vendedor.php",
    "lisliscomiresumenmec.php",
    "lislisvtaper.php",
    "lislisvtaperNEW1.php",
    "lislisvtaper_new.php",
    "lislisvtaperexp.php",
    "lisprodexp.php",
    "lisprodtopcanvta.php",
    "lisprodtopmonvta.php",
    "list-tax-exemption-back.php",
    "list-tax-exemption.php",
    "listainventario.php",
    "listainventarionew.php",
    "listaproductosconvalorcostodifentes.php",
    "listausuarios.php",
    "lisverifac.php",
    "lisveristock.php",
    "lisveristockcritico.php",
    "lisveristockcriticonew.php",
    "lisveristockexcesivo.php",
    "lisverivendedor.php",
    "lisversal.php",
    "lisvtaper.php",
    "login-status.php",
    "make_credit_note.php",
    "make_credit_note_v2-back.php",
    "make_credit_note_v3.php",
    "manage-prices-back.php",
    "manage-prices-new.php",
    "manage-prices-sku-get.php",
    "manage-prices.php",
    "margin-editor.php",
    "marketplaces-back.php",
    "marketplaces-listings-back.php",
    "marketplaces-menu.php",
    "marketplaces-orphans.php",
    "marketplaces-products-editor-old.php",
    "marketplaces-products-editor.php",
    "marketplaces-products-editorx.php",
    "marketplaces-profiles-editor-b.php",
    "marketplaces-profiles-editor.php",
    "marketplaces-restriction-back.php",
    "marketplaces-restriction-panel.php",
    "marketplaces-restriction.php",
    "matarpid2.php",
    "matarpid2libros.php",
    "media_ui.php",
    "menu-new.php",
    "menu.php",
    "mergecodigo.php",
    "mila-y.php",
    "modifica_precios_venta.php",
    "monitorbalance.php",
    "monitorisobitacora.php",
    "monitorisocapacita.php",
    "monitorisocompras.php",
    "monitorisohallazgos.php",
    "monitorisonada.php",
    "monitorisonoconformidad.php",
    "monitorisoobservaciones.php",
    "monitorisooportunidad.php",
    "monitorisoranking.php",
    "monitorisoresumen.php",
    "monitorisoservicios.php",
    "monitorisovtas.php",
    "monitorot.php",
    "monitorpid2.php",
    "monitortareas.php",
    "monthly-avg.php",
    "muestra-accesos.php",
    "muestra-autos.php",
    "muestra-categorias.php",
    "muestra-cc.php",
    "muestra-ccd-items-center-cost.php",
    "muestra-ccd.php",
    "muestra-ciudad.php",
    "muestra-clientes-QA.php",
    "muestra-clientes.php",
    "muestra-clientes2.php",
    "muestra-companies.php",
    "muestra-comunas.php",
    "muestra-ctasctes.php",
    "muestra-dashaccount.php",
    "muestra-depre.php",
    "muestra-descartados.php",
    "muestra-evabita.php",
    "muestra-evacapa.php",
    "muestra-evacorre.php",
    "muestra-evaotros.php",
    "muestra-evapnc.php",
    "muestra-evaprov.php",
    "muestra-evaservi.php",
    "muestra-evavta.php",
    "muestra-familias.php",
    "muestra-folios.php",
    "muestra-giros.php",
    "muestra-indent(old).php",
    "muestra-indent-new.php",
    "muestra-indent-repo.php",
    "muestra-indent.php",
    "muestra-indent10.php",
    "muestra-ingresosegresos.php",
    "muestra-ingresosegresos2.php",
    "muestra-libros.php",
    "muestra-logs.php",
    "muestra-mertransano.php",
    "muestra-modelos.php",
    "muestra-notaventas-QA.php",
    "muestra-notaventas.php",
    "muestra-paginas.php",
    "muestra-parametros-new.php",
    "muestra-parametros.php",
    "muestra-privilegios.php",
    "muestra-productos-sc.php",
    "muestra-productos-v3.php",
    "muestra-productos.php",
    "muestra-productoslight.php",
    "muestra-productostotal.php",
    "muestra-productostotal2.php",
    "muestra-quotes-old.php",
    "muestra-quotes-test.php",
    "muestra-quotes.php",
    "muestra-supercategorias.php",
    "muestra-tareas.php",
    "muestra-tipoclientes.php",
    "muestra-tipocomercial.php",
    "muestra-tipodocto.php",
    "muestra-traspasos.php",
    "muestra-usuarios.php",
    "muestra-vtaporpais.php",
    "muestra-zip.php",
    "muestra_grilla_deuda_a_proveedores.php",
    "muestraaccesos.php",
    "muestrabalanceshistoricos.php",
    "muestrabalanceshistoricos2.php",
    "muestracosmerven.php",
    "muestracospromerven.php",
    "muestractacteprod.php",
    "muestractacteprodacumulado.php",
    "muestractacteprodnew.php",
    "muestradescargas.php",
    "muestradetallefacturas.php",
    "muestrainventario-cutdate.php",
    "muestrainventario-warehouse.php",
    "muestrainventario.php",
    "muestrainventario2.php",
    "muestrainventarioval.php",
    "muestraots.php",
    "multiconexion.php",
    "multiconexion2.php",
    "multiconexion_.php",
    "newcargaitems.php",
    "newitem.php",
    "newitemin.php",
    "newitemin44.php",
    "newitemindent.php",
    "noconformidades.php",
    "nuevaot.php",
    "nuevaot2.php",
    "open-return.php",
    "open_external_order.php",
    "ordena-categorias.php",
    "ordena-productosfamilias.php",
    "ordena-supercategorias.php",
    "order_killer.php",
    "organizational-panel-back.php",
    "organizational-panel-v2.php",
    "organizational-panel.php",
    "outside_plataform.php",
    "overstock.php",
    "overstock2.php",
    "pack123.php",
    "packinglist.php",
    "paginador-v2.php",
    "paginador.php",
    "paginador1.php",
    "pagoaprovee.php",
    "pagoprovee3sumario.php",
    "parameters-v2.php",
    "passww-gen.php",
    "payment_search.php",
    "pdf_libcompra.php",
    "phpinfo.php",
    "pidefechanc.php",
    "pidefechand.php",
    "pidenrocreditnote.php",
    "pidenroinvoice.php",
    "plaid.php",
    "plaid_exchange_token.php",
    "plaid_link.php",
    "plmasterpdf.php",
    "plpackpdf.php",
    "plqrpdf.php",
    "plqrpdfNew.php",
    "portal-embed.php",
    "print-qr.php",
    "print_document.php",
    "print_serial.php",
    "print_serial_get_img.php",
    "print_serial_get_img_new.php",
    "pro-google.php",
    "procesa-cabecera-nota-transferencia-new.php",
    "procesa-documentfull-nota-transferencia-new.php",
    "procesa-item-nota-transferencia-new.php",
    "procesa_cabecera_nota_transferencia.php",
    "procesa_modifica_precios_venta.php",
    "procesaabonodocumento.php",
    "procesaabonodocumentocompra.php",
    "procesaabonodocumentocompramasivo.php",
    "procesaabonodocumentoindentmasivo.php",
    "procesaabonodocumentomasivoabono.php",
    "procesaabonoindent.php",
    "procesaacceso.php",
    "procesaacceso2.php",
    "procesaacciones.php",
    "procesaanular.php",
    "procesaauto.php",
    "procesabitacora.php",
    "procesacabecera44saleasset.php",
    "procesacabeceraindent.php",
    "procesacabeceraindent2.php",
    "procesacabeceranotaventa.php",
    "procesacabecerasaleasset.php",
    "procesacajachica.php",
    "procesacambiafechadeclaracion.php",
    "procesacambiaprecio2.php",
    "procesacambiocontrasena.php",
    "procesacategoria.php",
    "procesacc.php",
    "procesaccd.php",
    "procesacierreevaluacion.php",
    "procesaciudad.php",
    "procesacliente.php",
    "procesacomuna.php",
    "procesaconfecciona.php",
    "procesactacte.php",
    "procesadepre.php",
    "procesaeditatipoingreso.php",
    "procesaegreso.php",
    "procesaeliminar.php",
    "procesaeliminarcompra.php",
    "procesaevacorre.php",
    "procesaevaluacapa.php",
    "procesaevaluaprov.php",
    "procesaevaluaserv.php",
    "procesaevaluavta.php",
    "procesaevaotros.php",
    "procesaevapnc.php",
    "procesafacturarot.php",
    "procesafamilia.php",
    "procesafamiliaautomatico.php",
    "procesagiro.php",
    "procesaindent.php",
    "procesaindent2.php",
    "procesainicioot.php",
    "procesaitemotp.php",
    "procesaitemots.php",
    "procesamodelo.php",
    "procesanctexto.php",
    "procesanotaventa.php",
    "procesanotaventa44.php",
    "procesaobsserie.php",
    "procesapagina.php",
    "procesapagocompra.php",
    "procesapagocompraporprove.php",
    "procesaparametro-new.php",
    "procesaparametro.php",
    "procesaparametro2.php",
    "procesaparametroautomatico.php",
    "procesaparametroautomaticoUSA.php",
    "procesaprivilegio.php",
    "procesaproducto.php",
    "procesaproductolight.php",
    "procesasupercategoria.php",
    "procesatarea.php",
    "procesatipocliente.php",
    "procesatipocomercial.php",
    "procesatipodocumento.php",
    "procesatipohallazgo.php",
    "procesatraspaso.php",
    "procesausuario.php",
    "procesaventa.php",
    "procod-barcode-pdf-v2.php",
    "procod-barcode-pdf.php",
    "product-back.php",
    "product-change-ProChkSerieaaaaaa.php",
    "product-comment-azure-QA.php",
    "product-comment-azure-issue-QA.php",
    "product-comment-azure-issue.php",
    "product-comment-azure.php",
    "product-suppliers.php",
    "product-without-filter-v2.php",
    "product-without-filter.php",
    "product_editor-b.php",
    "product_editor-z.php",
    "product_editor.php",
    "product_ranking.php",
    "productoscostocero.php",
    "products-with-empty-fields.php",
    "products_spec.php",
    "profit_and_loss_cmp_pdf.php",
    "profit_and_loss_pdf.php",
    "qr.php",
    "quality-assurance-QA.php",
    "quality-assurance-comment-idempotency.php",
    "quality-assurance-email.php",
    "quality-assurance-img-QA.php",
    "quality-assurance-img.php",
    "quality-assurance-new2.php",
    "quality-assurance-old.php",
    "quality-assurance.php",
    "querys.php",
    "queryswp.php",
    "querysxajax.php",
    "quote_calculations.php",
    "raise-water-level-cl.php",
    "raise-water-level-co.php",
    "raise-water-level.php",
    "read_xlsx.php",
    "receiving-home.php",
    "receiving-menu.php",
    "receiving-transfer-detail-view.php",
    "receiving-transfer-partially.php",
    "receiving-transfer.php",
    "receiving-warehouse-transfer-back.php",
    "receiving.php",
    "report-customer-account-img.php",
    "report-customer-account.php",
    "resdetegr.php",
    "resdetegrer.php",
    "reseller-back-new.php",
    "reseller-back-old.php",
    "reseller-old.php",
    "reseller.php",
    "restotegr.php",
    "restoting.php",
    "returns-form.php",
    "sale-stats-b.php",
    "sale-stats.php",
    "sales-advertising-back.php",
    "sales-advertising-new.php",
    "sales-advertising.php",
    "sales-map.php",
    "sales-map2.php",
    "sales-map3.php",
    "sales-menu-QA.php",
    "sales-menu-old.php",
    "sales-menu.php",
    "sales_history.php",
    "savecampo.php",
    "savecampo2.php",
    "savecampoproducto.php",
    "savefield.php",
    "saveshipped.php",
    "saveshipped2.php",
    "search_po.php",
    "serializaproductosfamiliasinicial.php",
    "serials.php",
    "series.php",
    "service-orders.php",
    "servidor_autopro.php",
    "sgc.php",
    "sitemap-cl.php",
    "sitemap-co.php",
    "sitemap.php",
    "sow.php",
    "specs_editor-v2.php",
    "specs_editor.php",
    "specs_editor_old.php",
    "specs_editor_old1.php",
    "specs_field_bullet_point.php",
    "specs_fields_editor.php",
    "specs_fields_editor_new.php",
    "specs_fields_editor_old.php",
    "specs_fields_editor_old2.php",
    "specs_fields_editor_old3.php",
    "split_lines.php",
    "sumarioconfecciona.php",
    "sumarioconfecciona_new.php",
    "sumarioconfeccionaot.php",
    "summary-amazon-data.php",
    "summary-ebay-data.php",
    "supplier_map.php",
    "supplier_map2.php",
    "suppliers-addresses.php",
    "suppliers-api.php",
    "suppliers-blacklist.php",
    "suppliers-comments.php",
    "suppliers-contacts.php",
    "suppliers.php",
    "tablas_basicas.php",
    "tablas_basicas_oldd.php",
    "tarea.php",
    "taxmary.php",
    "test-product-order-back.php",
    "test-product-order-back_TEST.php",
    "test-product-order.php",
    "testcc.php",
    "testconecta.php",
    "testconecta_.php",
    "testing-checklist-back.php",
    "testing-checklist-editor.php",
    "traspasos.php",
    "triggers.php",
    "unificarDirecciones.php",
    "unshippable.php",
    "upload_family_manual.php",
    "uploadpdf.php",
    "valida_tax_exemptions.php",
    "validaitemsconcosto.php",
    "validanroot.php",
    "validausuario.php",
    "validausuario_new.php",
    "verabonos.php",
    "verbalancehistorico.php",
    "vercabeceraconfeccionaot.php",
    "vercartolas.php",
    "verdocto.php",
    "verfichaevaluaserv.php",
    "verfichaproducto.php",
    "verfotosvideos.php",
    "verglosapago.php",
    "verictactedetalle.php",
    "veridetallectacte.php",
    "verifac.php",
    "verify.php",
    "verisal.php",
    "veristock.php",
    "veristockcritico.php",
    "veristockexcesivo.php",
    "verivendedor.php",
    "verot.php",
    "verpopupclientes.php",
    "verproducto.php",
    "verqr.php",
    "versumarioconfeccionaot.php",
    "view-images-video.php",
    "visor.php",
    "vta-menu.php",
    "vtastransbankexp.php",
    "warehouse-items-new.php",
    "warehouse-items-old.php",
    "warehouse-items.php",
    "warehouse-old.php",
    "warehouse.php",
    "warranty-claims.php",
    "wms.php",
    "wms_all.php",
    "wms_now.php",
    "wms_pallets.php",
    "wms_pro.php",
    "wms_serials.php",
    "wms_serials_old.php",
    "write_xlsx.php",
    "z_estimado.php",
    "z_lista_backorder.php",
    "z_lista_backorder3.php",
    "z_mail.php",
    "z_test.php",
    "z_verinv.php"
  ],
  "findings": {
    "reset_calls_reviewed": 127,
    "other_pointer_calls_seen": 6,
    "reset_call_sites_corrected_or_guarded": 82,
    "application_files_changed": 23,
    "remaining_database_row_reset_calls": 0
  },
  "corrected_files": [
    "balance_pdf2.php",
    "config.php",
    "critical-stock-by-top-sales-amazon.php",
    "critical-stock-by-top-sales2.php",
    "critical-stock-by-top-sales3.php",
    "cron-product-prices-list-cl-2026.php",
    "duplicaproducto.php",
    "fichaproducto-old.php",
    "fichaproducto-v34.php",
    "fichaproducto.php",
    "fichatarea.php",
    "grabacompradesdeindent.php",
    "monitortareas.php",
    "muestra-clientes-QA.php",
    "muestra-clientes.php",
    "muestra-clientes2.php",
    "newitemin.php",
    "procesatarea.php",
    "product_editor-z.php",
    "product_editor.php",
    "sales-map.php",
    "sales-map3.php",
    "triggers.php"
  ],
  "fixes": [
    {
      "file": "balance_pdf2.php",
      "original_line": 972,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$balance = ($array[0] ?? 0);"
    },
    {
      "file": "balance_pdf2.php",
      "original_line": 940,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$total += ($array[0] ?? 0);"
    },
    {
      "file": "balance_pdf2.php",
      "original_line": 926,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$total = ($array[0] ?? 0);"
    },
    {
      "file": "balance_pdf2.php",
      "original_line": 907,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$amount = ($array[0] ?? 0);"
    },
    {
      "file": "balance_pdf2.php",
      "original_line": 891,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$amount = ($array[0] ?? 0);"
    },
    {
      "file": "balance_pdf2.php",
      "original_line": 724,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$total = ($array[0] ?? 0);"
    },
    {
      "file": "balance_pdf2.php",
      "original_line": 596,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$balance = ($array[0] ?? 0);"
    },
    {
      "file": "balance_pdf2.php",
      "original_line": 583,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$balance = ($array[0] ?? 0);"
    },
    {
      "file": "balance_pdf2.php",
      "original_line": 518,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$balance = ($array[0] ?? 0);"
    },
    {
      "file": "balance_pdf2.php",
      "original_line": 502,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$balance += ($array[0] ?? 0);"
    },
    {
      "file": "balance_pdf2.php",
      "original_line": 490,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$balance = ($array[0] ?? 0);"
    },
    {
      "file": "balance_pdf2.php",
      "original_line": 452,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$depreciation = ($array[0] ?? 0);"
    },
    {
      "file": "balance_pdf2.php",
      "original_line": 437,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$iva = ($array[0] ?? 0);"
    },
    {
      "file": "balance_pdf2.php",
      "original_line": 398,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$balance = ($array[0] ?? 0);"
    },
    {
      "file": "balance_pdf2.php",
      "original_line": 379,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$total = ($array[0] ?? 0);"
    },
    {
      "file": "balance_pdf2.php",
      "original_line": 360,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$total = ($array[0] ?? 0);"
    },
    {
      "file": "balance_pdf2.php",
      "original_line": 342,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$balance = ($array[0] ?? 0);"
    },
    {
      "file": "balance_pdf2.php",
      "original_line": 318,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$balance = ($array[0] ?? 0);"
    },
    {
      "file": "balance_pdf2.php",
      "original_line": 302,
      "before": "reset($array)",
      "after": "($array[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$name = ($array[0] ?? null);"
    },
    {
      "file": "balance_pdf2.php",
      "original_line": 287,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$balance = ($array[0] ?? 0);"
    },
    {
      "file": "balance_pdf2.php",
      "original_line": 257,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$balance = ($array[0] ?? 0);"
    },
    {
      "file": "balance_pdf2.php",
      "original_line": 155,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$total = ($array[0] ?? 0) * -1;"
    },
    {
      "file": "balance_pdf2.php",
      "original_line": 125,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$total = ($array[0] ?? 0);"
    },
    {
      "file": "config.php",
      "original_line": 209,
      "before": "reset($stmt->fetch_array())",
      "after": "($stmt->fetch_array()[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$marketplace_api_key_prod = ($stmt->fetch_array()[0] ?? null);"
    },
    {
      "file": "config.php",
      "original_line": 203,
      "before": "reset($stmt->fetch_array())",
      "after": "($stmt->fetch_array()[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$marketplace_api_key_dev = ($stmt->fetch_array()[0] ?? null);"
    },
    {
      "file": "config.php",
      "original_line": 197,
      "before": "reset($stmt->fetch_array())",
      "after": "($stmt->fetch_array()[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$marketplace_api_url_prod = ($stmt->fetch_array()[0] ?? null);"
    },
    {
      "file": "config.php",
      "original_line": 191,
      "before": "reset($stmt->fetch_array())",
      "after": "($stmt->fetch_array()[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$marketplace_api_url_dev = ($stmt->fetch_array()[0] ?? null);"
    },
    {
      "file": "config.php",
      "original_line": 184,
      "before": "reset($stmt->fetch_array())",
      "after": "($stmt->fetch_array()[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$intranet_api_key_prod = ($stmt->fetch_array()[0] ?? null);"
    },
    {
      "file": "config.php",
      "original_line": 178,
      "before": "reset($stmt->fetch_array())",
      "after": "($stmt->fetch_array()[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$intranet_api_key_dev = ($stmt->fetch_array()[0] ?? null);"
    },
    {
      "file": "config.php",
      "original_line": 172,
      "before": "reset($stmt->fetch_array())",
      "after": "($stmt->fetch_array()[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$intranet_api_url_prod = ($stmt->fetch_array()[0] ?? null);"
    },
    {
      "file": "config.php",
      "original_line": 166,
      "before": "reset($stmt->fetch_array())",
      "after": "($stmt->fetch_array()[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$intranet_api_url_dev = ($stmt->fetch_array()[0] ?? null);"
    },
    {
      "file": "critical-stock-by-top-sales-amazon.php",
      "original_line": 202,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "return ($array[0] ?? 0);"
    },
    {
      "file": "critical-stock-by-top-sales-amazon.php",
      "original_line": 149,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "return ($array[0] ?? 0);"
    },
    {
      "file": "critical-stock-by-top-sales-amazon.php",
      "original_line": 130,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$stock->lease = round(($array[0] ?? 0));"
    },
    {
      "file": "critical-stock-by-top-sales-amazon.php",
      "original_line": 116,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$stock->proforma += round(($array[0] ?? 0));"
    },
    {
      "file": "critical-stock-by-top-sales-amazon.php",
      "original_line": 101,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$stock->physical += ($array[0] ?? 0);"
    },
    {
      "file": "critical-stock-by-top-sales-amazon.php",
      "original_line": 75,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$qty = ($array[0] ?? 0);"
    },
    {
      "file": "critical-stock-by-top-sales2.php",
      "original_line": 251,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$last30d = $array[0] ?? 0;"
    },
    {
      "file": "critical-stock-by-top-sales2.php",
      "original_line": 232,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$last6m = $array[0] ?? 0;"
    },
    {
      "file": "critical-stock-by-top-sales3.php",
      "original_line": 219,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "return ($array[0] ?? 0);"
    },
    {
      "file": "critical-stock-by-top-sales3.php",
      "original_line": 165,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "return ($array[0] ?? 0);"
    },
    {
      "file": "critical-stock-by-top-sales3.php",
      "original_line": 146,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$stock->lease = round(($array[0] ?? 0));"
    },
    {
      "file": "critical-stock-by-top-sales3.php",
      "original_line": 132,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$stock->proforma += round(($array[0] ?? 0));"
    },
    {
      "file": "critical-stock-by-top-sales3.php",
      "original_line": 117,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$stock->physical += ($array[0] ?? 0);"
    },
    {
      "file": "critical-stock-by-top-sales3.php",
      "original_line": 91,
      "before": "reset($array)",
      "after": "($array[0] ?? 0)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$qty = ($array[0] ?? 0);"
    },
    {
      "file": "duplicaproducto.php",
      "original_line": 1199,
      "before": "reset($arru)",
      "after": "($arru[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$valu = ($arru[0] ?? null);"
    },
    {
      "file": "fichaproducto-old.php",
      "original_line": 568,
      "before": "reset($arru)",
      "after": "($arru[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$upc = $arru ? ($arru[0] ?? null) : \"\";"
    },
    {
      "file": "fichaproducto-v34.php",
      "original_line": 88,
      "before": "reset($array)",
      "after": "($array[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "return ($array[0] ?? null);"
    },
    {
      "file": "fichaproducto-v34.php",
      "original_line": 78,
      "before": "reset($array)",
      "after": "($array[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "return ($array[0] ?? null);"
    },
    {
      "file": "fichaproducto-v34.php",
      "original_line": 68,
      "before": "reset($data)",
      "after": "($data[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "return ($data[0] ?? null);"
    },
    {
      "file": "fichaproducto-v34.php",
      "original_line": 58,
      "before": "reset($data)",
      "after": "($data[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "return ($data[0] ?? null);"
    },
    {
      "file": "fichaproducto-v34.php",
      "original_line": 46,
      "before": "reset($array)",
      "after": "($array[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "return ($array[0] ?? null);"
    },
    {
      "file": "fichaproducto.php",
      "original_line": 838,
      "before": "reset($arru)",
      "after": "($arru[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$upc = $arru ? ($arru[0] ?? null) : \"\";"
    },
    {
      "file": "fichatarea.php",
      "original_line": 58,
      "before": "reset($arr)",
      "after": "($arr[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$worked = $arr[0] ?? 0;"
    },
    {
      "file": "fichatarea.php",
      "original_line": 45,
      "before": "reset($arr)",
      "after": "($arr[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$tx = ($arr[0] ?? null);"
    },
    {
      "file": "grabacompradesdeindent.php",
      "original_line": 134,
      "before": "reset($idWarehouse)",
      "after": "($idWarehouse[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$idWarehouse = ($idWarehouse[0] ?? null);"
    },
    {
      "file": "grabacompradesdeindent.php",
      "original_line": 76,
      "before": "reset($arrx)",
      "after": "($arrx[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$arrival_warehouse_id = ($arrx[0] ?? null);"
    },
    {
      "file": "monitortareas.php",
      "original_line": 74,
      "before": "reset($iy)",
      "after": "($iy[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$worked = $iy[0] ?? 0;"
    },
    {
      "file": "muestra-clientes-QA.php",
      "original_line": 1233,
      "before": "reset($array)",
      "after": "($array[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$name = $array[0] ?? \"N/P\";"
    },
    {
      "file": "muestra-clientes-QA.php",
      "original_line": 1220,
      "before": "reset($array)",
      "after": "($array[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$name = $array[0] ?? \"N/A\";"
    },
    {
      "file": "muestra-clientes.php",
      "original_line": 1185,
      "before": "reset($array)",
      "after": "($array[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$name = $array[0] ?? \"N/P\";"
    },
    {
      "file": "muestra-clientes.php",
      "original_line": 1172,
      "before": "reset($array)",
      "after": "($array[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$name = $array[0] ?? \"N/A\";"
    },
    {
      "file": "muestra-clientes2.php",
      "original_line": 1238,
      "before": "reset($array)",
      "after": "($array[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$name = $array[0] ?? \"N/P\";"
    },
    {
      "file": "muestra-clientes2.php",
      "original_line": 1225,
      "before": "reset($array)",
      "after": "($array[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$name = $array[0] ?? \"N/A\";"
    },
    {
      "file": "procesatarea.php",
      "original_line": 36,
      "before": "reset($arr)",
      "after": "($arr[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$iii = ($arr[0] ?? null);"
    },
    {
      "file": "procesatarea.php",
      "original_line": 18,
      "before": "reset($arr)",
      "after": "($arr[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "$iii = $arr[0] ?? 0;"
    },
    {
      "file": "product_editor-z.php",
      "original_line": 392,
      "before": "reset($arrayb)",
      "after": "($arrayb[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "\"warranty\" => ($arrayb[0] ?? null)"
    },
    {
      "file": "product_editor.php",
      "original_line": 409,
      "before": "reset($arrayb)",
      "after": "($arrayb[0] ?? null)",
      "reason": "Read first column from a nullable mysqli row without reset().",
      "final_line": "\"warranty\" => ($arrayb[0] ?? null)"
    },
    {
      "file": "cron-product-prices-list-cl-2026.php",
      "original_line": 176,
      "before": "reset($data)",
      "after": "($data[0] ?? null)",
      "reason": "Fetch a numeric PDO row instead of using reset() on a stdClass or false.",
      "final_line": "return ($data[0] ?? null);"
    },
    {
      "file": "cron-product-prices-list-cl-2026.php",
      "original_line": 188,
      "before": "reset($data)",
      "after": "($data[0] ?? null)",
      "reason": "Fetch a numeric PDO row instead of using reset() on a stdClass or false.",
      "final_line": "return ($data[0] ?? null);"
    },
    {
      "file": "cron-product-prices-list-cl-2026.php",
      "original_line": 206,
      "before": "reset($data)",
      "after": "($data[0] ?? null)",
      "reason": "Fetch a numeric PDO row instead of using reset() on a stdClass or false.",
      "final_line": "return ($data[0] ?? null);"
    },
    {
      "file": "cron-product-prices-list-cl-2026.php",
      "original_line": 223,
      "before": "reset($data)",
      "after": "($data[0] ?? null)",
      "reason": "Fetch a numeric PDO row instead of using reset() on a stdClass or false.",
      "final_line": "return ($data[0] ?? null);"
    },
    {
      "file": "cron-product-prices-list-cl-2026.php",
      "original_line": 236,
      "before": "reset($data)",
      "after": "($data[0] ?? null)",
      "reason": "Fetch a numeric PDO row instead of using reset() on a stdClass or false.",
      "final_line": "return ($data[0] ?? null);"
    },
    {
      "file": "cron-product-prices-list-cl-2026.php",
      "original_line": 249,
      "before": "reset($data)",
      "after": "($data[0] ?? null)",
      "reason": "Fetch a numeric PDO row instead of using reset() on a stdClass or false.",
      "final_line": "return ($data[0] ?? null);"
    },
    {
      "file": "sales-map.php",
      "before": "$result = reset($data->results);",
      "after": "$result = is_array($data->results ?? null) ? reset($data->results) : false;",
      "reason": "External API results can be absent; call reset() only on arrays."
    },
    {
      "file": "sales-map3.php",
      "before": "$result = reset($data->results);",
      "after": "$result = is_array($data->results ?? null) ? reset($data->results) : false;",
      "reason": "External API results can be absent; call reset() only on arrays."
    },
    {
      "file": "newitemin.php",
      "original_line": 252,
      "before": "reset($a->items)",
      "reason": "Validate external API collections as arrays before consuming their first item."
    },
    {
      "file": "newitemin.php",
      "original_line": 256,
      "before": "reset($b->items)",
      "reason": "Validate external API collections as arrays before consuming their first item."
    },
    {
      "file": "newitemin.php",
      "original_line": 262,
      "before": "reset($rankedWarehouses)",
      "reason": "Validate external API collections as arrays before consuming their first item."
    },
    {
      "file": "newitemin.php",
      "original_line": 264,
      "before": "reset($firstWarehouse->items)",
      "reason": "Validate external API collections as arrays before consuming their first item."
    },
    {
      "file": "newitemin.php",
      "original_line": 272,
      "before": "reset($warehouse->items)",
      "reason": "Validate external API collections as arrays before consuming their first item."
    },
    {
      "file": "triggers.php",
      "original_line": 212,
      "before": "reset($images)",
      "reason": "Validate external API collections as arrays before consuming their first item."
    }
  ],
  "behavior": [
    "Customer lists use the first nullable result column with N/A for a missing creator and N/P for a missing company. OPS labels and valid zero values are preserved.",
    "Other scalar mysqli lookups read column zero without calling reset() on null/false. Existing display fallbacks remain; numeric totals/rounding use zero when absent.",
    "PDO scalar price helpers fetch numeric rows rather than passing stdClass or false to reset(). The existing fallback cost lookup is preserved.",
    "Map results and image collections are checked as arrays. Warehouse selection normalizes absent API collections and filters warehouses without item arrays before sorting or reset()."
  ],
  "remaining_calls": {
    "count": 53,
    "notes": "Retained calls operate on constructed arrays, filtered/merged arrays, or explicitly guarded external collections. Pointer behavior is retained where arrays use arbitrary keys."
  },
  "validation": {
    "status": "passed",
    "runtime_php_version": "8.3.36",
    "runtime_test": "intranet/tests/root_array_pointer_regression_test.php",
    "regression_cases_passed": 223,
    "groups": {
      "customer_columns_across_three_templates": 51,
      "api_parameter_lookups": 64,
      "pdo_price_helpers_and_fallback": 34,
      "mysqli_price_helpers": 30,
      "stock_quantity_helpers": 12,
      "external_api_arrays": 32
    },
    "php_compatibility": {
      "files": 24,
      "errors": 0,
      "warnings": 0,
      "ruleset": ".phpcs-php83.xml"
    },
    "database_writes": false,
    "network_used_by_runtime_tests": false,
    "syntax": {
      "root_php_files": 886,
      "regression_test_files": 1,
      "total_files": 887,
      "errors": 0,
      "short_open_tag": false,
      "error_reporting": "E_ALL",
      "php_version": "8.3.36"
    }
  },
  "reproduce": "php intranet/tests/root_array_pointer_regression_test.php",
  "limits": "Database and HTTP responses are simulated in regression tests. This is a focused array-pointer/type review of root intranet PHP files, not an authenticated end-to-end validation of every application workflow."
}
