@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | * @param PluginManager $pluginManager |
| 38 | 38 | * @param DataProviderManager $dataProviderManager |
| 39 | 39 | * @param Connection $connection |
| 40 | - * @param ConsoleOutputInterface $output |
|
| 40 | + * @param Console $output |
|
| 41 | 41 | */ |
| 42 | 42 | public function __construct( |
| 43 | 43 | PluginManager $pluginManager, |
@@ -55,7 +55,6 @@ discard block |
||
| 55 | 55 | /** |
| 56 | 56 | * Initialize eXpansion. |
| 57 | 57 | * |
| 58 | - * @param OutputInterface $output |
|
| 59 | 58 | * @return $this |
| 60 | 59 | */ |
| 61 | 60 | public function init(ConsoleOutputInterface $console) |
@@ -82,7 +81,6 @@ discard block |
||
| 82 | 81 | /** |
| 83 | 82 | * Run eXpansion |
| 84 | 83 | * |
| 85 | - * @param OutputInterface $output |
|
| 86 | 84 | */ |
| 87 | 85 | public function run() |
| 88 | 86 | { |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | if (!empty($calls)) { |
| 106 | 106 | foreach ($calls as $call) { |
| 107 | 107 | $method = preg_replace('/^[[:alpha:]]+\./', '', $call[0]); // remove trailing "Whatever." |
| 108 | - $params = (array)$call[1]; |
|
| 108 | + $params = (array) $call[1]; |
|
| 109 | 109 | |
| 110 | 110 | $this->dataProviderManager->dispatch($method, $params); |
| 111 | 111 | } |
@@ -31,6 +31,6 @@ |
||
| 31 | 31 | public function onPlayerChat(Player $player, $text) |
| 32 | 32 | { |
| 33 | 33 | $text = trim($text); |
| 34 | - $this->console->writeln('$ff0[' . trim($player->getNickName()) . '$ff0] ' . $text); |
|
| 34 | + $this->console->writeln('$ff0['.trim($player->getNickName()).'$ff0] '.$text); |
|
| 35 | 35 | } |
| 36 | 36 | } |
@@ -121,9 +121,9 @@ discard block |
||
| 121 | 121 | foreach ($matches[0] as $i => $rgb) { |
| 122 | 122 | $code = $this->fixColors(hexdec($rgb[1]), hexdec($rgb[2]), hexdec($rgb[3])); |
| 123 | 123 | if (array_key_exists($code, $array)) { |
| 124 | - $out .= $array[$code] . $this->stripStyles($split[$i + 1]); |
|
| 124 | + $out .= $array[$code].$this->stripStyles($split[$i + 1]); |
|
| 125 | 125 | } else { |
| 126 | - $out .= self::white . $this->stripStyles($split[$i + 1]); |
|
| 126 | + $out .= self::white.$this->stripStyles($split[$i + 1]); |
|
| 127 | 127 | } |
| 128 | 128 | $end = $this->stripStyles($split[$i + 1]); |
| 129 | 129 | } |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | $end = ""; |
| 138 | 138 | } |
| 139 | 139 | |
| 140 | - $out = self::white . $this->stripStyles(reset($split)) . $out . $end; |
|
| 140 | + $out = self::white.$this->stripStyles(reset($split)).$out.$end; |
|
| 141 | 141 | } else { |
| 142 | 142 | $out = $this->stripStyles($string); |
| 143 | 143 | } |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | $out = "222"; |
| 195 | 195 | } |
| 196 | 196 | } else { |
| 197 | - $out = $this->convert($r) . $this->convert($g) . $this->convert($b); |
|
| 197 | + $out = $this->convert($r).$this->convert($g).$this->convert($b); |
|
| 198 | 198 | } |
| 199 | 199 | return $out; |
| 200 | 200 | } |