FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Merge pull request #196 from HassanAlthaf/patch-2 · JavaDevl/DesignPatternsPHP@3663603 · GitHub

Commit 3663603

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

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎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)

Back | FazBrowse Home | New Git URL