]> git.immae.eu Git - github/shaarli/Shaarli.git/commit
Add strict types for bookmarks management 1583/head
authorArthurHoaro <arthur@hoa.ro>
Fri, 2 Oct 2020 15:50:59 +0000 (17:50 +0200)
committerArthurHoaro <arthur@hoa.ro>
Tue, 13 Oct 2020 11:50:11 +0000 (13:50 +0200)
commitefb7d21b52eb033530e80e5e49d175e6e3b031f4
tree4f34052788a08be1a30cb88c3339ae14e0b7c4da
parent29c31b7ec6ca48ba37b7eb6da650931fd0cb7164
Add strict types for bookmarks management

Parameters typing and using strict types overall increase the codebase
quality by enforcing the a given parameter will have the expected type.

It also removes the need to unnecessary unit tests checking methods
behavior with invalid input.
19 files changed:
application/api/ApiUtils.php
application/api/controllers/Links.php
application/bookmark/Bookmark.php
application/bookmark/BookmarkArray.php
application/bookmark/BookmarkFileService.php
application/bookmark/BookmarkFilter.php
application/bookmark/BookmarkIO.php
application/bookmark/BookmarkInitializer.php
application/bookmark/BookmarkServiceInterface.php
application/feed/FeedBuilder.php
application/front/controller/admin/ThumbnailsController.php
application/security/LoginManager.php
tests/HistoryTest.php
tests/bookmark/BookmarkArrayTest.php
tests/bookmark/BookmarkFileServiceTest.php
tests/bookmark/BookmarkTest.php
tests/front/controller/admin/ManageShaareControllerTest/DeleteBookmarkTest.php
tests/front/controller/admin/ManageShaareControllerTest/SaveBookmarkTest.php
tests/front/controller/admin/ThumbnailsControllerTest.php