Skip to content

Commit adb0d9e

Browse files
authored
removed extra return statements (#37)
1 parent aad7377 commit adb0d9e

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/Codeception/Module/Symfony.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,6 @@ public function logout()
812812

813813
if (!$container->has('session')) {
814814
$this->fail("Symfony container doesn't have 'session' service");
815-
return;
816815
}
817816
$session = $this->grabService('session');
818817

@@ -851,7 +850,6 @@ public function seeInSession($attrib, $value = null)
851850

852851
if (!$container->has('session')) {
853852
$this->fail("Symfony container doesn't have 'session' service");
854-
return;
855853
}
856854

857855
$session = $this->grabService('session');
@@ -884,7 +882,6 @@ public function amOnAction($action, $params = [])
884882

885883
if (!$container->has('router')) {
886884
$this->fail("Symfony container doesn't have 'router' service");
887-
return;
888885
}
889886

890887
$router = $this->grabService('router');
@@ -924,7 +921,6 @@ public function seeAuthentication($remembered = false)
924921

925922
if (!$container->has('security.helper')) {
926923
$this->fail("Symfony container doesn't have 'security.helper' service");
927-
return;
928924
}
929925

930926
$security = $this->grabService('security.helper');
@@ -933,7 +929,6 @@ public function seeAuthentication($remembered = false)
933929

934930
if (!$user) {
935931
$this->fail('There is no user in session');
936-
return;
937932
}
938933

939934
if ($remembered) {
@@ -961,7 +956,6 @@ public function seeUserHasRole($role)
961956

962957
if (!$container->has('security.helper')) {
963958
$this->fail("Symfony container doesn't have 'security.helper' service");
964-
return;
965959
}
966960

967961
$security = $this->grabService('security.helper');
@@ -970,7 +964,6 @@ public function seeUserHasRole($role)
970964

971965
if (!$user) {
972966
$this->fail('There is no user in session');
973-
return;
974967
}
975968

976969
$this->assertTrue(
@@ -1000,7 +993,6 @@ public function dontSeeAuthentication($remembered = true)
1000993

1001994
if (!$container->has('security.helper')) {
1002995
$this->fail("Symfony container doesn't have 'security.helper' service");
1003-
return;
1004996
}
1005997

1006998
$security = $this->grabService('security.helper');
@@ -1034,7 +1026,6 @@ public function seeCurrentActionIs($action)
10341026

10351027
if (!$container->has('router')) {
10361028
$this->fail("Symfony container doesn't have 'router' service");
1037-
return;
10381029
}
10391030

10401031
$router = $this->grabService('router');
@@ -1059,7 +1050,6 @@ public function amLoggedInAs(UserInterface $user, $firewallName = 'main', $firew
10591050
$container = $this->_getContainer();
10601051
if (!$container->has('session')) {
10611052
$this->fail("Symfony container doesn't have 'session' service");
1062-
return;
10631053
}
10641054

10651055
$session = $this->grabService('session');

0 commit comments

Comments
 (0)