Skip to content

Commit

Permalink
Code Sniffer: manual fix "Each index in a multi-line array must be on…
Browse files Browse the repository at this point in the history
… a new line"
  • Loading branch information
connorhu committed Jan 28, 2024
1 parent 2232b49 commit a58c338
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions tests/Types/ZendDateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@ public function setUp(): void
]);

$this->em->persist(new ZendDate(1, new Zend_Date([
'year' => 2012, 'month' => 11, 'day' => 10,
'hour' => 9, 'minute' => 8, 'second' => 7,
'year' => 2012,
'month' => 11,
'day' => 10,
'hour' => 9,
'minute' => 8,
'second' => 7,
])));

$this->em->flush();
Expand All @@ -69,16 +73,24 @@ public function testGetZendDate()

$this->assertInstanceOf('Zend_Date', $entity->date);
$this->assertTrue($entity->date->equals(new Zend_Date([
'year' => 2012, 'month' => 11, 'day' => 10,
'hour' => 9, 'minute' => 8, 'second' => 7,
'year' => 2012,
'month' => 11,
'day' => 10,
'hour' => 9,
'minute' => 8,
'second' => 7,
])));
}

public function testSetZendDate()

Check failure on line 85 in tests/Types/ZendDateTest.php

View workflow job for this annotation

GitHub Actions / coding-standards / Coding Standards (8.3)

Method \DoctrineExtensions\Tests\Types\ZendDateTest::testSetZendDate() does not have void return type hint.
{
$zendDate = new Zend_Date([
'year' => 2012, 'month' => 11, 'day' => 10,
'hour' => 9, 'minute' => 8, 'second' => 7,
'year' => 2012,
'month' => 11,
'day' => 10,
'hour' => 9,
'minute' => 8,
'second' => 7,
]);

$entity = new ZendDate(2, $zendDate);
Expand Down

0 comments on commit a58c338

Please sign in to comment.