[CLEANUP] Replace deeply nested if structures by guard clauses 57/39257/3
authorBernhard Kraft <kraftb@think-open.at>
Mon, 4 May 2015 13:21:49 +0000 (15:21 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 5 May 2015 19:28:40 +0000 (21:28 +0200)
commitafba74c3fc974f4eac53e4f935a5985928a46fbf
treeb9dbf53e9876149f61fc1ddbe517b07974c92eaa
parentc39065e4df8f28ee7bff59fbca08652ccfb1bd45
[CLEANUP] Replace deeply nested if structures by guard clauses

There are some deeply nested if-structures in the versioning
extension, which get replaced with guard clauses with early returns
in this commit.

Releases: master
Resolves: #66780
Change-Id: Ib26e1ccf79e0ad3938c5c995bc013545ace863a6
Reviewed-on: http://review.typo3.org/39257
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/version/Classes/Hook/DataHandlerHook.php