Showing 2 of 4 total issues
File PasswordGenerator.php
has 801 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* The Mi11er Library
*
* @package Mi11er\Library
Consider simplifying this complex logical expression. Open
Open
if ($offset > 0 && // We're not at the start.
$matchEnd !== mb_strlen($this->title, 'UTF-8') && // A single word title is not lower case.
preg_match($this->smallWords, $matches[0]) && // Small words are lower case.
$this->getChar($offset - 2) !== ':' && // Words after a colon are not lower case.
! preg_match('/[^\s-]/', $this->getChar($offset - 1)) &&