@@ -208,7 +208,7 @@ |
||
| 208 | 208 | } |
| 209 | 209 | |
| 210 | 210 | /** |
| 211 | - * @param $bbcode |
|
| 211 | + * @param string $bbcode |
|
| 212 | 212 | * |
| 213 | 213 | * @return string |
| 214 | 214 | */ |
@@ -210,8 +210,8 @@ discard block |
||
| 210 | 210 | /** |
| 211 | 211 | * shorthand for self::attributeIn('__BBTAG__', $array) |
| 212 | 212 | * |
| 213 | - * @param array $array |
|
| 214 | - * @param mixed $default |
|
| 213 | + * @param string[] $array |
|
| 214 | + * @param string $default |
|
| 215 | 215 | * |
| 216 | 216 | * @return mixed |
| 217 | 217 | */ |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | |
| 255 | 255 | * @param string $name the desired attributes name |
| 256 | 256 | * @param array $whitelist an array with whitelisted key -> value pairs |
| 257 | - * @param mixed $default [optional] a default value in case the attribute isn't set, defaults to false |
|
| 257 | + * @param string $default [optional] a default value in case the attribute isn't set, defaults to false |
|
| 258 | 258 | * |
| 259 | 259 | * @return mixed boolean if no $default is set, otherwise the whitelist value to the given key in case it exists or $default |
| 260 | 260 | */ |
@@ -267,8 +267,8 @@ discard block |
||
| 267 | 267 | /** |
| 268 | 268 | * Checks if the current tag is whitelisted |
| 269 | 269 | * |
| 270 | - * @param array $whitelist an array with whitelisted tag names |
|
| 271 | - * @param mixed $default [optional] a default value in case the tag isn't whitelisted |
|
| 270 | + * @param string[] $whitelist an array with whitelisted tag names |
|
| 271 | + * @param string $default [optional] a default value in case the tag isn't whitelisted |
|
| 272 | 272 | * |
| 273 | 273 | * @return mixed boolean if no $default is set, otherwise the whitelisted tag or $default |
| 274 | 274 | */ |
@@ -24,6 +24,7 @@ |
||
| 24 | 24 | * @param \chillerlan\Settings\SettingsContainerInterface $options |
| 25 | 25 | * @param \Psr\SimpleCache\CacheInterface $cache |
| 26 | 26 | * @param \Psr\Log\LoggerInterface $logger |
| 27 | + * @return void |
|
| 27 | 28 | */ |
| 28 | 29 | public function __construct(SettingsContainerInterface $options, CacheInterface $cache, LoggerInterface $logger); |
| 29 | 30 | |
@@ -24,6 +24,7 @@ |
||
| 24 | 24 | * @param \chillerlan\Settings\SettingsContainerInterface $options |
| 25 | 25 | * @param \Psr\SimpleCache\CacheInterface $cache |
| 26 | 26 | * @param \Psr\Log\LoggerInterface $logger |
| 27 | + * @return void |
|
| 27 | 28 | */ |
| 28 | 29 | public function __construct(SettingsContainerInterface $options, CacheInterface $cache, LoggerInterface $logger); |
| 29 | 30 | |
@@ -64,7 +64,8 @@ discard block |
||
| 64 | 64 | /** |
| 65 | 65 | * @return string |
| 66 | 66 | */ |
| 67 | - protected function c(){ // @todo |
|
| 67 | + protected function c(){ |
|
| 68 | +// @todo |
|
| 68 | 69 | $this->clearPseudoClosingTags(); |
| 69 | 70 | return '<code class="bb-inline-code" style="display: inline">'.$this->content.'</code>'; |
| 70 | 71 | } |
@@ -80,14 +81,16 @@ discard block |
||
| 80 | 81 | /** |
| 81 | 82 | * @return string |
| 82 | 83 | */ |
| 83 | - protected function font(){ // @todo: restrict fonts via classname |
|
| 84 | + protected function font(){ |
|
| 85 | +// @todo: restrict fonts via classname |
|
| 84 | 86 | return '<span class="bb-text font comic-sans">'.$this->content.'</span>'; |
| 85 | 87 | } |
| 86 | 88 | |
| 87 | 89 | /** |
| 88 | 90 | * @return string |
| 89 | 91 | */ |
| 90 | - protected function size(){ // @todo: restrict sizes via css |
|
| 92 | + protected function size(){ |
|
| 93 | +// @todo: restrict sizes via css |
|
| 91 | 94 | return '<span class="bb-text size extra-tiny">'.$this->content.'</span>'; |
| 92 | 95 | } |
| 93 | 96 | |