"PHP" / Говнокод #26668 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
public function isSpecial()
{
    $special_ids = array(
        2222,
        3028,
        3333,
        5555,
        5702,
        6666,
        6700,
        7654,
        7777,
        8451,
        11225
    );

    return in_array((int)$this->getId(), $special_ids);
    //return $this->getId() == 2222 || $this->getId() == 3028 || $this->getId() == 3333 || $this->getId() == 5555 || $this->getId() == 5702;
}

https://github.com/wiistriker/govnokod_legacy/blob/master/modules/quoter/models/quote.php
Рекурсивный говнокод.

Запостил: gost gost, (Updated )

Комментарии (9) RSS

Добавить комментарий

Из-за тебя ушел bormand, guest!

    А не использовать ли нам bbcode?


    8