Passed
Push — master ( b839bb...74ec22 )
by Jean-Christophe
02:03
created
Ajax/semantic/components/Toast.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -19,56 +19,56 @@
 block discarded – undo
19 19
 		$this->uiName='toast';
20 20
 	}
21 21
 
22
-	public function close(){
22
+	public function close() {
23 23
 		return $this->addBehavior('close');
24 24
 	}
25 25
 
26
-	public function setClass($value){
26
+	public function setClass($value) {
27 27
 		$this->params['class']=$value;
28 28
 		return $this;
29 29
 	}
30 30
 	
31
-	public function setCloseIcon(){
31
+	public function setCloseIcon() {
32 32
 		$this->params['closeIcon']=true;
33 33
 		return $this;
34 34
 	}
35 35
 	
36
-	public function setShowIcon($value=false){
36
+	public function setShowIcon($value=false) {
37 37
 		$this->params['showIcon']=$value;
38 38
 		return $this;
39 39
 	}
40 40
 	
41
-	public function setCloseOnClick($value){
41
+	public function setCloseOnClick($value) {
42 42
 		$this->params['closeOnClick']=$value;
43 43
 		return $this;
44 44
 	}
45 45
 	
46
-	public function setTitle($title){
46
+	public function setTitle($title) {
47 47
 		$this->params['title']=$title;
48 48
 		return $this;
49 49
 	}
50 50
 	
51
-	public function setMessage($message){
51
+	public function setMessage($message) {
52 52
 		$this->params['message']=$message;
53 53
 		return $this;
54 54
 	}
55 55
 	
56
-	public function setPosition($position){
56
+	public function setPosition($position) {
57 57
 		$this->params['position']=$position;
58 58
 		return $this;
59 59
 	}
60 60
 	
61
-	public function setDisplayTime($time){
61
+	public function setDisplayTime($time) {
62 62
 		$this->params['displayTime']=$time;
63 63
 		return $this;
64 64
 	}
65 65
 	
66
-	public function setShowProgress($value='top'){
66
+	public function setShowProgress($value='top') {
67 67
 		$this->params['showProgress']=$value;
68 68
 		return $this;
69 69
 	}
70 70
 	
71
-	public function setClassProgress($value){
71
+	public function setClassProgress($value) {
72 72
 		$this->params['classProgress']=$value;
73 73
 		return $this;
74 74
 	}
Please login to merge, or discard this patch.
Ajax/semantic/html/elements/HtmlEmoji.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,22 +54,22 @@
 block discarded – undo
54 54
 	 * @param string $target
55 55
 	 * @return HtmlEmoji
56 56
 	 */
57
-	public function asLink($href=NULL,$target=NULL) {
57
+	public function asLink($href=NULL, $target=NULL) {
58 58
 		if (isset($href)) {
59 59
 			$_target="";
60
-			if(isset($target))
60
+			if (isset($target))
61 61
 				$_target="target='{$target}'";
62
-			$this->wrap("<a href='" . $href . "' {$_target}>", "</a>");
62
+			$this->wrap("<a href='".$href."' {$_target}>", "</a>");
63 63
 		}
64 64
 		return $this->addToProperty("class", "link");
65 65
 	}
66 66
 
67 67
 	public function addLabel($label, $before, $emoji) {
68
-		if($before)
68
+		if ($before)
69 69
 			$this->wrap($label);
70 70
 		else
71 71
 			$this->wrap("", $label);
72
-		if(isset($emoji))
72
+		if (isset($emoji))
73 73
 			$this->setEmoji($emoji);
74 74
 		return $this;
75 75
 	}
Please login to merge, or discard this patch.
Braces   +11 added lines, -8 removed lines patch added patch discarded remove patch
@@ -57,20 +57,23 @@
 block discarded – undo
57 57
 	public function asLink($href=NULL,$target=NULL) {
58 58
 		if (isset($href)) {
59 59
 			$_target="";
60
-			if(isset($target))
61
-				$_target="target='{$target}'";
60
+			if(isset($target)) {
61
+							$_target="target='{$target}'";
62
+			}
62 63
 			$this->wrap("<a href='" . $href . "' {$_target}>", "</a>");
63 64
 		}
64 65
 		return $this->addToProperty("class", "link");
65 66
 	}
66 67
 
67 68
 	public function addLabel($label, $before, $emoji) {
68
-		if($before)
69
-			$this->wrap($label);
70
-		else
71
-			$this->wrap("", $label);
72
-		if(isset($emoji))
73
-			$this->setEmoji($emoji);
69
+		if($before) {
70
+					$this->wrap($label);
71
+		} else {
72
+					$this->wrap("", $label);
73
+		}
74
+		if(isset($emoji)) {
75
+					$this->setEmoji($emoji);
76
+		}
74 77
 		return $this;
75 78
 	}
76 79
 
Please login to merge, or discard this patch.