detain/zip-zapper

View on GitHub

Showing 2 of 2 total issues

File Validator.php has 313 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/*
 * This file is part of the postal-code-validator package
 *
 * @author Joe Huss <detain@interserver.net>
Severity: Minor
Found in src/Validator.php - About 3 hrs to fix

    Avoid deeply nested control flow statements.
    Open

                    if (trim($lines[$x + 1]) != '|-') {
                        $x++;
                        if (trim(mb_substr($lines[$x], 1)) != '') {
                            $notes .= ($years != '' ? $years.' ' : '') . trim(mb_substr($lines[$x], 1));
                        }
    Severity: Major
    Found in bin/parse.php - About 45 mins to fix
      Severity
      Category
      Status
      Source
      Language