From 593d9bb1a487821c2fbe15eb419260160bfd407c Mon Sep 17 00:00:00 2001 From: Hassan Althaf Date: Fri, 18 Dec 2015 14:39:31 +0530 Subject: [PATCH] Removed returns on `addBook` and `removeBook` --- Behavioral/Iterator/BookList.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Behavioral/Iterator/BookList.php b/Behavioral/Iterator/BookList.php index 9c0b9d4..6773f9b 100644 --- a/Behavioral/Iterator/BookList.php +++ b/Behavioral/Iterator/BookList.php @@ -19,8 +19,6 @@ class BookList implements \Countable public function addBook(Book $book) { $this->books[] = $book; - - return $this->count(); } public function removeBook(Book $bookToRemove) @@ -31,8 +29,6 @@ class BookList implements \Countable unset($this->books[$key]); } } - - return $this->count(); } public function count()