@@ -126,12 +126,18 @@ |
||
126 | 126 | return self::TRACKER_ID_PREFIX . (string) $tracker_id ; |
127 | 127 | } |
128 | 128 | |
129 | + /** |
|
130 | + * @param string $value |
|
131 | + */ |
|
129 | 132 | private function checkString($value, $value_denomination) { |
130 | 133 | if (! $value || (is_string($value) && $value == '')) { |
131 | 134 | throw new AgileDashboard_XMLExporterUnableToGetValueException('Unable to get value for attribute: ' . $value_denomination); |
132 | 135 | } |
133 | 136 | } |
134 | 137 | |
138 | + /** |
|
139 | + * @param string $id |
|
140 | + */ |
|
135 | 141 | private function checkId($id, $value_denomination) { |
136 | 142 | if ($id == self::TRACKER_ID_PREFIX) { |
137 | 143 | throw new AgileDashboard_XMLExporterUnableToGetValueException('Unable to get value for attribute: ' . $value_denomination); |
@@ -512,7 +512,7 @@ |
||
512 | 512 | |
513 | 513 | /** |
514 | 514 | * |
515 | - * @param array $param |
|
515 | + * @param array $params |
|
516 | 516 | * Expected key/ values: |
517 | 517 | * project_id int The ID of the project for the import |
518 | 518 | * xml_content SimpleXmlObject A string of valid xml |
@@ -27,6 +27,9 @@ |
||
27 | 27 | */ |
28 | 28 | class AgileDashboardPluginInfo extends PluginInfo { |
29 | 29 | |
30 | + /** |
|
31 | + * @param AgileDashboardPlugin $plugin |
|
32 | + */ |
|
30 | 33 | function __construct($plugin) { |
31 | 34 | parent::__construct($plugin); |
32 | 35 | $this->setPluginDescriptor(new AgileDashboardPluginDescriptor()); |
@@ -401,6 +401,9 @@ |
||
401 | 401 | } |
402 | 402 | } |
403 | 403 | |
404 | + /** |
|
405 | + * @param Planning_Controller $default_controller |
|
406 | + */ |
|
404 | 407 | public function routeShowTopPlanning(Codendi_Request $request, $default_controller) { |
405 | 408 | $user = $request->getCurrentUser(); |
406 | 409 | if (! $user) { |
@@ -125,6 +125,8 @@ discard block |
||
125 | 125 | } |
126 | 126 | |
127 | 127 | /** |
128 | + * @param Codendi_Request $request |
|
129 | + * @param AgileDashboard_Milestone_Pane_PanePresenterBuilderFactory $pane_presenter_builder_factory |
|
128 | 130 | * @return Planning_VirtualTopMilestonePaneFactory |
129 | 131 | */ |
130 | 132 | private function getTopMilestonePaneFactory( |
@@ -143,6 +145,10 @@ discard block |
||
143 | 145 | ); |
144 | 146 | } |
145 | 147 | |
148 | + /** |
|
149 | + * @param Planning_MilestoneFactory $milestone_factory |
|
150 | + * @param AgileDashboard_PaneInfoFactory $pane_info_factory |
|
151 | + */ |
|
146 | 152 | private function getPanePresenterBuilderFactory($milestone_factory, $pane_info_factory) { |
147 | 153 | $icon_factory = new AgileDashboard_PaneIconLinkPresenterCollectionFactory($pane_info_factory); |
148 | 154 |
@@ -72,6 +72,9 @@ |
||
72 | 72 | return $source_artifact; |
73 | 73 | } |
74 | 74 | |
75 | + /** |
|
76 | + * @param string $key |
|
77 | + */ |
|
75 | 78 | private function getSourceArtifact(Codendi_Request $request, $key) { |
76 | 79 | $artifact_id = (int) $request->getValidated($key, 'uint', 0); |
77 | 80 | return $this->artifact_factory->getArtifactById($artifact_id); |
@@ -223,6 +223,10 @@ discard block |
||
223 | 223 | return $artifacts; |
224 | 224 | } |
225 | 225 | |
226 | + /** |
|
227 | + * @param Tracker_Artifact[] $artifacts |
|
228 | + * @param PFUser $user |
|
229 | + */ |
|
226 | 230 | private function addChildrenNodes(ArtifactNode $root_node, &$artifacts, $user) { |
227 | 231 | foreach ($root_node->getChildren() as $node) { |
228 | 232 | $artifact = $node->getObject(); |
@@ -307,7 +311,7 @@ discard block |
||
307 | 311 | /** |
308 | 312 | * @param array $artifacts_ids |
309 | 313 | * @param PFUser $user |
310 | - * @return Boolean True if nothing went wrong |
|
314 | + * @return boolean|null True if nothing went wrong |
|
311 | 315 | */ |
312 | 316 | public function solveInconsistencies(PFUser $user, array $artifacts_ids) { |
313 | 317 | $success = true; |
@@ -327,7 +331,7 @@ discard block |
||
327 | 331 | |
328 | 332 | /** |
329 | 333 | * @see Planning_Milestone::getDuration() |
330 | - * @return float |
|
334 | + * @return integer |
|
331 | 335 | */ |
332 | 336 | public function getDuration() { |
333 | 337 | return $this->duration; |
@@ -51,7 +51,7 @@ |
||
51 | 51 | * - pass $request to actions (e.g. show). |
52 | 52 | * |
53 | 53 | * @param Codendi_Request $request |
54 | - * @param PlanningFactory $planning_factory |
|
54 | + * @param PlanningFactory $pane_factory |
|
55 | 55 | * @param Planning_MilestoneFactory $milestone_factory |
56 | 56 | */ |
57 | 57 | public function __construct( |
@@ -83,7 +83,7 @@ |
||
83 | 83 | * |
84 | 84 | * @param Codendi_Request $request |
85 | 85 | * |
86 | - * @return Planning_MilestoneController |
|
86 | + * @return Planning_VirtualTopMilestoneController |
|
87 | 87 | */ |
88 | 88 | public function getVirtualTopMilestoneController(Codendi_Request $request) { |
89 | 89 | return new Planning_VirtualTopMilestoneController( |