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 ( 7a10f1...c2f16b )
by
unknown
76:46
created
plugins/agiledashboard/include/Planning/MilestoneFactory.class.php 1 patch
Doc Comments   +16 added lines, -10 removed lines patch added patch discarded remove patch
@@ -102,6 +102,8 @@  discard block
 block discarded – undo
102 102
     }
103 103
 
104 104
     /**
105
+     * @param integer $offset
106
+     * @param integer $number_to_fetch
105 107
      * @return array of Planning_Milestone (the last $number_to_fetch open ones for the given $planning)
106 108
      */
107 109
     public function getLastOpenMilestones(PFUser $user, Planning $planning, $offset, $number_to_fetch) {
@@ -132,7 +134,7 @@  discard block
 block discarded – undo
132 134
      * @param  PFUser $user
133 135
      * @param  Integer $artifact_id
134 136
      *
135
-     * @return Planning_Milestone|null
137
+     * @return Planning_ArtifactMilestone|null
136 138
      */
137 139
     public function getBareMilestoneByArtifactId(PFUser $user, $artifact_id) {
138 140
         $artifact = $this->artifact_factory->getArtifactById($artifact_id);
@@ -148,7 +150,7 @@  discard block
 block discarded – undo
148 150
      * @param  PFUser $user
149 151
      * @param  Integer $artifact_id
150 152
      *
151
-     * @return Planning_Milestone|null
153
+     * @return null|Planning_ArtifactMilestone
152 154
      */
153 155
     public function getValidatedBareMilestoneByArtifactId(PFUser $user, $artifact_id) {
154 156
         $artifact = $this->artifact_factory->getArtifactById($artifact_id);
@@ -164,7 +166,7 @@  discard block
 block discarded – undo
164 166
     /**
165 167
      * @param PFUser $user
166 168
      * @param Tracker_Artifact $artifact
167
-     * @return Planning_Milestone|null
169
+     * @return Planning_ArtifactMilestone|null
168 170
      */
169 171
     public function getBareMilestoneByArtifact(PFUser $user, Tracker_Artifact $artifact) {
170 172
         $tracker  = $artifact->getTracker();
@@ -297,10 +299,9 @@  discard block
 block discarded – undo
297 299
      * Retrieves the artifacts planned for the given milestone artifact.
298 300
      *
299 301
      * @param PFUser             $user
300
-     * @param Planning         $planning
301 302
      * @param Tracker_Artifact $milestone_artifact
302 303
      *
303
-     * @return TreeNode
304
+     * @return null|ArtifactNode
304 305
      */
305 306
     public function getPlannedArtifacts(PFUser             $user,
306 307
                                         Tracker_Artifact $milestone_artifact) {
@@ -315,12 +316,12 @@  discard block
 block discarded – undo
315 316
     /**
316 317
      * Adds $parent_node children according to $artifact ones.
317 318
      *
318
-     * @param type $user
319
-     * @param type $artifact
320
-     * @param type $parent_node
319
+     * @param PFUser $user
320
+     * @param Tracker_Artifact $artifact
321
+     * @param TreeNode $parent_node
321 322
      * @param type $parents     The list of parents to prevent infinite recursion
322 323
      *
323
-     * @return boolean
324
+     * @return false|null
324 325
      */
325 326
     private function addChildrenPlannedArtifacts(PFUser             $user,
326 327
                                                  Tracker_Artifact $artifact,
@@ -337,6 +338,10 @@  discard block
 block discarded – undo
337 338
         }
338 339
     }
339 340
 
341
+    /**
342
+     * @param PFUser $user
343
+     * @param Tracker_Artifact $artifact
344
+     */
340 345
     private function makeNodeWithChildren($user, $artifact, $parents) {
341 346
         $node = new ArtifactNode($artifact);
342 347
         $this->addChildrenPlannedArtifacts($user, $artifact, $node, $parents);
@@ -599,7 +604,7 @@  discard block
 block discarded – undo
599 604
     /**
600 605
      * Create Milestones corresponding to an array of artifacts
601 606
      *
602
-     * @param Tracker_Artifact[] $artifact
607
+     * @param Tracker_Artifact[] $artifacts
603 608
      *
604 609
      * @return Planning_ArtifactMilestone[]
605 610
      */
@@ -741,6 +746,7 @@  discard block
 block discarded – undo
741 746
     /**
742 747
      * Returns the last $quantity milestones - ordered by oldest first
743 748
      *
749
+     * @param integer $quantity
744 750
      * @return Planning_Milestone[]
745 751
      */
746 752
     public function getPastMilestones(PFUser $user, Planning $planning, $quantity) {
Please login to merge, or discard this patch.
plugins/agiledashboard/include/Planning/MilestonePaneFactory.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
         return $this->active_pane[$milestone->getArtifactId()];
104 104
     }
105 105
 
106
-    /** @return AgileDashboard_PaneInfo[] */
106
+    /** @return AgileDashboard_PaneInfo */
107 107
     public function getListOfPaneInfo(Planning_Milestone $milestone) {
108 108
         if (! isset($this->list_of_pane_info[$milestone->getArtifactId()])) {
109 109
             $this->buildListOfPaneInfo($milestone);
Please login to merge, or discard this patch.
plugins/agiledashboard/include/Planning/MilestonePresenter.class.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,6 +51,9 @@  discard block
 block discarded – undo
51 51
      */
52 52
     private $presenter_data;
53 53
 
54
+    /**
55
+     * @param string $planning_redirect_to_new
56
+     */
54 57
     public function __construct(
55 58
             Planning_Milestone $milestone,
56 59
             PFUser $current_user,
@@ -111,7 +114,7 @@  discard block
 block discarded – undo
111 114
     }
112 115
 
113 116
     /**
114
-     * @return array
117
+     * @return AgileDashboard_PaneInfo[]
115 118
      */
116 119
     public function getPaneInfoList() {
117 120
         return $this->presenter_data->getListOfPaneInfo();
@@ -140,6 +143,9 @@  discard block
 block discarded – undo
140 143
         return $start_date && $end_date;
141 144
     }
142 145
 
146
+    /**
147
+     * @param integer $date
148
+     */
143 149
     private function formatDate($date) {
144 150
         return date($GLOBALS['Language']->getText('system', 'datefmt_day_and_month'), $date);
145 151
     }
Please login to merge, or discard this patch.
agiledashboard/include/Planning/MilestoneRedirectParameter.class.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,8 @@
 block discarded – undo
32 32
         return "planning[$pane_identifier][$planning_id]=$artifact_id";
33 33
     }
34 34
 
35
-    /** @return string */
35
+    /** @param string $pane_identifier
36
+/** @return string */
36 37
     public function getPlanningRedirectToNew(Planning_Milestone $milestone, $pane_identifier) {
37 38
         $planning_id = (int) $milestone->getPlanningId();
38 39
 
Please login to merge, or discard this patch.
plugins/agiledashboard/include/Planning/Planning.class.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     }
150 150
     
151 151
     /**
152
-     * @param Tracker[] $backlog_tracker The trackers used as a backlog
152
+     * @param Tracker[] $backlog_trackers The trackers used as a backlog
153 153
      */
154 154
     public function setBacklogTrackers(array $backlog_trackers) {
155 155
         $this->backlog_trackers = $backlog_trackers;
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     }
164 164
     
165 165
     /**
166
-     * @return Tracker
166
+     * @return Tracker[]
167 167
      */
168 168
     public function getBacklogTrackers() {
169 169
         return $this->backlog_trackers;
Please login to merge, or discard this patch.
plugins/agiledashboard/include/Planning/PlanningController.class.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -69,6 +69,9 @@  discard block
 block discarded – undo
69 69
     /** @var AgileDashboard_HierarchyChecker */
70 70
     private $hierarchy_checker;
71 71
 
72
+    /**
73
+     * @param string $plugin_path
74
+     */
72 75
     public function __construct(
73 76
         Codendi_Request $request,
74 77
         PlanningFactory $planning_factory,
@@ -196,6 +199,7 @@  discard block
 block discarded – undo
196 199
     }
197 200
 
198 201
     /**
202
+     * @param Planning[] $plannings
199 203
      * @return Planning_Presenter_MilestoneAccessPresenter
200 204
      */
201 205
     private function getMilestoneAccessPresenters($plannings) {
Please login to merge, or discard this patch.
plugins/agiledashboard/include/Planning/PlanningDao.class.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -28,6 +28,9 @@  discard block
 block discarded – undo
28 28
         return new TrackerDao();
29 29
     }
30 30
     
31
+    /**
32
+     * @param integer $group_id
33
+     */
31 34
     function createPlanning($group_id, PlanningParameters $planning_parameters) {
32 35
         $planning_name       = $this->da->quoteSmart($planning_parameters->name);
33 36
         $backlog_title       = $this->da->quoteSmart($planning_parameters->backlog_title);
@@ -56,6 +59,9 @@  discard block
 block discarded – undo
56 59
         $this->update($sql);
57 60
     }
58 61
     
62
+    /**
63
+     * @param integer $group_id
64
+     */
59 65
     function searchPlannings($group_id){
60 66
         $group_id = $this->da->escapeInt($group_id);
61 67
         $sql = "SELECT * 
@@ -90,6 +96,9 @@  discard block
 block discarded – undo
90 96
         return $this->retrieve($sql);
91 97
     }
92 98
 
99
+    /**
100
+     * @param integer $backlog_tracker_id
101
+     */
93 102
     public function searchByBacklogTrackerId($backlog_tracker_id) {
94 103
         $backlog_tracker_id = $this->da->escapeInt($backlog_tracker_id);
95 104
         $sql = "
@@ -153,6 +162,9 @@  discard block
 block discarded – undo
153 162
         return $ids;
154 163
     }
155 164
     
165
+    /**
166
+     * @param integer $group_id
167
+     */
156 168
     public function searchNonPlanningTrackersByGroupId($group_id) {
157 169
         $planning_tracker_ids = $this->searchPlanningTrackerIdsByGroupId($group_id);
158 170
         $tracker_dao          = $this->getTrackerDao();
@@ -160,6 +172,9 @@  discard block
 block discarded – undo
160 172
         return $tracker_dao->searchByGroupIdWithExcludedIds($group_id, $planning_tracker_ids);
161 173
     }
162 174
     
175
+    /**
176
+     * @param integer $planning_id
177
+     */
163 178
     function updatePlanning($planning_id, PlanningParameters $planning_parameters) {
164 179
         $planning_id         = $this->da->escapeInt($planning_id);
165 180
         $planning_name       = $this->da->quoteSmart($planning_parameters->name);
@@ -178,6 +193,9 @@  discard block
 block discarded – undo
178 193
         $this->updateBacklogTrackers($planning_id, $planning_parameters);
179 194
     }
180 195
 
196
+    /**
197
+     * @param string $planning_id
198
+     */
181 199
     private function updateBacklogTrackers($planning_id, PlanningParameters $planning_parameters) {
182 200
         $this->deletePlanningBacklogTrackers($planning_id);
183 201
         $this->createBacklogTrackers($planning_id, $planning_parameters);
Please login to merge, or discard this patch.
plugins/agiledashboard/include/Planning/PlanningFactory.class.php 1 patch
Doc Comments   +7 added lines, -5 removed lines patch added patch discarded remove patch
@@ -86,6 +86,9 @@  discard block
 block discarded – undo
86 86
         }
87 87
     }
88 88
 
89
+    /**
90
+     * @param integer $group_id
91
+     */
89 92
     protected function duplicatePriorityChangePermission($group_id, $source_planning_id, $new_planning_id, array $ugroups_mapping) {
90 93
         $source_planning                       = $this->getPlanning($source_planning_id);
91 94
         $priority_change_permission_ugroup_ids = $this->planning_permissions_manager->getGroupIdsWhoHasPermissionOnPlanning(
@@ -284,7 +287,6 @@  discard block
 block discarded – undo
284 287
      *
285 288
      * @param PFUser $user     The user who will see the planning
286 289
      * @param int  $group_id
287
-     * @param PlanningFactory $planning_factory
288 290
      *
289 291
      * @return Planning[]
290 292
      */
@@ -338,7 +340,6 @@  discard block
 block discarded – undo
338 340
      *
339 341
      * @param PFUser $user     The user who will see the planning
340 342
      * @param int  $group_id
341
-     * @param PlanningFactory $planning_factory
342 343
      *
343 344
      * @return Planning[]
344 345
      */
@@ -378,7 +379,6 @@  discard block
 block discarded – undo
378 379
     /**
379 380
      * Get a planning
380 381
      *
381
-     * @param int $group_id
382 382
      *
383 383
      * @return Planning
384 384
      */
@@ -548,6 +548,9 @@  discard block
 block discarded – undo
548 548
         return $this->dao->searchPlanningTrackerIdsByGroupId($group_id);
549 549
     }
550 550
 
551
+    /**
552
+     * @param integer $group_id
553
+     */
551 554
     public function getBacklogTrackerIdsByGroupId($group_id) {
552 555
         return $this->dao->searchBacklogTrackerIdsByGroupId($group_id);
553 556
     }
@@ -592,7 +595,7 @@  discard block
 block discarded – undo
592 595
      *
593 596
      * @param $planning_id the id of the planning
594 597
      *
595
-     * @return bool
598
+     * @return boolean|null
596 599
      */
597 600
     public function deletePlanning($planning_id) {
598 601
         return $this->dao->deletePlanning($planning_id);
@@ -617,7 +620,6 @@  discard block
 block discarded – undo
617 620
     /**
618 621
      * Retrieve the project trackers that can be used as planning trackers.
619 622
      *
620
-     * @param Planning $planning The planning for which we want to know the available trackers.
621 623
      *
622 624
      * @return Array of Tracker
623 625
      */
Please login to merge, or discard this patch.
agiledashboard/include/Planning/PlanningPermissionsManager.class.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -22,6 +22,11 @@
 block discarded – undo
22 22
 
23 23
     const PERM_PRIORITY_CHANGE = 'PLUGIN_AGILEDASHBOARD_PLANNING_PRIORITY_CHANGE';
24 24
 
25
+    /**
26
+     * @param integer $planning_id
27
+     * @param integer $group_id
28
+     * @param string $html_element_name
29
+     */
25 30
     public function getPlanningPermissionForm($planning_id, $group_id, $permission, $html_element_name) {
26 31
         return permission_fetch_selection_field($permission, $planning_id, $group_id, $html_element_name);
27 32
     }
Please login to merge, or discard this patch.