Completed
Push — issue656-laravel5 ( efacab...79e443 )
by
unknown
04:04
created
app/BillImport.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -83,6 +83,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
app/Console/Commands/DatabaseBackup.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -44,6 +44,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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');
Please login to merge, or discard this patch.
app/Doc.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -502,6 +502,9 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
app/Group.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -125,9 +125,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
app/GroupMember.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
app/Http/Controllers/Controller.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
app/Http/Controllers/UserController.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
app/StringDiff.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 <>
Please login to merge, or discard this patch.
app/User.php 2 patches
Doc Comments   +8 added lines, -9 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
586 586
      *
587 587
      *	Validate input against merged rules
588 588
      *
589
-     *	@param array $attributes
590 589
      *
591 590
      * @return bool
592 591
      */
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -13,9 +13,7 @@
 block discarded – undo
13 13
 use Illuminate\Support\Facades\Validator;
14 14
 use Illuminate\Support\MessageBag;
15 15
 use Illuminate\Database\Eloquent\Model;
16
-use Illuminate\Database\Eloquent\SoftDeletes;
17 16
 use Session;
18
-
19 17
 use Zizaco\Entrust\Traits\EntrustUserTrait;
20 18
 
21 19
 class User extends Model implements AuthenticatableContract, CanResetPasswordContract
Please login to merge, or discard this patch.