@@ -78,6 +78,9 @@ |
||
78 | 78 | $this->linker = new Planning_ArtifactLinker($this->artifact_factory, $planning_factory); |
79 | 79 | } |
80 | 80 | |
81 | + /** |
|
82 | + * @param integer $id |
|
83 | + */ |
|
81 | 84 | private function getArtifact($id, Tracker $tracker, array $ancestors) { |
82 | 85 | $artifact = aMockArtifact()->withId($id)->withTracker($tracker)->build(); |
83 | 86 | stub($artifact)->getAllAncestors($this->user)->returns($ancestors); |
@@ -59,6 +59,9 @@ |
||
59 | 59 | $this->event_listener = new Planning_ArtifactParentsSelectorEventListener($this->artifact_factory, $this->selector, $this->request); |
60 | 60 | } |
61 | 61 | |
62 | + /** |
|
63 | + * @param integer $id |
|
64 | + */ |
|
62 | 65 | private function getArtifact($id, Tracker $tracker) { |
63 | 66 | $artifact = aMockArtifact()->withId($id)->withTracker($tracker)->build(); |
64 | 67 | stub($this->artifact_factory)->getArtifactById($id)->returns($artifact); |
@@ -118,6 +118,9 @@ |
||
118 | 118 | $this->selector = new Planning_ArtifactParentsSelector($this->artifact_factory, $planning_factory, $this->milestone_factory, $hierarchy_factory); |
119 | 119 | } |
120 | 120 | |
121 | + /** |
|
122 | + * @param integer $id |
|
123 | + */ |
|
121 | 124 | private function getArtifact($id, Tracker $tracker, array $ancestors) { |
122 | 125 | reset($ancestors); |
123 | 126 | $parent = current($ancestors); |
@@ -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()); |
@@ -71,6 +71,9 @@ |
||
71 | 71 | } |
72 | 72 | } |
73 | 73 | |
74 | + /** |
|
75 | + * @param integer $array_size |
|
76 | + */ |
|
74 | 77 | private function getQuartilesIndexes($array_size) { |
75 | 78 | $array_size--; |
76 | 79 | return array( |