@@ -57,6 +57,7 @@ discard block |
||
| 57 | 57 | * Add a value to the indexed item |
| 58 | 58 | * @param string Key |
| 59 | 59 | * @param string Value |
| 60 | + * @param string $key |
|
| 60 | 61 | * @return void |
| 61 | 62 | */ |
| 62 | 63 | function addValue($key, $value) { |
@@ -109,6 +110,7 @@ discard block |
||
| 109 | 110 | |
| 110 | 111 | /** |
| 111 | 112 | * Let add tool id term |
| 113 | + * @param string $tool_id |
|
| 112 | 114 | */ |
| 113 | 115 | public function addToolId($tool_id) |
| 114 | 116 | { |
@@ -59,7 +59,8 @@ discard block |
||
| 59 | 59 | * @param string Value |
| 60 | 60 | * @return void |
| 61 | 61 | */ |
| 62 | - function addValue($key, $value) { |
|
| 62 | + function addValue($key, $value) |
|
| 63 | + { |
|
| 63 | 64 | $this->data[$key] = $value; |
| 64 | 65 | } |
| 65 | 66 | |
@@ -68,7 +69,8 @@ discard block |
||
| 68 | 69 | * @param string Term |
| 69 | 70 | * @param string Flag (one character) |
| 70 | 71 | */ |
| 71 | - public function addTerm($term, $flag) { |
|
| 72 | + public function addTerm($term, $flag) |
|
| 73 | + { |
|
| 72 | 74 | global $charset; |
| 73 | 75 | if (strlen($flag) == 1) { |
| 74 | 76 | $this->terms[] = array('name' => api_convert_encoding(stripslashes($term), 'UTF-8', $charset), 'flag' => $flag); |
@@ -78,14 +80,16 @@ discard block |
||
| 78 | 80 | /** |
| 79 | 81 | * Class constructor. Just generates an empty 'data' array attribute |
| 80 | 82 | */ |
| 81 | - function __construct() { |
|
| 83 | + function __construct() |
|
| 84 | + { |
|
| 82 | 85 | $this->data = array(); |
| 83 | 86 | } |
| 84 | 87 | |
| 85 | 88 | /** |
| 86 | 89 | * Class desctructor. Unsets attributes. |
| 87 | 90 | */ |
| 88 | - function __destruct() { |
|
| 91 | + function __destruct() |
|
| 92 | + { |
|
| 89 | 93 | unset($this->data); |
| 90 | 94 | unset($this->terms); |
| 91 | 95 | } |
@@ -392,7 +392,7 @@ discard block |
||
| 392 | 392 | } |
| 393 | 393 | |
| 394 | 394 | /** |
| 395 | - * @return ArrayCollection |
|
| 395 | + * @return CTool[] |
|
| 396 | 396 | */ |
| 397 | 397 | public function getTools() |
| 398 | 398 | { |
@@ -427,7 +427,7 @@ discard block |
||
| 427 | 427 | } |
| 428 | 428 | |
| 429 | 429 | /** |
| 430 | - * @param $urls |
|
| 430 | + * @param ArrayCollection $urls |
|
| 431 | 431 | */ |
| 432 | 432 | public function setUrls($urls) |
| 433 | 433 | { |
@@ -1244,7 +1244,7 @@ discard block |
||
| 1244 | 1244 | } |
| 1245 | 1245 | |
| 1246 | 1246 | /** |
| 1247 | - * @return array |
|
| 1247 | + * @return string[] |
|
| 1248 | 1248 | */ |
| 1249 | 1249 | public static function getStatusList() |
| 1250 | 1250 | { |
@@ -60,6 +60,11 @@ |
||
| 60 | 60 | */ |
| 61 | 61 | protected $parent = null; |
| 62 | 62 | |
| 63 | + /** |
|
| 64 | + * @param string $id |
|
| 65 | + * @param string $label |
|
| 66 | + * @param string $route |
|
| 67 | + */ |
|
| 63 | 68 | function __construct( |
| 64 | 69 | $id, |
| 65 | 70 | $label, |
@@ -18,6 +18,9 @@ |
||
| 18 | 18 | |
| 19 | 19 | protected $icon; |
| 20 | 20 | |
| 21 | + /** |
|
| 22 | + * @param string $message |
|
| 23 | + */ |
|
| 21 | 24 | function __construct($message = null, $type = 'info', $icon = 'fa fa-warning') |
| 22 | 25 | { |
| 23 | 26 | $this->message = $message; |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | protected $title; |
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | - * @param null $title |
|
| 53 | + * @param string $title |
|
| 54 | 54 | * @param int $progress |
| 55 | 55 | * @param string $color |
| 56 | 56 | */ |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | /** |
| 96 | - * @return mixed |
|
| 96 | + * @return integer |
|
| 97 | 97 | */ |
| 98 | 98 | public function getProgress() |
| 99 | 99 | { |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | * |
| 94 | 94 | * @param string $rank |
| 95 | 95 | * |
| 96 | - * @return Question |
|
| 96 | + * @return Category |
|
| 97 | 97 | */ |
| 98 | 98 | public function setRank($rank) |
| 99 | 99 | { |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | /** |
| 202 | 202 | * Get questions |
| 203 | 203 | * |
| 204 | - * @return \Doctrine\Common\Collections\Collection |
|
| 204 | + * @return Question[] |
|
| 205 | 205 | */ |
| 206 | 206 | public function getQuestions() |
| 207 | 207 | { |
@@ -117,6 +117,9 @@ discard block |
||
| 117 | 117 | } |
| 118 | 118 | } |
| 119 | 119 | |
| 120 | + /** |
|
| 121 | + * @param string $name |
|
| 122 | + */ |
|
| 120 | 123 | public function set_name($name) |
| 121 | 124 | { |
| 122 | 125 | if ($this->is_valid_link()) { |
@@ -124,6 +127,9 @@ discard block |
||
| 124 | 127 | } |
| 125 | 128 | } |
| 126 | 129 | |
| 130 | + /** |
|
| 131 | + * @param string $description |
|
| 132 | + */ |
|
| 127 | 133 | public function set_description($description) |
| 128 | 134 | { |
| 129 | 135 | if ($this->is_valid_link()) { |
@@ -131,6 +137,9 @@ discard block |
||
| 131 | 137 | } |
| 132 | 138 | } |
| 133 | 139 | |
| 140 | + /** |
|
| 141 | + * @param integer $max |
|
| 142 | + */ |
|
| 134 | 143 | public function set_max($max) |
| 135 | 144 | { |
| 136 | 145 | if ($this->is_valid_link()) { |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | 95 | * Return an array of all known link types |
| 96 | - * @return array |
|
| 96 | + * @return integer[] |
|
| 97 | 97 | */ |
| 98 | 98 | public static function get_all_types() |
| 99 | 99 | { |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | interface HookResubscribeObserverInterface extends HookObserverInterface |
| 13 | 13 | { |
| 14 | 14 | /** |
| 15 | - * @param HookResubscribeObserverInterface $hook |
|
| 15 | + * @param HookResubscribeEventInterface $hook |
|
| 16 | 16 | * |
| 17 | 17 | * @return int |
| 18 | 18 | */ |