@@ -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 | } |
@@ -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 | } |
@@ -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 | } |