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