Ensure that the return keyword is not used when method returns void type (#5878)
Ensure that the return keyword is not used when method returns void type (#5878)

* Ensure that the return keyword is not used when method returns void type

* Move inline variable assignment to improve readability
Naktibalda/Codeception,Naktibalda/Codeception,Codeception/Codeception,Codeception/Codeception,Naktibalda/Codeception