Completed
Push — master ( fedf49...d47933 )
by smiley
02:53
created
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/Html5/Code.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 Code
4
- *
5
- * @filesource   Code.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 Code
4
+	 *
5
+	 * @filesource   Code.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/Video.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,10 +72,10 @@
 block discarded – undo
72 72
 
73 73
 				if($this->flash){
74 74
 					$player = '<object type="application/x-shockwave-flash" data="'.$video_url.'">'
75
-					          .'<param name="allowfullscreen" value="true">'
76
-					          .'<param name="wmode" value="opaque" />'
77
-					          .'<param name="movie" value="'.$video_url.'" />'
78
-					          .'</object>';
75
+							  .'<param name="allowfullscreen" value="true">'
76
+							  .'<param name="wmode" value="opaque" />'
77
+							  .'<param name="movie" value="'.$video_url.'" />'
78
+							  .'</object>';
79 79
 				}
80 80
 
81 81
 				return '<div'.$cssclass.'>'.$player.'</div>';
Please login to merge, or discard this patch.
src/Modules/BaseModule.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.
tests/normal/LanguageBaseTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@
 block discarded – undo
24 24
 		Chinese::class,
25 25
 		English::class,
26 26
 		French::class,
27
-	    German::class,
28
-	    Spanish::class,
27
+		German::class,
28
+		Spanish::class,
29 29
 	];
30 30
 
31 31
 	public function testIterateLanguage(){
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.