]> git.immae.eu Git - github/wallabag/wallabag.git/commit - tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php
Avoid returning objects passed by reference.
authorJerome Charaoui <jerome@riseup.net>
Wed, 7 Dec 2016 03:17:44 +0000 (22:17 -0500)
committerJeremy Benoist <jbenoist@20minutes.fr>
Thu, 1 Jun 2017 07:43:01 +0000 (09:43 +0200)
commit7aba665e484c5c36ee029219a999a427d864ff22
tree9ac57748d91cee32848b5e961e293e1c9a1fa61f
parent2a0eec07a5630401a9ceb7add65604f79238f10c
Avoid returning objects passed by reference.

Objects are always passed by reference, so it doesn't make sense to
return an object which is passed by reference as it will always be the
same object. This change makes the code a bit more readable.
src/Wallabag/ApiBundle/Controller/EntryRestController.php
src/Wallabag/CoreBundle/Controller/EntryController.php
src/Wallabag/CoreBundle/Helper/ContentProxy.php
src/Wallabag/ImportBundle/Import/AbstractImport.php
src/Wallabag/ImportBundle/Import/BrowserImport.php
src/Wallabag/ImportBundle/Import/InstapaperImport.php
src/Wallabag/ImportBundle/Import/PinboardImport.php
src/Wallabag/ImportBundle/Import/PocketImport.php
src/Wallabag/ImportBundle/Import/ReadabilityImport.php
src/Wallabag/ImportBundle/Import/WallabagImport.php
tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php