Skip to content

Commit 79f03ab

Browse files
committed
void return
1 parent a064af6 commit 79f03ab

File tree

6 files changed

+6
-28
lines changed

6 files changed

+6
-28
lines changed

phpcs.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@
1313

1414
<rule ref="./vendor/doctrine/coding-standard/lib/Doctrine/ruleset.xml">
1515
<exclude name="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming.SuperfluousSuffix"/>
16-
<exclude name="SlevomatCodingStandard.Commenting.UselessInheritDocComment.UselessInheritDocComment"/>
1716
</rule>
1817
</ruleset>

src/Command/ClearSessionCommand.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ public function __construct(EntityManagerInterface $entityManager)
2424
parent::__construct();
2525
}
2626

27-
/**
28-
* @inheritDoc
29-
*/
3027
protected function configure() : void
3128
{
3229
$this->setName('shapecode:doctrine-session:clear');

src/Entity/SessionInterface.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
use DateTime;
88

9-
/**
10-
* Interface SessionInterface
11-
*/
129
interface SessionInterface
1310
{
1411
public function getSessionId() : string;

src/Repository/SessionRepository.php

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,23 @@ public function findOneBySessionId(string $sessionId) : ?SessionInterface
2020
return $session;
2121
}
2222

23-
/**
24-
* @return mixed
25-
*/
26-
public function purge()
23+
public function purge() : void
2724
{
2825
$qb = $this->createQueryBuilder('r');
2926
$qb->delete();
3027
$qb->where($qb->expr()->lt('r.endOfLife', ':endOfLife'));
3128
$qb->setParameter('endOfLife', new DateTime(), Types::DATETIME_MUTABLE);
3229

33-
return $qb->getQuery()->execute();
30+
$qb->getQuery()->execute();
3431
}
3532

36-
/**
37-
* @return mixed
38-
*/
39-
public function destroy(string $sessionId)
33+
public function destroy(string $sessionId) : void
4034
{
4135
$qb = $this->createQueryBuilder('r');
4236
$qb->delete();
4337
$qb->where($qb->expr()->eq('r.sessionId', ':session_id'));
4438
$qb->setParameter('session_id', $sessionId, Types::STRING);
4539

46-
return $qb->getQuery()->execute();
40+
$qb->getQuery()->execute();
4741
}
4842
}

src/Repository/SessionRepositoryInterface.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,7 @@ interface SessionRepositoryInterface extends ObjectRepository
1111
{
1212
public function findOneBySessionId(string $sessionId) : ?SessionInterface;
1313

14-
/**
15-
* @return mixed
16-
*/
17-
public function purge();
14+
public function purge() : void;
1815

19-
/**
20-
* @return mixed
21-
*/
22-
public function destroy(string $sessionId);
16+
public function destroy(string $sessionId) : void;
2317
}

src/Session/Handler/DoctrineHandler.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ public function __construct(EntityManagerInterface $entityManager)
2323
$this->entityManager = $entityManager;
2424
}
2525

26-
/**
27-
* @inheritDoc
28-
*/
2926
public function close() : bool
3027
{
3128
return true;

0 commit comments

Comments
 (0)