Failed Conditions
Branch master (215e8c)
by Johannes
04:26
created
classes/People.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -30,6 +30,9 @@
 block discarded – undo
30 30
         $this->db = new \ParlDB();
31 31
     }
32 32
 
33
+    /**
34
+     * @param User $user
35
+     */
33 36
     protected function getRegionalReps($user) {
34 37
         return $user->getRegionalReps($this->reg_cons_type, $this->house);
35 38
     }
Please login to merge, or discard this patch.
classes/Renderer/Header.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -110,6 +110,9 @@
 block discarded – undo
110 110
         }
111 111
     }
112 112
 
113
+    /**
114
+     * @param string $linktype
115
+     */
113 116
     private function generate_next_prev_link($nextprev, $linktype) {
114 117
         $link = null;
115 118
         if (isset($nextprev[$linktype]) && isset($nextprev[$linktype]['url'])) {
Please login to merge, or discard this patch.
classes/Search/Normal.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -177,6 +177,9 @@
 block discarded – undo
177 177
         return $items;
178 178
     }
179 179
 
180
+    /**
181
+     * @param \URL $url
182
+     */
180 183
     private function generate_pagination_links($data, $url, $first, $last) {
181 184
         $links = array();
182 185
 
Please login to merge, or discard this patch.
classes/SectionView/SectionView.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -347,6 +347,9 @@
 block discarded – undo
347 347
         return array($bodies, $speeches);
348 348
     }
349 349
 
350
+    /**
351
+     * @param integer $speeches
352
+     */
350 353
     private function annotateSpeeches($data, $bodies, $speeches) {
351 354
         global $THEUSER;
352 355
         $first_speech = null;
Please login to merge, or discard this patch.
tests/PartyTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -118,6 +118,9 @@
 block discarded – undo
118 118
         $this->assertEquals($expected, $position);
119 119
     }
120 120
 
121
+    /**
122
+     * @param string $method
123
+     */
121 124
     private function getAllPositions($method, $party = 'A Party') {
122 125
         $party = new MySociety\TheyWorkForYou\Party($party);
123 126
         $policies = new MySociety\TheyWorkForYou\Policies();
Please login to merge, or discard this patch.
www/docs/admin/report.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -146,6 +146,9 @@
 block discarded – undo
146 146
 
147 147
 
148 148
 
149
+/**
150
+ * @param string $template
151
+ */
149 152
 function get_template_contents($template) {
150 153
     // Fetches the contents of an email template so we can then
151 154
     // display it on the screen.
Please login to merge, or discard this patch.
www/docs/api/api_functions.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -197,6 +197,9 @@  discard block
 block discarded – undo
197 197
 
198 198
 # Output functions
199 199
 
200
+/**
201
+ * @param integer $last_mod
202
+ */
200 203
 function api_output($arr, $last_mod=null) {
201 204
     $output = get_http_var('output');
202 205
     if (!get_http_var('docs')) {
@@ -325,6 +328,11 @@  discard block
 block discarded – undo
325 328
 
326 329
 # Call an API function
327 330
 
331
+/**
332
+ * @param string $function
333
+ * @param string $error
334
+ * @param string $type
335
+ */
328 336
 function api_call_user_func_or_error($function, $params, $error, $type) {
329 337
     if (function_exists($function))
330 338
         call_user_func_array($function, $params);
Please login to merge, or discard this patch.
www/docs/api/api_getConstituencies.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -143,6 +143,10 @@
 block discarded – undo
143 143
  * Given two angles A1 and A2 on a circle expressed in radians, return the
144 144
  * smallest angle between them.
145 145
  */
146
+/**
147
+ * @param double $a1
148
+ * @param double $a2
149
+ */
146 150
 function _api_angle_between($a1, $a2) {
147 151
     if (abs($a1 - $a2) > M_PI) return 2*M_PI - abs($a1 - $a2);
148 152
     return abs($a1 - $a2);
Please login to merge, or discard this patch.
www/docs/api/api_getHansard.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -36,11 +36,17 @@  discard block
 block discarded – undo
36 36
     ));
37 37
 }
38 38
 
39
+/**
40
+ * @param string $type
41
+ */
39 42
 function _api_getHansard_date($type, $d) {
40 43
     $args = array ('date' => $d);
41 44
     $LIST = _api_getListObject($type);
42 45
     $LIST->display('date', $args, 'api');
43 46
 }
47
+/**
48
+ * @param string $type
49
+ */
44 50
 function _api_getHansard_year($type, $y) {
45 51
     $args = array('year' => $y);
46 52
     $LIST = _api_getListObject($type);
@@ -98,6 +104,9 @@  discard block
 block discarded – undo
98 104
     $LIST->display('search', $args, 'api');
99 105
 }
100 106
 
107
+/**
108
+ * @param string $type
109
+ */
101 110
 function _api_getHansard_gid($type, $gid) {
102 111
     $args = array('gid' => $gid);
103 112
     $LIST = _api_getListObject($type);
@@ -112,6 +121,9 @@  discard block
 block discarded – undo
112 121
     }
113 122
 }
114 123
 
124
+/**
125
+ * @param string $type
126
+ */
115 127
 function _api_getHansard_department($type, $dept) {
116 128
     $args = array('department' => $dept);
117 129
     $LIST = _api_getListObject($type);
Please login to merge, or discard this patch.