@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace App; |
4 | 4 | |
5 | 5 | use Illuminate\Database\Eloquent\Model; |
6 | -use Illuminate\Database\Eloquent\SoftDeletes; |
|
7 | 6 | |
8 | 7 | class Annotation extends Model implements ActivityInterface |
9 | 8 | { |
@@ -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. |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace App; |
4 | 4 | |
5 | 5 | use Illuminate\Database\Eloquent\Model; |
6 | -use Illuminate\Database\Eloquent\SoftDeletes; |
|
7 | 6 | |
8 | 7 | class Comment extends Model implements ActivityInterface |
9 | 8 | { |
@@ -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(); |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace App; |
4 | 4 | |
5 | 5 | use Illuminate\Database\Eloquent\Model; |
6 | -use Illuminate\Database\Eloquent\SoftDeletes; |
|
7 | 6 | use Illuminate\Database\Eloquent\Collection; |
8 | 7 | use Event; |
9 | 8 | use URL; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace App; |
4 | 4 | |
5 | 5 | use Illuminate\Database\Eloquent\Model; |
6 | -use Illuminate\Database\Eloquent\SoftDeletes; |
|
7 | 6 | |
8 | 7 | class DocContent extends Model |
9 | 8 | { |
@@ -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)) { |
@@ -9,7 +9,6 @@ |
||
9 | 9 | use Illuminate\Support\Facades\Validator; |
10 | 10 | use Illuminate\Support\MessageBag; |
11 | 11 | use Illuminate\Database\Eloquent\Model; |
12 | -use Illuminate\Database\Eloquent\SoftDeletes; |
|
13 | 12 | |
14 | 13 | class Group extends Model |
15 | 14 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace App; |
4 | 4 | |
5 | 5 | use Illuminate\Database\Eloquent\Model; |
6 | -use Illuminate\Database\Eloquent\SoftDeletes; |
|
7 | 6 | |
8 | 7 | class GroupMember extends Model |
9 | 8 | { |
@@ -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 | * |