@@ 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 | } |
@@ 313-318 (lines=6) @@ | ||
310 | $min = ''; |
|
311 | foreach ($this->getTags() as $tag) { |
|
312 | foreach ($tag->getNotes() as $note) { |
|
313 | foreach ($note->getCommits() as $commit) { |
|
314 | $date = $commit->getDate(); |
|
315 | if (!$min || strcmp($date, $min) < 0) { |
|
316 | $min = $date; |
|
317 | } |
|
318 | } |
|
319 | } |
|
320 | } |
|
321 | if ($min) { |