Skip to content

Commit

Permalink
style: phpcs fixes
Browse files Browse the repository at this point in the history
Issues fixed:
      4 - Expected a space after cast statement
  • Loading branch information
keevan committed May 10, 2024
1 parent 3b51a37 commit 8c048e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/generator_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ public function test_create_session() {
$this->assertIsArray($session2->sessiondates);
$this->assertCount(1, $session2->sessiondates);
$this->assertSame($session2->id, $session2->sessiondates[0]->sessionid);
$this->assertSame((string)($now - 3 * DAYSECS), $session2->sessiondates[0]->timestart);
$this->assertSame((string)($now - 2 * DAYSECS), $session2->sessiondates[0]->timefinish);
$this->assertSame((string) ($now - 3 * DAYSECS), $session2->sessiondates[0]->timestart);
$this->assertSame((string) ($now - 2 * DAYSECS), $session2->sessiondates[0]->timefinish);

$now = time();
$this->setCurrentTimeStart();
Expand Down Expand Up @@ -174,7 +174,7 @@ public function test_create_session() {
$this->assertIsArray($session3->sessiondates);
$this->assertCount(1, $session3->sessiondates);
$this->assertSame($session3->id, $session3->sessiondates[0]->sessionid);
$this->assertSame((string)($now + 10 * DAYSECS), $session3->sessiondates[0]->timestart);
$this->assertSame((string)($now + 11 * DAYSECS), $session3->sessiondates[0]->timefinish);
$this->assertSame((string) ($now + 10 * DAYSECS), $session3->sessiondates[0]->timestart);
$this->assertSame((string) ($now + 11 * DAYSECS), $session3->sessiondates[0]->timefinish);
}
}

0 comments on commit 8c048e2

Please sign in to comment.