Completed
Push — master ( 25d3bb...a9232e )
by smiley
04:11
created
src/Traits/ClassLoaderTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 	 * @param string $class     FQCN
26 26
 	 * @param string $interface FQCN
27 27
 	 *
28
-	 * @param mixed  $params    [optional] the following arguments are optional and will be passed to the class constructor if present.
28
+	 * @param \chillerlan\bbcode\ParserOptions  $params    [optional] the following arguments are optional and will be passed to the class constructor if present.
29 29
 	 *
30 30
 	 * @link https://github.com/chillerlan/framework/blob/master/src/Core/Traits/ClassLoaderTrait.php
31 31
 	 *
Please login to merge, or discard this patch.
src/Modules/Html5/Links.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
src/Modules/Markdown/StyledText.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,9 +41,9 @@
 block discarded – undo
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];
Please login to merge, or discard this patch.
src/Modules/Markup/MarkupBaseModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
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.'"' : '';
Please login to merge, or discard this patch.
src/ParserExtensionInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -23,6 +23,7 @@
 block discarded – undo
23 23
 	 * ParserExtensionInterface constructor.
24 24
 	 *
25 25
 	 * @param \chillerlan\bbcode\ParserOptions|null $options
26
+	 * @return void
26 27
 	 */
27 28
 	public function __construct(ParserOptions $options = null);
28 29
 
Please login to merge, or discard this patch.
src/Parser.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 	/**
204 204
 	 * strng regexp bbcode killer
205 205
 	 *
206
-	 * @param string|array $bbcode BBCode as string or matches as array - callback from preg_replace_callback()
206
+	 * @param string $bbcode BBCode as string or matches as array - callback from preg_replace_callback()
207 207
 	 *
208 208
 	 * @return string
209 209
 	 * @throws \chillerlan\bbcode\BBCodeException
@@ -355,9 +355,9 @@  discard block
 block discarded – undo
355 355
 	/**
356 356
 	 * testing...
357 357
 	 *
358
-	 * @param      $preg_error
358
+	 * @param      integer $preg_error
359 359
 	 *
360
-	 * @param null $tag
360
+	 * @param string|null $tag
361 361
 	 *
362 362
 	 * @throws \chillerlan\bbcode\BBCodeException
363 363
 	 * @link https://github.com/chillerlan/bbcode/issues/1
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Modules/BaseModuleAbstract.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 
249 249
 	 * @param string $name      the desired attributes name
250 250
 	 * @param array  $whitelist an array with whitelisted key -> value pairs
251
-	 * @param mixed  $default   [optional] a default value in case the attribute isn't set, defaults to false
251
+	 * @param string  $default   [optional] a default value in case the attribute isn't set, defaults to false
252 252
 	 *
253 253
 	 * @return mixed boolean if no $default is set, otherwise the whitelist value to the given key in case it exists or $default
254 254
 	 */
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
 	 * Checks if the current tag is whitelisted
263 263
 	 *
264 264
 	 * @param array $whitelist an array with whitelisted tag names
265
-	 * @param mixed $default   [optional] a default value in case the tag isn't whitelisted
265
+	 * @param string $default   [optional] a default value in case the tag isn't whitelisted
266 266
 	 *
267 267
 	 * @return mixed boolean if no $default is set, otherwise the whitelisted tag or $default
268 268
 	 */
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
 	 * shorthand for self::attributeIn('__BBTAG__', $array)
312 312
 	 *
313 313
 	 * @param array $array
314
-	 * @param mixed $default
314
+	 * @param string $default
315 315
 	 *
316 316
 	 * @return mixed
317 317
 	 */
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
 	 *
325 325
 	 * @param string $url the URL to check
326 326
 	 *
327
-	 * @return bool|string the url if valid, otherwise false
327
+	 * @return false|string the url if valid, otherwise false
328 328
 	 */
329 329
 	public function checkUrl(string $url){
330 330
 		if(filter_var($url, FILTER_VALIDATE_URL) === false){
Please login to merge, or discard this patch.