Posted By

dimkalinux on 05/29/13


Tagged


Versions (?)

updateCover


 / Published in: PHP
 

  1.  
  2. protected function updateCover(Book $book, Array $bookSource) {
  3. // Old.
  4. if (!empty($bookSource["coverPath"]) && $bookSource["coverPath"] == "bla-bla" && count($bookSource) > 7) {
  5. $a = 5;
  6. }
  7.  
  8. // New.
  9. if (!empty($bookSource["coverPath"]))
  10. if ($bookSource["coverPath"] == "bla-bla")
  11. if (count($bookSource) > 7)
  12. $a = 5;
  13. }

Report this snippet  

You need to login to post a comment.