Showing 2 of 2 total issues
File Validator.php
has 313 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/*
* This file is part of the postal-code-validator package
*
* @author Joe Huss <detain@interserver.net>
Avoid deeply nested control flow statements. Open
Open
if (trim($lines[$x + 1]) != '|-') {
$x++;
if (trim(mb_substr($lines[$x], 1)) != '') {
$notes .= ($years != '' ? $years.' ' : '') . trim(mb_substr($lines[$x], 1));
}