@@ -17,6 +17,6 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * Placeholder |
| 19 | 19 | */ |
| 20 | -class BBCodeException extends Exception{ |
|
| 20 | +class BBCodeException extends Exception { |
|
| 21 | 21 | |
| 22 | 22 | } |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * @see \chillerlan\bbcode\Parser::__parse() |
| 21 | 21 | * @see \chillerlan\bbcode\Modules\BaseModule::setBBTemp() |
| 22 | 22 | */ |
| 23 | -class BBTemp{ |
|
| 23 | +class BBTemp { |
|
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * The current bbcode tag |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | /** |
| 16 | 16 | * |
| 17 | 17 | */ |
| 18 | -class Chinese extends LanguageBase implements LanguageInterface{ |
|
| 18 | +class Chinese extends LanguageBase implements LanguageInterface { |
|
| 19 | 19 | |
| 20 | 20 | public $parserExceptionCallback = ''; |
| 21 | 21 | public $parserExceptionMatchall = ''; |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | /** |
| 16 | 16 | * property -> LanguageInterface method name |
| 17 | 17 | */ |
| 18 | -class DefaultStrings extends LanguageBase implements LanguageInterface{ |
|
| 18 | +class DefaultStrings extends LanguageBase implements LanguageInterface { |
|
| 19 | 19 | |
| 20 | 20 | public $parserExceptionCallback = 'parserExceptionCallback'; |
| 21 | 21 | public $parserExceptionMatchall = 'parserExceptionMatchall'; |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | /** |
| 16 | 16 | * |
| 17 | 17 | */ |
| 18 | -class English extends LanguageBase implements LanguageInterface{ |
|
| 18 | +class English extends LanguageBase implements LanguageInterface { |
|
| 19 | 19 | |
| 20 | 20 | public $parserExceptionCallback = 'preg_replace_callback() died on [%1$s] due to a %2$s (%3$s)'; |
| 21 | 21 | public $parserExceptionMatchall = 'preg_match_all() died due to a %1$s (%2$s)'; |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | /** |
| 16 | 16 | * |
| 17 | 17 | */ |
| 18 | -class French extends LanguageBase implements LanguageInterface{ |
|
| 18 | +class French extends LanguageBase implements LanguageInterface { |
|
| 19 | 19 | |
| 20 | 20 | public $parserExceptionCallback = ''; |
| 21 | 21 | public $parserExceptionMatchall = ''; |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | /** |
| 16 | 16 | * |
| 17 | 17 | */ |
| 18 | -class German extends LanguageBase implements LanguageInterface{ |
|
| 18 | +class German extends LanguageBase implements LanguageInterface { |
|
| 19 | 19 | |
| 20 | 20 | public $parserExceptionCallback = 'preg_replace_callback() verursachte einen %2$s (%3$s) am tag [%1$s]'; |
| 21 | 21 | public $parserExceptionMatchall = 'preg_match_all() verursachte einen %1$s (%2$s)'; |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | * @method string expanderDisplaySpoiler($override_language = null) |
| 35 | 35 | * @method string expanderDisplayTrigger($override_language = null) |
| 36 | 36 | */ |
| 37 | -class LanguageBase{ |
|
| 37 | +class LanguageBase { |
|
| 38 | 38 | use ClassLoaderTrait; |
| 39 | 39 | |
| 40 | 40 | /** |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | * |
| 46 | 46 | * @return mixed |
| 47 | 47 | */ |
| 48 | - public function __call($name, $arguments){ |
|
| 48 | + public function __call($name, $arguments) { |
|
| 49 | 49 | return $this->string($name, ...$arguments); |
| 50 | 50 | } |
| 51 | 51 | |
@@ -58,9 +58,9 @@ discard block |
||
| 58 | 58 | * @return mixed |
| 59 | 59 | * @throws \chillerlan\bbcode\BBCodeException |
| 60 | 60 | */ |
| 61 | - public function string($key, $override_language = null){ |
|
| 61 | + public function string($key, $override_language = null) { |
|
| 62 | 62 | |
| 63 | - if($override_language){ |
|
| 63 | + if ($override_language) { |
|
| 64 | 64 | return $this->__loadClass($override_language, LanguageInterface::class)->{$key}(); |
| 65 | 65 | } |
| 66 | 66 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | * @method string expanderDisplayTrigger($override_language = null) |
| 35 | 35 | * |
| 36 | 36 | */ |
| 37 | -interface LanguageInterface{ |
|
| 37 | +interface LanguageInterface { |
|
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * It's magic. |