@@ -40,7 +40,7 @@ |
||
| 40 | 40 | return ''; |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | - $url = $this->checkUrl($this->bbtag() ? : $this->content); |
|
| 43 | + $url = $this->checkUrl($this->bbtag() ?: $this->content); |
|
| 44 | 44 | $host = parse_url($url, PHP_URL_HOST); |
| 45 | 45 | $target = (!empty($host) && (isset($_SERVER['SERVER_NAME']) && $host === $_SERVER['SERVER_NAME'])) |
| 46 | 46 | || empty($host) ? 'self' : 'blank'; |
@@ -41,9 +41,9 @@ |
||
| 41 | 41 | |
| 42 | 42 | $str = [ |
| 43 | 43 | 'b' => '**', // bold |
| 44 | - 'c' => '`', // inline code |
|
| 44 | + 'c' => '`', // inline code |
|
| 45 | 45 | 'del' => '~~', // strikethrough |
| 46 | - 'i' => '_', // italic |
|
| 46 | + 'i' => '_', // italic |
|
| 47 | 47 | 's' => '~~', // strikethrough |
| 48 | 48 | 'strong' => '**', // bold |
| 49 | 49 | ][$this->tag]; |
@@ -127,7 +127,7 @@ |
||
| 127 | 127 | */ |
| 128 | 128 | protected function getCssClass(array $additional_classes = []){ |
| 129 | 129 | $classes = $this->getAttribute('class', '').' '.implode(' ', $additional_classes); |
| 130 | - $classes =preg_replace('/[^a-z\d\- ]/i', '', $classes); |
|
| 130 | + $classes = preg_replace('/[^a-z\d\- ]/i', '', $classes); |
|
| 131 | 131 | $classes = trim($classes); |
| 132 | 132 | |
| 133 | 133 | return !empty($classes) ? ' class="'.$classes.'"' : ''; |
@@ -136,7 +136,7 @@ |
||
| 136 | 136 | * @throws \chillerlan\bbcode\BBCodeException |
| 137 | 137 | */ |
| 138 | 138 | public function setOptions(ParserOptions $options){ |
| 139 | - $this->parserOptions = $options; |
|
| 139 | + $this->parserOptions = $options; |
|
| 140 | 140 | |
| 141 | 141 | $this->loadInterfaces(); |
| 142 | 142 | $this->loadModules(); |