| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 71 | public function findSpecialDateByMonthNumber($year, $month) |
||
| 72 | { |
||
| 73 | $items = $this->getAllDates($year); |
||
| 74 | $found = []; |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @var $item SpecialDateInterface |
||
| 78 | */ |
||
| 79 | foreach ($items as $key => $item) { |
||
| 80 | if ((int)$month === (int)$item->getStartDate()->format('m')) { |
||
| 81 | $found[$key] = $item; |
||
| 82 | } |
||
| 83 | } |
||
| 84 | |||
| 85 | return $found; |
||
| 86 | } |
||
| 87 | } |
||
| 88 |