@@ -43,7 +43,7 @@ |
||
| 43 | 43 | public const POLISH = 'polish'; |
| 44 | 44 | public const LITHUANIAN = 'lithuanian'; |
| 45 | 45 | public const ICELANDIC = 'icelandic'; |
| 46 | - public const DEFAULT = ''; |
|
| 46 | + public const default = ''; |
|
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * A list of supported surname traditions and their names. |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | $this->register(self::POLISH, new PolishSurnameTradition()); |
| 53 | 53 | $this->register(self::LITHUANIAN, new LithuanianSurnameTradition()); |
| 54 | 54 | $this->register(self::ICELANDIC, new IcelandicSurnameTradition()); |
| 55 | - $this->register(self::DEFAULT, new DefaultSurnameTradition()); |
|
| 55 | + $this->register(self::default, new DefaultSurnameTradition()); |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | /** |
@@ -99,8 +99,8 @@ |
||
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | // Take the first line |
| 102 | - $html = strtr($html, ["</p>\n<p>" => MarkdownFactory::BREAK . MarkdownFactory::BREAK]); |
|
| 103 | - [$html] = explode(MarkdownFactory::BREAK, strip_tags(trim($html), ['br'])); |
|
| 102 | + $html = strtr($html, ["</p>\n<p>" => MarkdownFactory::break . MarkdownFactory::break]); |
|
| 103 | + [$html] = explode(MarkdownFactory::break, strip_tags(trim($html), ['br'])); |
|
| 104 | 104 | |
| 105 | 105 | if ($html !== '') { |
| 106 | 106 | $html = htmlspecialchars_decode($html, ENT_QUOTES); |
@@ -99,8 +99,8 @@ discard block |
||
| 99 | 99 | * |
| 100 | 100 | * @return ResponseInterface |
| 101 | 101 | */ |
| 102 | - public function response(string|array|object $content = '', int $code = StatusCodeInterface::STATUS_OK, array $headers = []): ResponseInterface |
|
| 103 | ->>>>>>> 90fa61f704... PHP8.0 - Union types |
|
| 102 | + public function response(string | array | object $content = '', int $code = StatusCodeInterface::STATUS_OK, array $headers = []): ResponseInterface |
|
| 103 | +>> >> >> > 90fa61f704... PHP8.0 - Union types |
|
| 104 | 104 | { |
| 105 | 105 | if ($content === '' && $code === StatusCodeInterface::STATUS_OK) { |
| 106 | 106 | $code = StatusCodeInterface::STATUS_NO_CONTENT; |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | if (is_string($content)) { |
| 110 | 110 | $headers['content-type'] ??= 'text/html; charset=UTF-8'; |
| 111 | 111 | } else { |
| 112 | - $content = json_encode($content, JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE); |
|
| 112 | + $content = json_encode($content, JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE); |
|
| 113 | 113 | $headers['content-type'] ??= 'application/json'; |
| 114 | 114 | } |
| 115 | 115 | |