@@ -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()); |
@@ -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( |
@@ -36,6 +36,10 @@ |
||
| 36 | 36 | $this->addCardField('impediment', 2); |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | + /** |
|
| 40 | + * @param string $name |
|
| 41 | + * @param integer $rank |
|
| 42 | + */ |
|
| 39 | 43 | private function addCardField($name, $rank) { |
| 40 | 44 | $sql = "INSERT INTO plugin_cardwall_semantic_cardfields(tracker_id, field_id, rank) |
| 41 | 45 | SELECT tracker_id, id, $rank |
@@ -59,10 +59,16 @@ |
||
| 59 | 59 | $GLOBALS['Response']->sendJSON($json_format); |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | + /** |
|
| 63 | + * @param Tracker_FormElement_Field $field |
|
| 64 | + */ |
|
| 62 | 65 | private function addJsonFieldValues(&$json_format, $field) { |
| 63 | 66 | $json_format['fields'][$field->getName()] = $this->single_card->getFieldJsonValue($this->request->getCurrentUser(), $field); |
| 64 | 67 | } |
| 65 | 68 | |
| 69 | + /** |
|
| 70 | + * @param Tracker_FormElement_Field $field |
|
| 71 | + */ |
|
| 66 | 72 | private function addHTMLFieldValues(&$json_format, $field) { |
| 67 | 73 | $json_format['html_fields'][$field->getName()] = $this->single_card->getFieldHTMLValue($this->request->getCurrentUser(), $field); |
| 68 | 74 | } |