@@ -83,6 +83,7 @@ discard block |
||
83 | 83 | |
84 | 84 | /** |
85 | 85 | * Recursive function to save children of a given node as DocContent items. |
86 | + * @param integer $child_priority |
|
86 | 87 | */ |
87 | 88 | public function saveChildren($node, $parent_id, $child_priority) |
88 | 89 | { |
@@ -189,6 +190,7 @@ discard block |
||
189 | 190 | |
190 | 191 | /** |
191 | 192 | * Get top-level meta information from the bill. |
193 | + * @param string $tag |
|
192 | 194 | */ |
193 | 195 | public function getBillMeta($tag) |
194 | 196 | { |
@@ -233,6 +235,7 @@ discard block |
||
233 | 235 | /** |
234 | 236 | * Check attributes are set |
235 | 237 | * Accepts single string or array of strings. |
238 | + * @param string $attribute |
|
236 | 239 | */ |
237 | 240 | protected function checkAttr($attribute) |
238 | 241 | { |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace App; |
4 | 4 | |
5 | -use Illuminate\Database\Eloquent\Model; |
|
6 | - |
|
7 | 5 | /** |
8 | 6 | * Import Class for House Bill XML |
9 | 7 | * Not pretty at the moment, but it works. |
@@ -44,6 +44,10 @@ discard block |
||
44 | 44 | } |
45 | 45 | |
46 | 46 | //Create backups directory if it doesn't exist |
47 | + |
|
48 | + /** |
|
49 | + * @param string $backups_path |
|
50 | + */ |
|
47 | 51 | public function setup($backups_path) |
48 | 52 | { |
49 | 53 | if (!file_exists($backups_path)) { |
@@ -53,6 +57,10 @@ discard block |
||
53 | 57 | } |
54 | 58 | |
55 | 59 | //Run mysqldump and include timestamp in file name |
60 | + |
|
61 | + /** |
|
62 | + * @param string $backups_path |
|
63 | + */ |
|
56 | 64 | public function backup($backups_path) |
57 | 65 | { |
58 | 66 | $creds = yaml_parse_file(app_path().'/config/creds.yml'); |
@@ -65,6 +73,11 @@ discard block |
||
65 | 73 | } |
66 | 74 | |
67 | 75 | //Limit number of saved backups |
76 | + |
|
77 | + /** |
|
78 | + * @param string $backups_path |
|
79 | + * @param integer $total_backups |
|
80 | + */ |
|
68 | 81 | public function cleanup($backups_path, $total_backups) |
69 | 82 | { |
70 | 83 | $files = glob($backups_path.'/*.sql'); |
@@ -502,6 +502,9 @@ |
||
502 | 502 | return $path; |
503 | 503 | } |
504 | 504 | |
505 | + /** |
|
506 | + * @param DocContent $doc_content |
|
507 | + */ |
|
505 | 508 | public function indexContent($doc_content) |
506 | 509 | { |
507 | 510 | $es = self::esConnect(); |
@@ -125,9 +125,6 @@ discard block |
||
125 | 125 | * |
126 | 126 | * Validate input against merged rules |
127 | 127 | * |
128 | - * @param array $attributes |
|
129 | - * |
|
130 | - * @return bool |
|
131 | 128 | */ |
132 | 129 | public function validate() |
133 | 130 | { |
@@ -400,6 +397,9 @@ discard block |
||
400 | 397 | return true; |
401 | 398 | } |
402 | 399 | |
400 | + /** |
|
401 | + * @param string $role |
|
402 | + */ |
|
403 | 403 | public static function findUsersByRole($role) |
404 | 404 | { |
405 | 405 | if (!static::isValidRole($role)) { |
@@ -10,7 +10,6 @@ |
||
10 | 10 | use Illuminate\Support\MessageBag; |
11 | 11 | use Illuminate\Database\Eloquent\Model; |
12 | 12 | use Illuminate\Database\Eloquent\SoftDeletes; |
13 | - |
|
14 | 13 | use App\GroupMember; |
15 | 14 | use App\Role; |
16 | 15 | use App\Permission; |
@@ -14,7 +14,7 @@ |
||
14 | 14 | /** |
15 | 15 | * Helper function to return error as growl message. |
16 | 16 | * |
17 | - * @param string $message |
|
17 | + * @param string $messages |
|
18 | 18 | * @param string $severity |
19 | 19 | * @param array $params |
20 | 20 | * |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | * |
147 | 147 | * @param User $user |
148 | 148 | * |
149 | - * @return array $response |
|
149 | + * @return \Illuminate\Http\JsonResponse $response |
|
150 | 150 | */ |
151 | 151 | public function editEmail(User $user) |
152 | 152 | { |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | * |
178 | 178 | * @param void |
179 | 179 | * |
180 | - * @return JSON user |
|
180 | + * @return \Illuminate\Http\JsonResponse user |
|
181 | 181 | */ |
182 | 182 | public function getCurrent() |
183 | 183 | { |
@@ -429,7 +429,6 @@ discard block |
||
429 | 429 | * |
430 | 430 | * Handles POST requests for email verifications |
431 | 431 | * |
432 | - * @param string $token |
|
433 | 432 | */ |
434 | 433 | public function postVerify() |
435 | 434 | { |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | private static $divisor = 0; |
39 | 39 | |
40 | 40 | /** |
41 | - * @return the CSS needed to display diff/overlap results in html |
|
41 | + * @return string CSS needed to display diff/overlap results in html |
|
42 | 42 | */ |
43 | 43 | public static function getCSS() |
44 | 44 | { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | * @param string $s |
122 | 122 | * @param string $middle |
123 | 123 | * |
124 | - * @return array (head, middle, tail) |
|
124 | + * @return string[] (head, middle, tail) |
|
125 | 125 | */ |
126 | 126 | public static function tripartite($s, $middle) |
127 | 127 | { |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | * position in achars to the mapped contiguous array of elements. |
223 | 223 | * |
224 | 224 | * @param array $idmap |
225 | - * @param unknown_type $alen |
|
225 | + * @param integer $alen |
|
226 | 226 | * @param array $achars |
227 | 227 | * |
228 | 228 | * @return multitype:multitype:Ambigous <> Ambigous <> |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | * |
180 | 180 | * @param void |
181 | 181 | * |
182 | - * @return Illuminate\Database\Eloquent\Relations\BelongsToMany |
|
182 | + * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany |
|
183 | 183 | */ |
184 | 184 | public function docs() |
185 | 185 | { |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | * |
231 | 231 | * @param void |
232 | 232 | * |
233 | - * @return Illuminate\Database\Eloquent\Relations\BelongsToMany |
|
233 | + * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany |
|
234 | 234 | */ |
235 | 235 | public function groups() |
236 | 236 | { |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | * |
245 | 245 | * @param void |
246 | 246 | * |
247 | - * @return Illuminate\Database\Eloquent\Relations\HasMany |
|
247 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
248 | 248 | */ |
249 | 249 | public function comments() |
250 | 250 | { |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | * |
259 | 259 | * @param void |
260 | 260 | * |
261 | - * @return Illuminate\Database\Eloquent\Relations\HasMany |
|
261 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
262 | 262 | */ |
263 | 263 | public function annotations() |
264 | 264 | { |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | * |
318 | 318 | * @param void |
319 | 319 | * |
320 | - * @return Illuminate\Database\Eloquent\Relations\BelongsTo |
|
320 | + * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
|
321 | 321 | * |
322 | 322 | * @todo This can be removed as we use Groups in place of Organizations |
323 | 323 | */ |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | * |
334 | 334 | * @param void |
335 | 335 | * |
336 | - * @return Illuminate\Database\Eloquent\Relations\HasMany |
|
336 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
337 | 337 | */ |
338 | 338 | public function note_meta() |
339 | 339 | { |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | * |
348 | 348 | * @param void |
349 | 349 | * |
350 | - * @return Illuminate\Database\Eloquent\Relations\HasMany |
|
350 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
351 | 351 | */ |
352 | 352 | public function user_meta() |
353 | 353 | { |
@@ -451,7 +451,7 @@ discard block |
||
451 | 451 | * |
452 | 452 | * @param void |
453 | 453 | * |
454 | - * @return Illuminate\Database\Eloquent\Relations\HasMany |
|
454 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
455 | 455 | */ |
456 | 456 | public function doc_meta() |
457 | 457 | { |
@@ -586,7 +586,6 @@ discard block |
||
586 | 586 | * |
587 | 587 | * Validate input against merged rules |
588 | 588 | * |
589 | - * @param array $attributes |
|
590 | 589 | * |
591 | 590 | * @return bool |
592 | 591 | */ |
@@ -15,12 +15,10 @@ |
||
15 | 15 | use Illuminate\Database\Eloquent\Model; |
16 | 16 | use Illuminate\Database\Eloquent\SoftDeletes; |
17 | 17 | use Session; |
18 | - |
|
19 | 18 | use App\Group; |
20 | 19 | use App\GroupMember; |
21 | 20 | use App\Role; |
22 | 21 | use App\UserMeta; |
23 | - |
|
24 | 22 | use Zizaco\Entrust\Traits\EntrustUserTrait; |
25 | 23 | |
26 | 24 | class User extends Model implements AuthenticatableContract, CanResetPasswordContract |
@@ -321,6 +321,10 @@ discard block |
||
321 | 321 | return $item; |
322 | 322 | } |
323 | 323 | |
324 | + /** |
|
325 | + * @param integer $docId |
|
326 | + * @param string $annotationId |
|
327 | + */ |
|
324 | 328 | public static function loadAnnotationsForAnnotator($docId, $annotationId = null, $userId = null) |
325 | 329 | { |
326 | 330 | $annotations = static::where('doc_id', '=', $docId); |
@@ -416,6 +420,9 @@ discard block |
||
416 | 420 | return $obj; |
417 | 421 | } |
418 | 422 | |
423 | + /** |
|
424 | + * @param string $action |
|
425 | + */ |
|
419 | 426 | public static function getMetaCount($id, $action) |
420 | 427 | { |
421 | 428 | $annotation = static::where('annotation_id', '=', $id); |
@@ -477,7 +484,7 @@ discard block |
||
477 | 484 | * |
478 | 485 | * @param null |
479 | 486 | * |
480 | - * @return url |
|
487 | + * @return string |
|
481 | 488 | */ |
482 | 489 | public function getLink() |
483 | 490 | { |