@@ -39,11 +39,11 @@ |
||
| 39 | 39 | $this->supportedLocales = $supportedLocales; |
| 40 | 40 | |
| 41 | 41 | foreach ($colorCodes as $code => $colorCode) { |
| 42 | - $this->replacementPatterns["{" . $code . "}"] = '$z' . $colorCode; |
|
| 42 | + $this->replacementPatterns["{".$code."}"] = '$z'.$colorCode; |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | foreach ($glyphIcons as $name => $icon) { |
| 46 | - $this->replacementPatterns["|" . $name . "|"] = $icon; |
|
| 46 | + $this->replacementPatterns["|".$name."|"] = $icon; |
|
| 47 | 47 | } |
| 48 | 48 | } |
| 49 | 49 | |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | public function getTranslations($id, $parameters = []) |
| 79 | 79 | { |
| 80 | 80 | $messages = []; |
| 81 | - // $parameters = array_merge($this->replacementPatterns, $parameters); |
|
| 81 | + // $parameters = array_merge($this->replacementPatterns, $parameters); |
|
| 82 | 82 | |
| 83 | 83 | foreach ($this->supportedLocales as $locale) { |
| 84 | 84 | $message = $this->getTranslation($id, $parameters, $locale); |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | public function load(array $configs, ContainerBuilder $container) |
| 21 | 21 | { |
| 22 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 22 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 23 | 23 | $loader->load('chat_commands.yml'); |
| 24 | 24 | $loader->load('plugins.yml'); |
| 25 | 25 | } |
@@ -64,10 +64,10 @@ |
||
| 64 | 64 | * Usage: used for retrieving partials for chat messages |
| 65 | 65 | * * defaults to English locale, without parameters |
| 66 | 66 | * |
| 67 | - * @param $messageId |
|
| 67 | + * @param string $messageId |
|
| 68 | 68 | * @param array $parameters |
| 69 | 69 | * @param string $locale |
| 70 | - * @return mixed |
|
| 70 | + * @return string |
|
| 71 | 71 | */ |
| 72 | 72 | public function getMessage($messageId, $parameters = [], $locale = "en") |
| 73 | 73 | { |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | ->setAreaColor("3af") |
| 56 | 56 | ->setPosition(100, 60) |
| 57 | 57 | ->setScriptEvents(true); |
| 58 | - // $manialink->addChild($label); |
|
| 58 | + // $manialink->addChild($label); |
|
| 59 | 59 | |
| 60 | 60 | $btnFrame = Frame::create("buttons"); |
| 61 | 61 | $btnFrame->setZ(101)->setPosition(0, 30); |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | $label = clone $baseLabel; |
| 103 | 103 | $label->setPosition(0, $y -= 12) |
| 104 | 104 | ->setText("Back to game") |
| 105 | - // ->setTextPrefix(" |
|