mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-25 17:21:19 +02:00
Merge pull request #196 from HassanAlthaf/patch-2
Removed returns on `addBook` and `removeBook`
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user