Index: trunk/extensions/SecurePoll/includes/talliers/Tallier.php |
— | — | @@ -29,6 +29,11 @@ |
30 | 30 | } |
31 | 31 | } |
32 | 32 | |
| 33 | + /** |
| 34 | + * @param $context SecurePoll_Context |
| 35 | + * @param $electionTallier SecurePoll_ElectionTallier |
| 36 | + * @param $question SecurePoll_Question |
| 37 | + */ |
33 | 38 | function __construct( $context, $electionTallier, $question ) { |
34 | 39 | $this->context = $context; |
35 | 40 | $this->question = $question; |
Index: trunk/extensions/SecurePoll/includes/talliers/PluralityTallier.php |
— | — | @@ -6,6 +6,11 @@ |
7 | 7 | class SecurePoll_PluralityTallier extends SecurePoll_Tallier { |
8 | 8 | var $tally = array(); |
9 | 9 | |
| 10 | + /** |
| 11 | + * @param $context SecurePoll_Context |
| 12 | + * @param $electionTallier SecurePoll_ElectionTallier |
| 13 | + * @param $question SecurePoll_Question |
| 14 | + */ |
10 | 15 | function __construct( $context, $electionTallier, $question ) { |
11 | 16 | parent::__construct( $context, $electionTallier, $question ); |
12 | 17 | foreach ( $question->getOptions() as $option ) { |
Index: trunk/extensions/SecurePoll/includes/entities/Election.php |
— | — | @@ -176,6 +176,7 @@ |
177 | 177 | $wgLang->timeanddate( $date ) |
178 | 178 | ); |
179 | 179 | } |
| 180 | + |
180 | 181 | # Blocked |
181 | 182 | $notBlocked = $this->getProperty( 'not-blocked' ); |
182 | 183 | $isBlocked = !empty( $props['blocked'] ); |
Index: trunk/extensions/SecurePoll/includes/main/Context.php |
— | — | @@ -61,7 +61,10 @@ |
62 | 62 | } |
63 | 63 | } |
64 | 64 | |
65 | | - /** Get the ParserOptions instance */ |
| 65 | + /** |
| 66 | + * Get the ParserOptions instance |
| 67 | + * @return ParserOptions |
| 68 | + */ |
66 | 69 | function getParserOptions() { |
67 | 70 | if ( !$this->parserOptions ) { |
68 | 71 | $this->parserOptions = new ParserOptions; |
— | — | @@ -69,7 +72,10 @@ |
70 | 73 | return $this->parserOptions; |
71 | 74 | } |
72 | 75 | |
73 | | - /** Get the SecurePoll_Store instance */ |
| 76 | + /** |
| 77 | + * Get the SecurePoll_Store instance |
| 78 | + * @return SecurePoll_Store |
| 79 | + */ |
74 | 80 | function getStore() { |
75 | 81 | if ( !isset( $this->store ) ) { |
76 | 82 | $this->store = new $this->storeClass; |
— | — | @@ -167,6 +173,7 @@ |
168 | 174 | /** |
169 | 175 | * Get a SecurePoll_Random instance. This provides cryptographic random |
170 | 176 | * number generation. |
| 177 | + * @return SecurePoll_Random |
171 | 178 | */ |
172 | 179 | function getRandom() { |
173 | 180 | if ( !$this->random ) { |
— | — | @@ -238,6 +245,7 @@ |
239 | 246 | /** |
240 | 247 | * Get a database object, or throw an exception if the current store object |
241 | 248 | * does not support database operations. |
| 249 | + * @return DatabaseBase |
242 | 250 | */ |
243 | 251 | function getDB() { |
244 | 252 | if ( !isset( $this->db ) ) { |
Index: trunk/extensions/SecurePoll/resources/SecurePoll.css |
— | — | @@ -47,21 +47,21 @@ |
48 | 48 | } |
49 | 49 | |
50 | 50 | .securepoll-table { |
51 | | - margin: 1em 1em 1em 0; |
52 | | - background: #f9f9f9; |
53 | | - border: thin #aaa solid; |
54 | | - border-collapse: collapse; |
| 51 | + margin: 1em 1em 1em 0; |
| 52 | + background: #f9f9f9; |
| 53 | + border: thin #aaa solid; |
| 54 | + border-collapse: collapse; |
55 | 55 | } |
56 | 56 | .securepoll-table th, .securepoll-table td { |
57 | | - border: thin #aaa solid; |
58 | | - padding: 0.4em; |
| 57 | + border: thin #aaa solid; |
| 58 | + padding: 0.4em; |
59 | 59 | } |
60 | 60 | .securepoll-table th { |
61 | | - background: #f2f2f2; |
62 | | - text-align: center; |
| 61 | + background: #f2f2f2; |
| 62 | + text-align: center; |
63 | 63 | } |
64 | 64 | .securepoll-table caption { |
65 | | - font-weight: bold; |
| 65 | + font-weight: bold; |
66 | 66 | } |
67 | 67 | |
68 | 68 | .securepoll-ballot-table { |
— | — | @@ -71,14 +71,14 @@ |
72 | 72 | font-weight: bold; |
73 | 73 | text-align: center; |
74 | 74 | border: thin #999 solid; |
75 | | - padding: 0 1.5em 0 1.5em; |
| 75 | + padding: 0 1.5em; |
76 | 76 | } |
77 | 77 | .securepoll-ballot-table td { |
78 | 78 | text-align: center; |
79 | 79 | border-left: thin #999 solid; |
80 | 80 | border-right: thin #999 solid; |
81 | 81 | border-bottom: thin #bbb dotted; |
82 | | - padding: 0 1.5em 0 1.5em; |
| 82 | + padding: 0 1.5em; |
83 | 83 | } |
84 | 84 | .securepoll-ballot-table td.securepoll-ballot-optlabel { /* High specificity */ |
85 | 85 | text-align: left; |