Passed
Push — master ( d1d274...d083b3 )
by Jean-Christophe
02:02
created
Ajax/semantic/html/modules/HtmlSlider.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -17,21 +17,21 @@  discard block
 block discarded – undo
17 17
 	
18 18
 	protected $_paramParts=array();
19 19
 	public function __construct($identifier, $content='') {
20
-		parent::__construct($identifier, 'div','ui slider');
20
+		parent::__construct($identifier, 'div', 'ui slider');
21 21
 	}
22 22
 	
23
-	public function setLabeled(){
23
+	public function setLabeled() {
24 24
 		return $this->addClass('labeled');
25 25
 	}
26 26
 	
27
-	public function setTicked(){
28
-		if(!$this->propertyContains('class', 'labeled')){
27
+	public function setTicked() {
28
+		if (!$this->propertyContains('class', 'labeled')) {
29 29
 			$this->addClass('labeled');
30 30
 		}
31 31
 		return $this->addClass('ticked');
32 32
 	}
33 33
 	
34
-	public function setLabels($labels){
34
+	public function setLabels($labels) {
35 35
 		$this->_params['interpretLabel']=$labels;
36 36
 		return $this;
37 37
 	}
@@ -40,10 +40,10 @@  discard block
 block discarded – undo
40 40
 	 * $values is an associative array with keys (min,max,start,end,step,smooth)
41 41
 	 * @param array $values
42 42
 	 */
43
-	public function asRange($values=NULL){
43
+	public function asRange($values=NULL) {
44 44
 		$this->addClass('range');
45
-		if(\is_array($values)){
46
-			$this->_params=\array_merge($this->_params,$values);
45
+		if (\is_array($values)) {
46
+			$this->_params=\array_merge($this->_params, $values);
47 47
 		}
48 48
 		return $this;
49 49
 	}
@@ -52,22 +52,22 @@  discard block
 block discarded – undo
52 52
 	 * $values is an associative array with keys (min,max,start,step,smooth)
53 53
 	 * @param array $values
54 54
 	 */
55
-	public function setValues($values=NULL){
56
-		if(\is_array($values)){
57
-			$this->_params=\array_merge($this->_params,$values);
55
+	public function setValues($values=NULL) {
56
+		if (\is_array($values)) {
57
+			$this->_params=\array_merge($this->_params, $values);
58 58
 		}
59 59
 		return $this;
60 60
 	}
61 61
 	
62
-	public function setReversed($value=true){
63
-		if($value){
62
+	public function setReversed($value=true) {
63
+		if ($value) {
64 64
 			$this->addClass('reversed');
65 65
 		}
66 66
 		return $this;
67 67
 	}
68 68
 	
69
-	public function setVertical($value=true){
70
-		if($value){
69
+	public function setVertical($value=true) {
70
+		if ($value) {
71 71
 			$this->addClass('vertical');
72 72
 		}
73 73
 		return $this;
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
 	 * @see BaseHtml::run()
79 79
 	 */
80 80
 	public function run(JsUtils $js) {
81
-		if(isset($this->_bsComponent)===false){
82
-			$this->_bsComponent=$js->semantic()->slider('#'.$this->identifier,$this->_params,$this->_paramParts);
81
+		if (isset($this->_bsComponent)===false) {
82
+			$this->_bsComponent=$js->semantic()->slider('#'.$this->identifier, $this->_params, $this->_paramParts);
83 83
 		}
84 84
 		$this->addEventsOnRun($js);
85 85
 		return $this->_bsComponent;
Please login to merge, or discard this patch.