@@ -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) { |
@@ -30,6 +30,6 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | public function __toString() |
| 32 | 32 | { |
| 33 | - return (string)$this->response['response']; |
|
| 33 | + return (string) $this->response['response']; |
|
| 34 | 34 | } |
| 35 | 35 | } |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace eXpansion\Bundle\Maps\Plugins\Gui; |
| 4 | 4 | |
| 5 | -use eXpansion\Bundle\Maps\Plugins\Jukebox; |
|
| 6 | 5 | use eXpansion\Bundle\Maps\Plugins\ManiaExchange; |
| 7 | 6 | use eXpansion\Bundle\Maps\Structure\MxInfo; |
| 8 | 7 | use eXpansion\Framework\Core\Helpers\Http; |
@@ -317,7 +317,7 @@ |
||
| 317 | 317 | */ |
| 318 | 318 | public function callbackSearch(ManialinkInterface $manialink, $login, $params, $arguments) |
| 319 | 319 | { |
| 320 | - $params = (object)$params; |
|
| 320 | + $params = (object) $params; |
|
| 321 | 321 | |
| 322 | 322 | $this->modebox->setSelectedByValue($params->mode); |
| 323 | 323 | $this->orderbox->setSelectedByValue($params->order); |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | PlayerStorage $playerStorage |
| 80 | 80 | ) { |
| 81 | 81 | |
| 82 | - $this->config = (object)Yaml::parse(file_get_contents('./app/config/plugins/mxkarma.yml'))['parameters']; |
|
| 82 | + $this->config = (object) Yaml::parse(file_get_contents('./app/config/plugins/mxkarma.yml'))['parameters']; |
|
| 83 | 83 | $this->console = $console; |
| 84 | 84 | $this->dispatcher = $dispatcher; |
| 85 | 85 | $this->chatNotification = $chatNotification; |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | "vote" => $vote, |
| 98 | 98 | ]; |
| 99 | 99 | |
| 100 | - $this->changedVotes[$player->getLogin()] = new MxVote((object)$obj); |
|
| 100 | + $this->changedVotes[$player->getLogin()] = new MxVote((object) $obj); |
|
| 101 | 101 | $this->chatNotification->sendMessage('expansion_mxkarma.chat.votechanged', $login); |
| 102 | 102 | } |
| 103 | 103 | |
@@ -15,6 +15,6 @@ |
||
| 15 | 15 | public function __construct($obj) |
| 16 | 16 | { |
| 17 | 17 | $this->login = $obj->login; |
| 18 | - $this->vote = (int)$obj->vote; |
|
| 18 | + $this->vote = (int) $obj->vote; |
|
| 19 | 19 | } |
| 20 | 20 | } |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | $curlJob->setUrl($url); |
| 45 | 45 | $curlJob->setOptions($options); |
| 46 | 46 | if (is_object($parameters)) { |
| 47 | - $parameters = (array)$parameters; |
|
| 47 | + $parameters = (array) $parameters; |
|
| 48 | 48 | } |
| 49 | 49 | $curlJob->setParameters($parameters); |
| 50 | 50 | $curlJob->setAdditionalData($additionalData); |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | public function supports($class) |
| 41 | 41 | { |
| 42 | - return $class == ParentItem::class; |
|
| 42 | + return $class == ParentItem::class; |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | /** |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use eXpansion\Bundle\Menu\Services\ItemBuilder; |
| 8 | 8 | use eXpansion\Bundle\Menu\Services\ItemFactoryInterface; |
| 9 | 9 | use eXpansion\Framework\AdminGroups\Helpers\AdminGroups; |
| 10 | -use FML\Controls\Quad; |
|
| 11 | 10 | |
| 12 | 11 | /** |
| 13 | 12 | * Class ItemParentFactory |
@@ -12,9 +12,7 @@ |
||
| 12 | 12 | use eXpansion\Framework\Core\Plugins\Gui\GridWindowFactory; |
| 13 | 13 | use eXpansion\Framework\Core\Services\Console; |
| 14 | 14 | use FML\Controls\Frame; |
| 15 | -use FML\Script\Features\ScriptFeature; |
|
| 16 | 15 | use FML\Script\Script; |
| 17 | -use FML\Script\ScriptLabel; |
|
| 18 | 16 | use Maniaplanet\DedicatedServer\Connection; |
| 19 | 17 | |
| 20 | 18 | |
@@ -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 | { |