src/Object/Tests/ObjectUrlTest.php
Method testObjectUrlComparison
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testObjectUrlComparison()
{
$this->assertFalse(
(
new ObjectUrl(
Missing class import via use statement (line '241', column '39'). Open
Open
$url->setCreationDate(new \DateTimeImmutable('@1451606400'))->getCreationDate()->format('Y-m-d')
- Read upRead up
- Exclude checks
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();
}