@@ -66,6 +66,9 @@ |
||
| 66 | 66 | return parent::render($domDocument); |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | + /** |
|
| 70 | + * @param boolean $translate |
|
| 71 | + */ |
|
| 69 | 72 | public function setTranslate($translate) |
| 70 | 73 | { |
| 71 | 74 | if ($translate) { |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | /** |
| 145 | - * @return mixed |
|
| 145 | + * @return double |
|
| 146 | 146 | */ |
| 147 | 147 | public function getY() |
| 148 | 148 | { |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | } |
| 183 | 183 | |
| 184 | 184 | /** |
| 185 | - * @param object $element |
|
| 185 | + * @param Renderable $element |
|
| 186 | 186 | */ |
| 187 | 187 | public function addChild(Renderable $element) |
| 188 | 188 | { |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | - * @return ParentItem|null |
|
| 50 | + * @return ItemInterface|null |
|
| 51 | 51 | */ |
| 52 | 52 | public function getRootItem() |
| 53 | 53 | { |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | * Create tabs level menu. |
| 177 | 177 | * |
| 178 | 178 | * @param ManialinkInterface $manialink |
| 179 | - * @param ParentItem $rootItem |
|
| 179 | + * @param ItemInterface|null $rootItem |
|
| 180 | 180 | * @param $openId |
| 181 | 181 | */ |
| 182 | 182 | protected function createTabsMenu(ManialinkInterface $manialink, ParentItem $rootItem, $openId) |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | * @param Manialink $manialink |
| 195 | 195 | * @param Frame $frame |
| 196 | 196 | * @param ParentItem $parentItem |
| 197 | - * @param $displayLevel |
|
| 197 | + * @param integer $displayLevel |
|
| 198 | 198 | */ |
| 199 | 199 | protected function createSubMenu(Manialink $manialink, Frame $frame, ParentItem $parentItem, $displayLevel) |
| 200 | 200 | { |
@@ -115,6 +115,9 @@ |
||
| 115 | 115 | } |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | + /** |
|
| 119 | + * @param string $permission |
|
| 120 | + */ |
|
| 118 | 121 | protected function hasLoginPermission($login, $permission) |
| 119 | 122 | { |
| 120 | 123 | if ($login instanceof Player) { |
@@ -320,7 +320,7 @@ |
||
| 320 | 320 | /** |
| 321 | 321 | * Remove special characters from map name |
| 322 | 322 | * |
| 323 | - * @param $string |
|
| 323 | + * @param string $string |
|
| 324 | 324 | * @return mixed |
| 325 | 325 | */ |
| 326 | 326 | protected function cleanString($string) |
@@ -169,6 +169,9 @@ |
||
| 169 | 169 | |
| 170 | 170 | } |
| 171 | 171 | |
| 172 | + /** |
|
| 173 | + * @param string $message |
|
| 174 | + */ |
|
| 172 | 175 | public function setMessage($message) |
| 173 | 176 | { |
| 174 | 177 | $this->label->setTextId($message); |
@@ -129,8 +129,8 @@ |
||
| 129 | 129 | |
| 130 | 130 | /** |
| 131 | 131 | * @param Player $player |
| 132 | - * @param $text |
|
| 133 | - * @param $color |
|
| 132 | + * @param string $text |
|
| 133 | + * @param string $color |
|
| 134 | 134 | * @param null $group |
| 135 | 135 | */ |
| 136 | 136 | private function sendChat(Player $player, $text, $color, $group = null) |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | /** |
| 147 | - * @return mixed |
|
| 147 | + * @return double |
|
| 148 | 148 | */ |
| 149 | 149 | public function getWidth() |
| 150 | 150 | { |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | } |
| 164 | 164 | |
| 165 | 165 | /** |
| 166 | - * @return mixed |
|
| 166 | + * @return double |
|
| 167 | 167 | */ |
| 168 | 168 | public function getHeight() |
| 169 | 169 | { |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | } |
| 183 | 183 | |
| 184 | 184 | /** |
| 185 | - * @return mixed |
|
| 185 | + * @return string |
|
| 186 | 186 | */ |
| 187 | 187 | public function getAction() |
| 188 | 188 | { |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | } |
| 202 | 202 | |
| 203 | 203 | /** |
| 204 | - * @return mixed |
|
| 204 | + * @return string |
|
| 205 | 205 | */ |
| 206 | 206 | public function getId() |
| 207 | 207 | { |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | } |
| 210 | 210 | |
| 211 | 211 | /** |
| 212 | - * @param mixed $id |
|
| 212 | + * @param string $id |
|
| 213 | 213 | * @return WidgetBackground |
| 214 | 214 | */ |
| 215 | 215 | public function setId($id) |