Skip to content

Commit 3663603

Browse files
author
Dominik Liebler
committed
Merge pull request DesignPatternsPHP#196 from HassanAlthaf/patch-2
Removed returns on `addBook` and `removeBook`
2 parents 2c655a5 + 593d9bb commit 3663603

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Behavioral/Iterator/BookList.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ public function getBook($bookNumberToGet)
1919
public function addBook(Book $book)
2020
{
2121
$this->books[] = $book;
22-
23-
return $this->count();
2422
}
2523

2624
public function removeBook(Book $bookToRemove)
@@ -31,8 +29,6 @@ public function removeBook(Book $bookToRemove)
3129
unset($this->books[$key]);
3230
}
3331
}
34-
35-
return $this->count();
3632
}
3733

3834
public function count()

0 commit comments

Comments
 (0)