@@ -43,7 +43,6 @@ |
||
43 | 43 | * - pass $request to actions (e.g. show). |
44 | 44 | * |
45 | 45 | * @param Codendi_Request $request |
46 | - * @param PlanningFactory $planning_factory |
|
47 | 46 | * @param Planning_MilestoneFactory $milestone_factory |
48 | 47 | */ |
49 | 48 | public function __construct( |
@@ -89,8 +89,7 @@ discard block |
||
89 | 89 | } |
90 | 90 | |
91 | 91 | /** |
92 | - * @param Planning_Milestone $milestone |
|
93 | - * @return int |
|
92 | + * @return string |
|
94 | 93 | */ |
95 | 94 | private function getMilestoneArtifactId() { |
96 | 95 | return self::TOP_MILESTONE_DUMMY_ARTIFACT_ID; |
@@ -107,7 +106,7 @@ discard block |
||
107 | 106 | return $this->active_pane[$milestone_artifact_id]; |
108 | 107 | } |
109 | 108 | |
110 | - /** @return AgileDashboard_PaneInfo[] */ |
|
109 | + /** @return AgileDashboard_PaneInfo */ |
|
111 | 110 | public function getListOfPaneInfo(Planning_Milestone $milestone) { |
112 | 111 | $milestone_artifact_id = $this->getMilestoneArtifactId(); |
113 | 112 | |
@@ -150,7 +149,7 @@ discard block |
||
150 | 149 | } |
151 | 150 | |
152 | 151 | /** |
153 | - * @return \AgileDashboard_Milestone_Pane_Planning_PlanningPaneInfo |
|
152 | + * @return null|AgileDashboard_Milestone_Pane_TopPlanning_TopPlanningPaneInfo |
|
154 | 153 | */ |
155 | 154 | private function getTopPlanningPaneInfo(Planning_Milestone $milestone) { |
156 | 155 | $milestone_artifact_id = $this->getMilestoneArtifactId(); |
@@ -174,7 +173,7 @@ discard block |
||
174 | 173 | } |
175 | 174 | |
176 | 175 | /** |
177 | - * @return \AgileDashboard_Milestone_Pane_Planning_PlanningPaneInfo |
|
176 | + * @return null|AgileDashboard_Milestone_Pane_TopPlanning_TopPlanningV2PaneInfo |
|
178 | 177 | */ |
179 | 178 | private function getTopPlanningV2PaneInfo(Planning_Milestone $milestone) { |
180 | 179 | $milestone_artifact_id = $this->getMilestoneArtifactId(); |
@@ -70,6 +70,9 @@ |
||
70 | 70 | return $this; |
71 | 71 | } |
72 | 72 | |
73 | + /** |
|
74 | + * @param integer $planning_id |
|
75 | + */ |
|
73 | 76 | public function withPlanningId($planning_id) { |
74 | 77 | $this->withPlanning(aPlanning()->withId($planning_id)->build()); |
75 | 78 | return $this; |
@@ -45,6 +45,9 @@ discard block |
||
45 | 45 | return $this; |
46 | 46 | } |
47 | 47 | |
48 | + /** |
|
49 | + * @param string $name |
|
50 | + */ |
|
48 | 51 | public function withName($name) { |
49 | 52 | $this->name = $name; |
50 | 53 | return $this; |
@@ -55,11 +58,17 @@ discard block |
||
55 | 58 | return $this; |
56 | 59 | } |
57 | 60 | |
61 | + /** |
|
62 | + * @param integer $group_id |
|
63 | + */ |
|
58 | 64 | public function withGroupId($group_id) { |
59 | 65 | $this->group_id = $group_id; |
60 | 66 | return $this; |
61 | 67 | } |
62 | 68 | |
69 | + /** |
|
70 | + * @param integer $planning_tracker_id |
|
71 | + */ |
|
63 | 72 | public function withPlanningTrackerId($planning_tracker_id) { |
64 | 73 | $this->planning_tracker_id = $planning_tracker_id; |
65 | 74 | return $this; |
@@ -71,6 +80,9 @@ discard block |
||
71 | 80 | return $this; |
72 | 81 | } |
73 | 82 | |
83 | + /** |
|
84 | + * @param Tracker $backlog_tracker |
|
85 | + */ |
|
74 | 86 | public function withBacklogTracker($backlog_tracker) { |
75 | 87 | $this->backlog_tracker_ids[] = $backlog_tracker->getId(); |
76 | 88 | $this->backlog_trackers[] = $backlog_tracker; |
@@ -22,12 +22,19 @@ |
||
22 | 22 | |
23 | 23 | abstract class Planning_MilestoneBaseTest extends TuleapTestCase { |
24 | 24 | |
25 | + /** |
|
26 | + * @param integer $id |
|
27 | + */ |
|
25 | 28 | public function anArtifactWithId($id) { |
26 | 29 | $artifact = aMockArtifact()->withId($id)->build(); |
27 | 30 | stub($artifact)->getAllAncestors()->returns(array()); |
28 | 31 | return $artifact; |
29 | 32 | } |
30 | 33 | |
34 | + /** |
|
35 | + * @param integer $id |
|
36 | + * @param Tracker_Artifact[] $linked_artifacts |
|
37 | + */ |
|
31 | 38 | public function anArtifactWithIdAndUniqueLinkedArtifacts($id, $linked_artifacts) { |
32 | 39 | $artifact = aMockArtifact()->withId($id) |
33 | 40 | ->withUniqueLinkedArtifacts($linked_artifacts) |
@@ -126,6 +126,9 @@ discard block |
||
126 | 126 | $this->assertFalse($new_state_first_column['is_open']); |
127 | 127 | } |
128 | 128 | |
129 | + /** |
|
130 | + * @param string $new_label |
|
131 | + */ |
|
129 | 132 | private function assertThatLabelIsUpdated($new_label) { |
130 | 133 | $patch_response = $this->getResponse($this->client->patch( |
131 | 134 | 'kanban/'. REST_TestDataBuilder::KANBAN_ID, |
@@ -223,6 +226,9 @@ discard block |
||
223 | 226 | ); |
224 | 227 | } |
225 | 228 | |
229 | + /** |
|
230 | + * @param string $uri |
|
231 | + */ |
|
226 | 232 | private function getIdsOrderedByPriority($uri) { |
227 | 233 | $response = $this->getResponse($this->client->get($uri))->json(); |
228 | 234 | $actual_order = array(); |
@@ -41,9 +41,9 @@ discard block |
||
41 | 41 | |
42 | 42 | /** |
43 | 43 | * |
44 | - * @param array $files Data table containing the name of data files |
|
45 | 44 | * @param array $datas Data table containing picked datas |
46 | 45 | * @param string $context_datas Will be written in the log files. |
46 | + * @param string $storage_directory |
|
47 | 47 | * @throws Exception Both arrays must have the same size. |
48 | 48 | */ |
49 | 49 | public function __construct($storage_directory, $datas, $context_datas) { |
@@ -93,6 +93,10 @@ discard block |
||
93 | 93 | } |
94 | 94 | } |
95 | 95 | |
96 | + /** |
|
97 | + * @param string $separator |
|
98 | + * @param integer $column |
|
99 | + */ |
|
96 | 100 | private function extractDatasFromFormattedFile($file, /* & $array, */ $separator, $column = null) { |
97 | 101 | $returned_array = array(); |
98 | 102 | foreach (file($file, FILE_IGNORE_NEW_LINES) as $line) { |
@@ -102,6 +106,10 @@ discard block |
||
102 | 106 | return $returned_array; |
103 | 107 | } |
104 | 108 | |
109 | + /** |
|
110 | + * @param string $file_name |
|
111 | + * @param string $mode |
|
112 | + */ |
|
105 | 113 | private function writeArrayToFile($file_name, $mode, $array) { |
106 | 114 | $file = fopen($file_name, $mode); |
107 | 115 | foreach ($array as $line) { |
@@ -110,6 +118,10 @@ discard block |
||
110 | 118 | fclose($file); |
111 | 119 | } |
112 | 120 | |
121 | + /** |
|
122 | + * @param string $file_name |
|
123 | + * @param string $documentation |
|
124 | + */ |
|
113 | 125 | private function writeDocumentationtoFile($file_name, $documentation) { |
114 | 126 | $file = fopen($file_name, 'a'); |
115 | 127 | fwrite($file, $documentation); |
@@ -150,6 +162,9 @@ discard block |
||
150 | 162 | fclose($output_file); |
151 | 163 | } |
152 | 164 | |
165 | + /** |
|
166 | + * @return string |
|
167 | + */ |
|
153 | 168 | private function formatCell($index, $array, $cell_content) { |
154 | 169 | if ($index != count($array) - 1) { |
155 | 170 | $cell_content .= ","; |
@@ -166,6 +181,9 @@ discard block |
||
166 | 181 | return $column; |
167 | 182 | } |
168 | 183 | |
184 | + /** |
|
185 | + * @param string[] $file_extensions |
|
186 | + */ |
|
169 | 187 | private function removeFilesWithExtensions($file_extensions) { |
170 | 188 | foreach ($file_extensions as $file_extension) { |
171 | 189 | $files_list = glob('*' . $file_extension); |
@@ -160,7 +160,6 @@ |
||
160 | 160 | |
161 | 161 | /** |
162 | 162 | * for hook administration :display an URL to access Boomerang statistics.. |
163 | - * @param array $params:contains the data which comes from the envent listened. |
|
164 | 163 | */ |
165 | 164 | function siteAdminHooks($params) { |
166 | 165 | global $Language; |
@@ -21,6 +21,9 @@ |
||
21 | 21 | |
22 | 22 | class BoomerangPluginInfo extends PluginFileInfo { |
23 | 23 | |
24 | + /** |
|
25 | + * @param BoomerangPlugin $plugin |
|
26 | + */ |
|
24 | 27 | public function __construct($plugin) { |
25 | 28 | parent::__construct($plugin, 'config'); |
26 | 29 | $this->setPluginDescriptor(new BoomerangPluginDescriptor()); |