apparat/object

View on GitHub
src/Object/Tests/ObjectUrlTest.php

Summary

Maintainability
A
1 hr
Test Coverage

Method testObjectUrlComparison has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testObjectUrlComparison()
    {
        $this->assertFalse(
            (
            new ObjectUrl(
Severity: Minor
Found in src/Object/Tests/ObjectUrlTest.php - About 1 hr to fix

    Missing class import via use statement (line '241', column '39').
    Open

                $url->setCreationDate(new \DateTimeImmutable('@1451606400'))->getCreationDate()->format('Y-m-d')
    Severity: Minor
    Found in src/Object/Tests/ObjectUrlTest.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    There are no issues that match your filters.

    Category
    Status