Completed
Push — master ( fedf49...d47933 )
by smiley
02:53
created
src/Modules/Html5/Video.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 
13 13
 namespace chillerlan\bbcode\Modules\Html5;
14 14
 
15
-use chillerlan\bbcode\Modules\ModuleInterface;
16 15
 use chillerlan\TinyCurl\Traits\RequestTrait;
16
+use chillerlan\bbcode\Modules\ModuleInterface;
17 17
 
18 18
 /**
19 19
  * Transforms several video tags into HTML5
Please login to merge, or discard this patch.
src/Traits/ClassLoaderTrait.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@
 block discarded – undo
11 11
 
12 12
 namespace chillerlan\bbcode\Traits;
13 13
 
14
-use chillerlan\bbcode\BBCodeException;
15 14
 use ReflectionClass;
15
+use chillerlan\bbcode\BBCodeException;
16 16
 
17 17
 /**
18 18
  * Trait ClassLoaderTrait
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/Html5/Tables.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
 		$span = '';
152 152
 		foreach(['colspan', 'rowspan'] as $s){
153 153
 			$_span = $this->getAttribute($s);
154
-			$span .=  $_span ? ' '.$s.'="'.intval($_span).'"' : '';
154
+			$span .= $_span ? ' '.$s.'="'.intval($_span).'"' : '';
155 155
 		}
156 156
 
157 157
 		$abbr  = '';
Please login to merge, or discard this patch.
src/Modules/Markdown/Links.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,10 +40,10 @@
 block discarded – undo
40 40
 		if(!empty($this->content)){
41 41
 			return $url && $this->checkUrl($url)
42 42
 				? '['.$this->content.']('.$url.')'
43
-				: $this->checkUrl($this->content) ? : $this->content;
43
+				: $this->checkUrl($this->content) ?: $this->content;
44 44
 		}
45 45
 
46
-		return $this->checkUrl($url) ? : '';
46
+		return $this->checkUrl($url) ?: '';
47 47
 	}
48 48
 
49 49
 }
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.
tests/critical/Modules/HTML5ModuleTestCritical.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,9 +71,9 @@
 block discarded – undo
71 71
 
72 72
 	public function nestingDataProvider(){
73 73
 		return [
74
-			[0,   'bbcode_nesting.txt'],
75
-			[1,   'results/html5_nesting_1.txt'],
76
-			[10,  'results/html5_nesting_10.txt'],
74
+			[0, 'bbcode_nesting.txt'],
75
+			[1, 'results/html5_nesting_1.txt'],
76
+			[10, 'results/html5_nesting_10.txt'],
77 77
 			[100, 'results/html5_nesting_100.txt'],
78 78
 		];
79 79
 	}
Please login to merge, or discard this patch.
tests/normal/Modules/HTML5ModuleTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 
47 47
 	public function testEmptyTags(){
48 48
 		$singletags = $this->parser->getSingle();
49
-		$exceptions = ['td','th'];
49
+		$exceptions = ['td', 'th'];
50 50
 
51 51
 		foreach(array_keys($this->parser->getTagmap()) as $tag){
52 52
 			if(!in_array($tag, $singletags) && !in_array($tag, $exceptions)){
Please login to merge, or discard this patch.