MatthewMi11er/mi11er-library

View on GitHub

Showing 4 of 4 total issues

File PasswordGenerator.php has 801 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/**
 * The Mi11er Library
 *
 * @package    Mi11er\Library
Severity: Major
Found in src/mi11er-library/Security/PasswordGenerator.php - About 1 day to fix

    Consider simplifying this complex logical expression.
    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)) &&
    Severity: Major
    Found in src/mi11er-library/Text/Formatters/TitleCaseFormatter.php - About 1 hr to fix

      Doc-block of $timezone in __construct is phpdoc param type \DateTimeZone which is not a permitted replacement of the nullable param type ?\DateTimeZone declared in the signature ('?T' should be documented as 'T|null' or '?T')
      Open

           * @param PhpDateTimeZone $timezone A DateTimeZone object representing the timezone of $time.

      Saw an @param annotation for compare_date, but it was not found in the param list of function __construct(string $format, \DateTimeInterface $compareDateTime)
      Open

           * @param PhpDateTimeInterface    $compare_date A date to compare to for relative output.
      Severity
      Category
      Status
      Source
      Language