Completed
Push — master ( 94ceed...ee25d4 )
by smiley
02:35
created
src/Parser.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -259,7 +259,7 @@
 block discarded – undo
259 259
 	/**
260 260
 	 * strng regexp bbcode killer
261 261
 	 *
262
-	 * @param string|array $bbcode BBCode as string or matches as array - callback from preg_replace_callback()
262
+	 * @param string $bbcode BBCode as string or matches as array - callback from preg_replace_callback()
263 263
 	 *
264 264
 	 * @return string
265 265
 	 * @throws \chillerlan\bbcode\BBCodeException
Please login to merge, or discard this patch.
src/Modules/BaseModuleInterface.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,6 @@
 block discarded – undo
101 101
 
102 102
 	/**
103 103
 	 * Checks if an attribute exists and if it exists as key in a whitelist
104
-
105 104
 	 * @param string $name      the desired attributes name
106 105
 	 * @param array  $whitelist an array with whitelisted key -> value pairs
107 106
 	 * @param mixed  $default   [optional] a default value in case the attribute isn't set, defaults to false
Please login to merge, or discard this patch.
src/Modules/BaseModule.php 2 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,6 @@
 block discarded – undo
101 101
 
102 102
 	/**
103 103
 	 * Checks if an attribute exists and if it exists as key in a whitelist
104
-
105 104
 	 * @param string $name      the desired attributes name
106 105
 	 * @param array  $whitelist an array with whitelisted key -> value pairs
107 106
 	 * @param mixed  $default   [optional] a default value in case the attribute isn't set, defaults to false
Please login to merge, or discard this 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.
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/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/Modules/Html5/Images.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Class Image
4
- *
5
- * @filesource   Images.php
6
- * @created      12.10.2015
7
- * @package      chillerlan\bbcode\Modules\Html5
8
- * @author       Smiley <[email protected]>
9
- * @copyright    2015 Smiley
10
- * @license      MIT
11
- */
3
+	 * Class Image
4
+	 *
5
+	 * @filesource   Images.php
6
+	 * @created      12.10.2015
7
+	 * @package      chillerlan\bbcode\Modules\Html5
8
+	 * @author       Smiley <[email protected]>
9
+	 * @copyright    2015 Smiley
10
+	 * @license      MIT
11
+	 */
12 12
 
13 13
 namespace chillerlan\bbcode\Modules\Html5;
14 14
 
Please login to merge, or discard this patch.
src/Modules/Html5/Tables.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,8 +73,8 @@
 block discarded – undo
73 73
 	protected function table():string{
74 74
 
75 75
 		return '<table'.$this->getCssClass(['bb-table'])
76
-		       .$this->getStyle(['width' => $this->getAttribute('width')])
77
-		       .'>'.$this->eol($this->content).'</table>';
76
+			   .$this->getStyle(['width' => $this->getAttribute('width')])
77
+			   .'>'.$this->eol($this->content).'</table>';
78 78
 	}
79 79
 
80 80
 	/**
Please login to merge, or discard this patch.
src/Modules/Html5/Video.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -99,11 +99,11 @@  discard block
 block discarded – undo
99 99
 	protected function flashPlayer(string $video_url):string{
100 100
 
101 101
 		return '<div'.$this->getCssClass($this->cssclass).'>'
102
-		       .'<object type="application/x-shockwave-flash" data="'.$video_url.'">'
103
-		       .'<param name="allowfullscreen" value="true">'
104
-		       .'<param name="wmode" value="opaque" />'
105
-		       .'<param name="movie" value="'.$video_url.'" />'
106
-		       .'</object></div>';
102
+			   .'<object type="application/x-shockwave-flash" data="'.$video_url.'">'
103
+			   .'<param name="allowfullscreen" value="true">'
104
+			   .'<param name="wmode" value="opaque" />'
105
+			   .'<param name="movie" value="'.$video_url.'" />'
106
+			   .'</object></div>';
107 107
 	}
108 108
 
109 109
 	/**
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 	protected function embedPlayer(string $video_url):string{
115 115
 
116 116
 		return '<div'.$this->getCssClass($this->cssclass).'>'
117
-		       .'<iframe src="'.$video_url.'" allowfullscreen></iframe></div>';
117
+			   .'<iframe src="'.$video_url.'" allowfullscreen></iframe></div>';
118 118
 	}
119 119
 
120 120
 	/**
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 	protected function html5Player():string{
124 124
 
125 125
 		return '<video src="'.$this->checkUrl($this->content).'"'
126
-		       .$this->getCssClass($this->cssclass).' preload="auto" controls="true"></video>';
126
+			   .$this->getCssClass($this->cssclass).' preload="auto" controls="true"></video>';
127 127
 	}
128 128
 
129 129
 	/**
Please login to merge, or discard this patch.
src/Modules/Mediawiki/MediawikiBaseModule.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Class MediawikiBaseModule
4
- *
5
- * @filesource   MediawikiBaseModule.php
6
- * @created      04.11.2015
7
- * @package      chillerlan\bbcode\Modules\Mediawiki
8
- * @author       Smiley <[email protected]>
9
- * @copyright    2015 Smiley
10
- * @license      MIT
11
- */
3
+	 * Class MediawikiBaseModule
4
+	 *
5
+	 * @filesource   MediawikiBaseModule.php
6
+	 * @created      04.11.2015
7
+	 * @package      chillerlan\bbcode\Modules\Mediawiki
8
+	 * @author       Smiley <[email protected]>
9
+	 * @copyright    2015 Smiley
10
+	 * @license      MIT
11
+	 */
12 12
 
13 13
 namespace chillerlan\bbcode\Modules\Mediawiki;
14 14
 
Please login to merge, or discard this patch.