| @@ 312-317 (lines=6) @@ | ||
| 309 | $min = ''; |
|
| 310 | foreach ($this->getTags() as $tag) { |
|
| 311 | foreach ($tag->getNotes() as $note) { |
|
| 312 | foreach ($note->getCommits() as $commit) { |
|
| 313 | $date = $commit->getDate(); |
|
| 314 | if (!$min || strcmp($date, $min) < 0) { |
|
| 315 | $min = $date; |
|
| 316 | } |
|
| 317 | } |
|
| 318 | } |
|
| 319 | } |
|
| 320 | if ($min) { |
|
| @@ 146-153 (lines=8) @@ | ||
| 143 | public function findDate() |
|
| 144 | { |
|
| 145 | $max = ''; |
|
| 146 | foreach ($this->getNotes() as $note) { |
|
| 147 | foreach ($note->getCommits() as $commit) { |
|
| 148 | $date = $commit->getDate(); |
|
| 149 | if (strcmp($date, $max) > 0) { |
|
| 150 | $max = $date; |
|
| 151 | } |
|
| 152 | } |
|
| 153 | } |
|
| 154 | ||
| 155 | return $max ?: null; |
|
| 156 | } |
|