@@ -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 | { |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use eXpansion\Framework\Core\Model\Gui\Widget; |
| 7 | 7 | use eXpansion\Framework\Core\Plugins\Gui\WidgetFactory; |
| 8 | 8 | use FML\Controls\Label; |
| 9 | -use FML\Controls\Quad; |
|
| 10 | 9 | |
| 11 | 10 | class ScriptSettingsFactory extends WidgetFactory |
| 12 | 11 | { |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | /** |
| 118 | 118 | * Recursive search all dome tree in order to find all translatable labels. |
| 119 | 119 | * |
| 120 | - * @param Container|\FML\ManiaLink $control |
|
| 120 | + * @param \FML\ManiaLink $control |
|
| 121 | 121 | * @param $translations |
| 122 | 122 | */ |
| 123 | 123 | protected function getDictionaryInformation($control, &$translations) |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | * |
| 250 | 250 | * @param Format $format New Format |
| 251 | 251 | * |
| 252 | - * @return static |
|
| 252 | + * @return Frame |
|
| 253 | 253 | * @deprecated Use Style |
| 254 | 254 | * @see Style |
| 255 | 255 | */ |
@@ -2,15 +2,11 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace eXpansion\Framework\Core\Model\Gui; |
| 4 | 4 | |
| 5 | -use eXpansion\Framework\Core\Exceptions\Gui\MissingCloseActionException; |
|
| 6 | 5 | use eXpansion\Framework\Core\Helpers\Translations; |
| 7 | 6 | use eXpansion\Framework\Core\Model\UserGroups\Group; |
| 8 | 7 | use FML\Controls\Control; |
| 9 | 8 | use FML\Controls\Frame; |
| 10 | 9 | use FML\Controls\Label; |
| 11 | -use FML\Controls\Quad; |
|
| 12 | -use FML\Controls\Quads\Quad_Bgs1; |
|
| 13 | -use FML\Controls\Quads\Quad_Bgs1InRace; |
|
| 14 | 10 | use FML\Elements\Dico; |
| 15 | 11 | use FML\Elements\Format; |
| 16 | 12 | use FML\Script\Features\ToggleInterface; |
@@ -50,13 +50,13 @@ |
||
| 50 | 50 | { |
| 51 | 51 | $className = $this->className; |
| 52 | 52 | |
| 53 | - $filePath = $this->fileLocator->locate('@' . $this->relativePath); |
|
| 53 | + $filePath = $this->fileLocator->locate('@'.$this->relativePath); |
|
| 54 | 54 | |
| 55 | 55 | return new $className($filePath, $params); |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | public function getFileLocation() { |
| 59 | - return $this->fileLocator->locate('@' . $this->relativePath); |
|
| 59 | + return $this->fileLocator->locate('@'.$this->relativePath); |
|
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | } |