GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( fc2f08...10d0e6 )
by
unknown
61:03
created
include/Tracker/Artifact/dao/Tracker_Artifact_Changeset_ValueDao.class.php 1 patch
Doc Comments   +20 added lines patch added patch discarded remove patch
@@ -26,6 +26,9 @@  discard block
 block discarded – undo
26 26
         $this->table_name = 'tracker_changeset_value';
27 27
     }
28 28
      
29
+    /**
30
+     * @param integer $id
31
+     */
29 32
     public function searchById($id) {
30 33
         $id = $this->da->escapeInt($id);
31 34
         $sql = "SELECT * FROM $this->table_name
@@ -33,6 +36,10 @@  discard block
 block discarded – undo
33 36
         return $this->retrieve($sql);
34 37
     }
35 38
     
39
+    /**
40
+     * @param integer $changeset_id
41
+     * @param integer $field_id
42
+     */
36 43
     public function searchByFieldId($changeset_id, $field_id) {
37 44
         $changeset_id = $this->da->escapeInt($changeset_id);
38 45
         $field_id = $this->da->escapeInt($field_id);
@@ -42,6 +49,11 @@  discard block
 block discarded – undo
42 49
         return $this->retrieve($sql);
43 50
     }
44 51
     
52
+    /**
53
+     * @param integer $changeset_id
54
+     * @param integer $field_id
55
+     * @param integer $has_changed
56
+     */
45 57
     public function save($changeset_id, $field_id, $has_changed) {
46 58
         $changeset_id = $this->da->escapeInt($changeset_id);
47 59
         $field_id = $this->da->escapeInt($field_id);
@@ -51,6 +63,11 @@  discard block
 block discarded – undo
51 63
         return $this->updateAndGetLastId($sql);
52 64
     }    
53 65
 
66
+    /**
67
+     * @param integer $tracker_id
68
+     * @param integer $field_id
69
+     * @param integer $has_changed
70
+     */
54 71
     public function createFromLastChangesetByTrackerId($tracker_id, $field_id, $has_changed) {
55 72
         $tracker_id  = $this->da->escapeInt($tracker_id);
56 73
         $field_id    = $this->da->escapeInt($field_id);
@@ -84,6 +101,9 @@  discard block
 block discarded – undo
84 101
         return $changesetValueIds;
85 102
     }
86 103
     
104
+    /**
105
+     * @param integer $changeset_id
106
+     */
87 107
     public function delete($changeset_id) {
88 108
         $changeset_id = $this->da->escapeInt($changeset_id);
89 109
         $sql = "DELETE
Please login to merge, or discard this patch.
include/Tracker/Artifact/dao/Tracker_Artifact_ChangesetDao.class.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -25,6 +25,9 @@  discard block
 block discarded – undo
25 25
         $this->table_name = 'tracker_changeset';
26 26
     }   
27 27
 
28
+    /**
29
+     * @param integer $artifact_id
30
+     */
28 31
     public function searchByArtifactId($artifact_id) {
29 32
         $artifact_id = $this->da->escapeInt($artifact_id);
30 33
         $sql = "SELECT * FROM $this->table_name
@@ -33,6 +36,10 @@  discard block
 block discarded – undo
33 36
         return $this->retrieve($sql);
34 37
     }
35 38
     
39
+    /**
40
+     * @param integer $artifact_id
41
+     * @param integer $changeset_id
42
+     */
36 43
     public function searchByArtifactIdAndChangesetId($artifact_id, $changeset_id) {
37 44
         $artifact_id = $this->da->escapeInt($artifact_id);
38 45
         $changeset_id = $this->da->escapeInt($changeset_id);
@@ -42,6 +49,11 @@  discard block
 block discarded – undo
42 49
         return $this->retrieve($sql);
43 50
     }
44 51
     
52
+    /**
53
+     * @param integer $artifact_id
54
+     * @param integer $submitted_by
55
+     * @param string|null $email
56
+     */
45 57
     public function create($artifact_id, $submitted_by, $email, $submitted_on) {
46 58
         $artifact_id  = $this->da->escapeInt($artifact_id);
47 59
         $submitted_by = $this->da->escapeInt($submitted_by);
@@ -61,6 +73,9 @@  discard block
 block discarded – undo
61 73
         return $changeset_id;
62 74
     }
63 75
     
76
+    /**
77
+     * @param integer $changeset_id
78
+     */
64 79
     public function delete($changeset_id) {
65 80
         $changeset_id = $this->da->escapeInt($changeset_id);
66 81
         $sql = "DELETE
Please login to merge, or discard this patch.
include/Tracker/Artifact/dao/Tracker_Artifact_PriorityHistoryDao.class.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -21,6 +21,10 @@  discard block
 block discarded – undo
21 21
  */
22 22
 class Tracker_Artifact_PriorityHistoryDao extends DataAccessObject {
23 23
 
24
+    /**
25
+     * @param integer $priority_updated_by
26
+     * @param integer $priority_updated_on
27
+     */
24 28
     public function logPriorityChange($moved_artifact_id, $artifact_higher_id, $artifact_lower_id, $context_id, $project_id, $priority_updated_by, $priority_updated_on, $old_global_rank) {
25 29
         $moved_artifact_id   = $this->da->escapeInt($moved_artifact_id);
26 30
         $artifact_higher_id  = $this->da->escapeInt($artifact_higher_id);
@@ -39,6 +43,9 @@  discard block
 block discarded – undo
39 43
         $this->update($sql);
40 44
     }
41 45
 
46
+    /**
47
+     * @param integer $artifact_id
48
+     */
42 49
     public function getArtifactPriorityHistory($artifact_id) {
43 50
         $artifact_id  = $this->da->escapeInt($artifact_id);
44 51
 
@@ -49,6 +56,9 @@  discard block
 block discarded – undo
49 56
         return $this->retrieve($sql);
50 57
     }
51 58
 
59
+    /**
60
+     * @param integer $artifact_id
61
+     */
52 62
     public function deletePriorityChangesHistory($artifact_id) {
53 63
         $artifact_id  = $this->da->escapeInt($artifact_id);
54 64
 
Please login to merge, or discard this patch.
plugins/tracker/include/Tracker/Artifact/dao/Tracker_ArtifactDao.class.php 1 patch
Doc Comments   +85 added lines patch added patch discarded remove patch
@@ -28,6 +28,9 @@  discard block
 block discarded – undo
28 28
         $this->table_name = 'tracker_artifact';
29 29
     }
30 30
 
31
+    /**
32
+     * @param integer $id
33
+     */
31 34
     public function searchById($id) {
32 35
         $id      = $this->da->escapeInt($id);
33 36
         $sql = "SELECT *
@@ -36,6 +39,9 @@  discard block
 block discarded – undo
36 39
         return $this->retrieve($sql);
37 40
     }
38 41
 
42
+    /**
43
+     * @param integer $tracker_id
44
+     */
39 45
     public function searchByTrackerId($tracker_id) {
40 46
         $tracker_id = $this->da->escapeInt($tracker_id);
41 47
         $sql = "SELECT A.*, CVT.value AS title
@@ -49,6 +55,11 @@  discard block
 block discarded – undo
49 55
         return $this->retrieve($sql);
50 56
     }
51 57
 
58
+    /**
59
+     * @param integer $tracker_id
60
+     * @param integer $limit
61
+     * @param integer $offset
62
+     */
52 63
     public function searchPaginatedByTrackerId($tracker_id, $limit, $offset, $reverse_order) {
53 64
         $tracker_id = $this->da->escapeInt($tracker_id);
54 65
         $limit      = $this->da->escapeInt($limit);
@@ -70,6 +81,7 @@  discard block
 block discarded – undo
70 81
 
71 82
     /**
72 83
      * @param string $artifact_ids "2,14,15"
84
+     * @param boolean $user_is_admin
73 85
      */
74 86
     public function searchLastChangesetIds($artifact_ids, array $ugroups, $user_is_admin) {
75 87
         $artifact_ids = $this->da->escapeIntImplode(explode(',', $artifact_ids));
@@ -288,6 +300,9 @@  discard block
 block discarded – undo
288 300
         return $this->retrieve($sql);
289 301
     }
290 302
 
303
+    /**
304
+     * @param integer $tracker_id
305
+     */
291 306
     public function searchStatsForTracker($tracker_id) {
292 307
         $tracker_id = $this->da->escapeInt($tracker_id);
293 308
         $sql = "SELECT R1.t AS last_creation, R2.t AS last_update, R3.t as nb_total, R4.t as nb_open
@@ -313,6 +328,10 @@  discard block
 block discarded – undo
313 328
         return $this->retrieve($sql);
314 329
     }
315 330
 
331
+    /**
332
+     * @param integer $start_date
333
+     * @param integer $end_date
334
+     */
316 335
     public function searchSubmittedArtifactBetweenTwoDates($start_date, $end_date) {
317 336
         $start_date = $this->da->escapeInt($start_date);
318 337
         $end_date   = $this->da->escapeInt($end_date);
@@ -326,6 +345,10 @@  discard block
 block discarded – undo
326 345
         return $this->retrieve($sql);
327 346
     }
328 347
 
348
+    /**
349
+     * @param integer $start_date
350
+     * @param integer $end_date
351
+     */
329 352
     public function searchClosedArtifactBetweenTwoDates($start_date, $end_date) {
330 353
         $start_date = $this->da->escapeInt($start_date);
331 354
         $end_date   = $this->da->escapeInt($end_date);
@@ -349,6 +372,11 @@  discard block
 block discarded – undo
349 372
         return $this->da->quoteSmart('%'. $keyword .'%');
350 373
     }
351 374
 
375
+    /**
376
+     * @param integer $tracker_id
377
+     * @param string $criteria
378
+     * @param integer $limit
379
+     */
352 380
     public function searchByKeywords($tracker_id, $keywords, $criteria, $offset, $limit) {
353 381
         $tracker_id = $this->da->escapeInt($tracker_id);
354 382
         $criteria   = $criteria === 'OR' ? 'OR' : 'AND'; //make sure that the request is not forged
@@ -375,6 +403,11 @@  discard block
 block discarded – undo
375 403
         return $this->retrieve($sql);
376 404
     }
377 405
 
406
+    /**
407
+     * @param integer $tracker_id
408
+     * @param integer $submitted_by
409
+     * @param integer $use_artifact_permissions
410
+     */
378 411
     public function create($tracker_id, $submitted_by, $submitted_on, $use_artifact_permissions) {
379 412
         $tracker_id               = $this->da->escapeInt($tracker_id);
380 413
         $use_artifact_permissions = $this->da->escapeInt($use_artifact_permissions);
@@ -404,6 +437,11 @@  discard block
 block discarded – undo
404 437
         return false;
405 438
     }
406 439
 
440
+    /**
441
+     * @param integer $id
442
+     * @param integer $tracker_id
443
+     * @param boolean $use_artifact_permissions
444
+     */
407 445
     public function save($id, $tracker_id, $use_artifact_permissions) {
408 446
         $id                       = $this->da->escapeInt($id);
409 447
         $tracker_id               = $this->da->escapeInt($tracker_id);
@@ -416,11 +454,17 @@  discard block
 block discarded – undo
416 454
         return $this->update($sql);
417 455
     }
418 456
 
457
+    /**
458
+     * @param integer $id
459
+     */
419 460
     public function delete($id) {
420 461
         $sql = "DELETE FROM $this->table_name WHERE id = ". $this->da->escapeInt($id);
421 462
         return $this->update($sql);
422 463
     }
423 464
 
465
+    /**
466
+     * @param integer $id
467
+     */
424 468
     public function deleteArtifactLinkReference($id) {
425 469
         $dao = new Tracker_FormElement_Field_Value_ArtifactLinkDao();
426 470
         return $dao->deleteReference($id);
@@ -475,6 +519,7 @@  discard block
 block discarded – undo
475 519
 
476 520
     /**
477 521
      * It does not check permissions
522
+     * @param integer $artifact_id
478 523
      */
479 524
     public function getChildren($artifact_id) {
480 525
         return $this->getChildrenForArtifacts(array($artifact_id));
@@ -482,6 +527,7 @@  discard block
 block discarded – undo
482 527
 
483 528
     /**
484 529
      * It does not check permissions
530
+     * @param integer $artifact_id
485 531
      */
486 532
     public function getPaginatedChildren($artifact_id, $limit, $offset) {
487 533
         return $this->getPaginatedChildrenForArtifacts(array($artifact_id), $limit, $offset);
@@ -505,6 +551,9 @@  discard block
 block discarded – undo
505 551
         return $this->retrieve($sql);
506 552
     }
507 553
 
554
+    /**
555
+     * @param string $artifact_ids
556
+     */
508 557
     private function getFromStatementForChildrenOfArtifacts($artifact_ids) {
509 558
         return " FROM tracker_artifact parent_art
510 559
                      INNER JOIN tracker_field                        f          ON (f.tracker_id = parent_art.tracker_id AND f.formElement_type = 'art_link' AND use_it = 1)
@@ -531,6 +580,9 @@  discard block
 block discarded – undo
531 580
     }
532 581
 
533 582
 
583
+    /**
584
+     * @param integer $artifact_id
585
+     */
534 586
     public function getSiblings($artifact_id) {
535 587
         $artifact_id = $this->da->escapeInt($artifact_id);
536 588
         $sql = "SELECT art_sibling.*
@@ -614,6 +666,9 @@  discard block
 block discarded – undo
614 666
         return $this->getLinkedArtifactsByIds(array($artifact_id));
615 667
     }
616 668
 
669
+    /**
670
+     * @param integer $artifact_id
671
+     */
617 672
     public function getLinkedOpenArtifactsOfTrackersNotLinkedToOthers($artifact_id, array $tracker_ids, array $excluded_linked_ids, $additional_artifacts = '') {
618 673
         $artifact_id  = $this->da->escapeInt($artifact_id);
619 674
         $tracker_ids  = $this->da->escapeIntImplode($tracker_ids);
@@ -671,6 +726,9 @@  discard block
 block discarded – undo
671 726
         return $this->retrieve($sql);
672 727
     }
673 728
 
729
+    /**
730
+     * @param integer $artifact_id
731
+     */
674 732
     public function getLinkedArtifactsOfTrackersNotLinkedToOthers($artifact_id, array $tracker_ids, array $excluded_linked_ids, $additional_artifacts = '') {
675 733
         $artifact_id  = $this->da->escapeInt($artifact_id);
676 734
         $tracker_ids  = $this->da->escapeIntImplode($tracker_ids);
@@ -718,6 +776,9 @@  discard block
 block discarded – undo
718 776
         return $this->retrieve($sql);
719 777
     }
720 778
 
779
+    /**
780
+     * @param integer $artifact_id
781
+     */
721 782
     public function getLinkedArtifactsOfTrackersConcatenatedToCustomList($artifact_id, array $tracker_ids, $additional_artifacts = '') {
722 783
         $artifact_id  = $this->da->escapeInt($artifact_id);
723 784
         $tracker_ids  = $this->da->escapeIntImplode($tracker_ids);
@@ -813,6 +874,9 @@  discard block
 block discarded – undo
813 874
         return $this->retrieveFirstRow($sql);
814 875
     }
815 876
 
877
+    /**
878
+     * @param integer $artifact_id
879
+     */
816 880
     public function getLinkedArtifactsOfTrackersWithLimitAndOffset($artifact_id, array $tracker_ids, $limit, $offset) {
817 881
         $artifact_id = $this->da->escapeInt($artifact_id);
818 882
         $tracker_ids = $this->da->escapeIntImplode($tracker_ids);
@@ -834,6 +898,9 @@  discard block
 block discarded – undo
834 898
         return $this->retrieve($sql);
835 899
     }
836 900
 
901
+    /**
902
+     * @param integer $artifact_id
903
+     */
837 904
     public function getLinkedOpenArtifactsOfTrackersNotLinkedToOthersWithLimitAndOffset($artifact_id, array $tracker_ids, array $excluded_linked_ids, $additional_artifacts = '', $limit, $offset) {
838 905
         $artifact_id  = $this->da->escapeInt($artifact_id);
839 906
         $tracker_ids  = $this->da->escapeIntImplode($tracker_ids);
@@ -884,6 +951,9 @@  discard block
 block discarded – undo
884 951
         return $this->retrieve($sql);
885 952
     }
886 953
 
954
+    /**
955
+     * @param integer $artifact_id
956
+     */
887 957
     public function getLinkedArtifactsOfTrackersNotLinkedToOthersWithLimitAndOffset($artifact_id, array $tracker_ids, array $excluded_linked_ids, $additional_artifacts = '', $limit, $offset) {
888 958
         $artifact_id  = $this->da->escapeInt($artifact_id);
889 959
         $tracker_ids  = $this->da->escapeIntImplode($tracker_ids);
@@ -1006,6 +1076,9 @@  discard block
 block discarded – undo
1006 1076
         return array();
1007 1077
     }
1008 1078
 
1079
+    /**
1080
+     * @param integer $artifact_id
1081
+     */
1009 1082
     public function getUnsubscribersIds($artifact_id) {
1010 1083
         $artifact_id = $this->da->escapeInt($artifact_id);
1011 1084
         $sql = "SELECT user_id
@@ -1015,6 +1088,10 @@  discard block
 block discarded – undo
1015 1088
         return $this->retrieve($sql);
1016 1089
     }
1017 1090
 
1091
+    /**
1092
+     * @param integer $artifact_id
1093
+     * @param integer $user_id
1094
+     */
1018 1095
     public function doesUserHaveUnsubscribedFromNotifications($artifact_id, $user_id) {
1019 1096
         $artifact_id = $this->da->escapeInt($artifact_id);
1020 1097
         $user_id     = $this->da->escapeInt($user_id);
@@ -1027,6 +1104,10 @@  discard block
 block discarded – undo
1027 1104
         return $this->retrieve($sql)->count() > 0;
1028 1105
     }
1029 1106
 
1107
+    /**
1108
+     * @param integer $artifact_id
1109
+     * @param integer $user_id
1110
+     */
1030 1111
     public function createUnsubscribeNotification($artifact_id, $user_id) {
1031 1112
         $artifact_id = $this->da->escapeInt($artifact_id);
1032 1113
         $user_id     = $this->da->escapeInt($user_id);
@@ -1037,6 +1118,10 @@  discard block
 block discarded – undo
1037 1118
         $this->update($sql);
1038 1119
     }
1039 1120
 
1121
+    /**
1122
+     * @param integer $artifact_id
1123
+     * @param integer $user_id
1124
+     */
1040 1125
     public function deleteUnsubscribeNotification($artifact_id, $user_id) {
1041 1126
         $artifact_id = $this->da->escapeInt($artifact_id);
1042 1127
         $user_id     = $this->da->escapeInt($user_id);
Please login to merge, or discard this patch.
plugins/tracker/include/Tracker/Artifact/MailGateway/MailGateway.class.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -80,6 +80,9 @@
 block discarded – undo
80 80
         $this->incoming_mail_dao        = $incoming_mail_dao;
81 81
     }
82 82
 
83
+    /**
84
+     * @param string $raw_mail
85
+     */
83 86
     public function process($raw_mail) {
84 87
         $raw_mail_parsed = $this->parser->parse($raw_mail);
85 88
         try {
Please login to merge, or discard this patch.
tracker/include/Tracker/Artifact/Presenter/ArtifactLinkPresenter.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -27,6 +27,12 @@
 block discarded – undo
27 27
 
28 28
     public $title;
29 29
 
30
+    /**
31
+     * @param string $tracker_name
32
+     * @param integer $group_id
33
+     * @param integer $artifact_id
34
+     * @param string $title
35
+     */
30 36
     public function __construct(
31 37
         $tracker_name,
32 38
         $group_id,
Please login to merge, or discard this patch.
include/Tracker/Artifact/Presenter/CreateArtifactInPlacePresenter.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -31,6 +31,10 @@
 block discarded – undo
31 31
     /** @var bool */
32 32
     private $render_with_javascript;
33 33
 
34
+    /**
35
+     * @param Tracker_Artifact|null $artifact_to_link
36
+     * @param string $form_elements
37
+     */
34 38
     public function __construct(Tracker $tracker, $artifact_to_link, $form_elements, $render_with_javascript) {
35 39
         $this->tracker                = $tracker;
36 40
         $this->artifact_to_link       = $artifact_to_link;
Please login to merge, or discard this patch.
tracker/include/Tracker/Artifact/Presenter/EditArtifactInPlacePresenter.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -39,6 +39,11 @@
 block discarded – undo
39 39
     /** @var PFUser */
40 40
     private $user;
41 41
 
42
+    /**
43
+     * @param string $follow_ups
44
+     * @param Tracker_Artifact_Presenter_ArtifactLinkPresenter[] $artifact_links
45
+     * @param string $form_elements
46
+     */
42 47
     public function __construct(
43 48
         $follow_ups,
44 49
         $artifact_links,
Please login to merge, or discard this patch.
tracker/include/Tracker/Artifact/Renderer/EditInPlaceRenderer.class.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -48,6 +48,9 @@  discard block
 block discarded – undo
48 48
         $this->renderer->renderToPage('artifact-modal', $presenter);
49 49
     }
50 50
 
51
+    /**
52
+     * @param Codendi_Request $request
53
+     */
51 54
     public function getSubmittedValues($request) {
52 55
         $submitted_values = array(0 => null);
53 56
 
@@ -144,6 +147,9 @@  discard block
 block discarded – undo
144 147
         return $fields_data;
145 148
     }
146 149
 
150
+    /**
151
+     * @param string $exception_message
152
+     */
147 153
     private function sendErrorsAsJson($exception_message) {
148 154
         $feedback            = array();
149 155
         $feedback['message'] = $exception_message;
Please login to merge, or discard this patch.