@@ 62-70 (lines=9) @@ | ||
59 | protected function getStats () : array |
|
60 | { |
|
61 | if (!$this->_StatsDone) : |
|
62 | foreach ($this->_Stats['tally'] as &$Roundvalue) : |
|
63 | foreach ($Roundvalue as $ArcKey => &$Arcvalue) : |
|
64 | foreach ($Arcvalue as $key => &$value) : |
|
65 | if ($key === 'from' || $key === 'to') : |
|
66 | $value = $this->_selfElection->getCandidateObjectFromKey($value)->getName(); |
|
67 | endif; |
|
68 | endforeach; |
|
69 | endforeach; |
|
70 | endforeach; |
|
71 | ||
72 | foreach ($this->_Stats['arcs'] as $ArcKey => &$Arcvalue) : |
|
73 | foreach ($Arcvalue as $key => &$value) : |
|
@@ 72-78 (lines=7) @@ | ||
69 | endforeach; |
|
70 | endforeach; |
|
71 | ||
72 | foreach ($this->_Stats['arcs'] as $ArcKey => &$Arcvalue) : |
|
73 | foreach ($Arcvalue as $key => &$value) : |
|
74 | if ($key === 'from' || $key === 'to') : |
|
75 | $value = $this->_selfElection->getCandidateObjectFromKey($value)->getName(); |
|
76 | endif; |
|
77 | endforeach; |
|
78 | endforeach; |
|
79 | ||
80 | $this->_StatsDone = true; |
|
81 | endif; |