Completed
Push — master ( 95a04c...971dfb )
by Jean-Christophe
05:50 queued 01:16
created
Ajax/semantic/html/base/constants/TextAlignment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,5 +5,5 @@
 block discarded – undo
5 5
 use Ajax\common\BaseEnum;
6 6
 
7 7
 class TextAlignment extends BaseEnum {
8
-	const LEFT="left aligned",CENTER="center aligned",RIGHT="right aligned",JUSTIFIED="justified";
8
+	const LEFT="left aligned", CENTER="center aligned", RIGHT="right aligned", JUSTIFIED="justified";
9 9
 }
10 10
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/base/constants/CheckboxType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,5 +5,5 @@
 block discarded – undo
5 5
 use Ajax\common\BaseEnum;
6 6
 
7 7
 abstract class CheckboxType extends BaseEnum {
8
-	const STANDARD="",TOGGLE="toggle",SLIDER="slider";
8
+	const STANDARD="", TOGGLE="toggle", SLIDER="slider";
9 9
 }
10 10
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/base/constants/Wide.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,5 +2,5 @@
 block discarded – undo
2 2
 namespace Ajax\semantic\html\base\constants;
3 3
 	use Ajax\common\BaseEnum;
4 4
 abstract class Wide extends BaseEnum {
5
-	const W1="one", W2="two", W3="three", W4="four",W5="five", W6="six", W7="seven", W8="eight",W9="nine",W10="ten",W11="eleven",W12="twelve",W13="thirteen",W14="fourteen",W15="fifteen",W16="sixteen";
5
+	const W1="one", W2="two", W3="three", W4="four", W5="five", W6="six", W7="seven", W8="eight", W9="nine", W10="ten", W11="eleven", W12="twelve", W13="thirteen", W14="fourteen", W15="fifteen", W16="sixteen";
6 6
 }
7 7
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/base/constants/Direction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,5 +2,5 @@
 block discarded – undo
2 2
 namespace Ajax\semantic\html\base\constants;
3 3
 	use Ajax\common\BaseEnum;
4 4
 abstract class Direction extends BaseEnum {
5
-	const RIGHT="right", LEFT="left",DOWN="down",UP="up",NONE="",BELOW="below";
5
+	const RIGHT="right", LEFT="left", DOWN="down", UP="up", NONE="", BELOW="below";
6 6
 }
7 7
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/base/constants/Social.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,5 +2,5 @@
 block discarded – undo
2 2
 namespace Ajax\semantic\html\base\constants;
3 3
 	use Ajax\common\BaseEnum;
4 4
 abstract class Social extends BaseEnum {
5
-	const FACEBOOK="facebook", TWITTER="twitter",GOOGLEPLUS="google plus",VK="vk",LINKEDIN="linkedin",INSTAGRAM="instagram",YOUTUBE="youtube";
5
+	const FACEBOOK="facebook", TWITTER="twitter", GOOGLEPLUS="google plus", VK="vk", LINKEDIN="linkedin", INSTAGRAM="instagram", YOUTUBE="youtube";
6 6
 }
7 7
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/base/HtmlSemCollection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,10 +10,10 @@
 block discarded – undo
10 10
  * @author jc
11 11
  * @version 1.001
12 12
  */
13
-abstract class HtmlSemCollection extends HtmlCollection{
13
+abstract class HtmlSemCollection extends HtmlCollection {
14 14
 	use BaseTrait;
15
-	public function __construct( $identifier, $tagName="div",$baseClass=""){
16
-		parent::__construct( $identifier, $tagName);
15
+	public function __construct($identifier, $tagName="div", $baseClass="") {
16
+		parent::__construct($identifier, $tagName);
17 17
 		$this->_baseClass=$baseClass;
18 18
 		$this->setClass($baseClass);
19 19
 	}
Please login to merge, or discard this patch.
Ajax/semantic/html/modules/HtmlPopup.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 class HtmlPopup extends HtmlSemDoubleElement {
13 13
 	private $_params;
14 14
 	private $_container;
15
-	public function __construct(BaseHtml $container,$identifier, $content="") {
15
+	public function __construct(BaseHtml $container, $identifier, $content="") {
16 16
 		parent::__construct($identifier, "div");
17 17
 		$this->_container=$container;
18 18
 		$this->setClass("ui popup");
@@ -20,9 +20,9 @@  discard block
 block discarded – undo
20 20
 		$this->_params=array("on"=>"hover");
21 21
 	}
22 22
 
23
-	public function addList($items=array(),$header=NULL){
24
-		if(!$this->content instanceof HtmlGrid){
25
-			$this->content=new HtmlGrid("Grid-".$this->identifier,0);
23
+	public function addList($items=array(), $header=NULL) {
24
+		if (!$this->content instanceof HtmlGrid) {
25
+			$this->content=new HtmlGrid("Grid-".$this->identifier, 0);
26 26
 		}
27 27
 		$grid=$this->content;
28 28
 
@@ -30,12 +30,12 @@  discard block
 block discarded – undo
30 30
 		$colCount++;
31 31
 		$grid->setColsCount($colCount);
32 32
 
33
-		$list=new HtmlList("",$items);
33
+		$list=new HtmlList("", $items);
34 34
 		$list->asLink();
35
-		if(isset($header)){
36
-			$list->addHeader(4,$header);
35
+		if (isset($header)) {
36
+			$list->addHeader(4, $header);
37 37
 		}
38
-		$grid->getCell(0,$colCount-1)->setContent($list);
38
+		$grid->getCell(0, $colCount-1)->setContent($list);
39 39
 		$grid->setDivided()->setRelaxed(true);
40 40
 		return $list;
41 41
 	}
@@ -43,14 +43,14 @@  discard block
 block discarded – undo
43 43
 	/**
44 44
 	 * A popup can have no maximum width and continue to flow to fit its content
45 45
 	 */
46
-	public function setFlowing(){
46
+	public function setFlowing() {
47 47
 		return $this->addToProperty("class", "flowing");
48 48
 	}
49 49
 
50 50
 	/**
51 51
 	 * A popup can provide more basic formatting
52 52
 	 */
53
-	public function setBasic(){
53
+	public function setBasic() {
54 54
 		return $this->addToProperty("class", "basic");
55 55
 	}
56 56
 
@@ -58,22 +58,22 @@  discard block
 block discarded – undo
58 58
 	 * {@inheritDoc}
59 59
 	 * @see \Ajax\semantic\html\base\HtmlSemDoubleElement::run()
60 60
 	 */
61
-	public function run(JsUtils $js){
61
+	public function run(JsUtils $js) {
62 62
 		$this->_params["popup"]="#".$this->identifier;
63
-		$js->semantic()->popup("#".$this->_container->getIdentifier(),$this->_params);
63
+		$js->semantic()->popup("#".$this->_container->getIdentifier(), $this->_params);
64 64
 	}
65 65
 
66
-	public function setOn($event="click"){
66
+	public function setOn($event="click") {
67 67
 		$this->_params["on"]=$event;
68 68
 		return $this;
69 69
 	}
70 70
 
71
-	public function setInline($value=true){
71
+	public function setInline($value=true) {
72 72
 		$this->_params["inline"]=$value;
73 73
 		return $this;
74 74
 	}
75 75
 
76
-	public function setPosition($position){
76
+	public function setPosition($position) {
77 77
 		$this->_params["position"]=$position;
78 78
 		return $this;
79 79
 	}
Please login to merge, or discard this patch.
Ajax/semantic/html/modules/HtmlRating.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 	 * @param int $max
14 14
 	 * @param string $icon star or heart
15 15
 	 */
16
-	public function __construct($identifier, $value,$max=5,$icon="") {
16
+	public function __construct($identifier, $value, $max=5, $icon="") {
17 17
 		parent::__construct($identifier, "div", "ui {$icon} rating");
18 18
 		$this->setValue($value);
19 19
 		$this->setMax($max);
@@ -23,11 +23,11 @@  discard block
 block discarded – undo
23 23
 	 * {@inheritDoc}
24 24
 	 * @see \Ajax\common\html\HtmlDoubleElement::setValue()
25 25
 	 */
26
-	public function setValue($value){
26
+	public function setValue($value) {
27 27
 		$this->setProperty("data-rating", $value);
28 28
 	}
29 29
 
30
-	public function setMax($max){
30
+	public function setMax($max) {
31 31
 		$this->setProperty("data-max-rating", $max);
32 32
 	}
33 33
 
@@ -35,20 +35,20 @@  discard block
 block discarded – undo
35 35
 	 * {@inheritDoc}
36 36
 	 * @see \Ajax\semantic\html\base\HtmlSemDoubleElement::run()
37 37
 	 */
38
-	public function run(JsUtils $js){
38
+	public function run(JsUtils $js) {
39 39
 		parent::run($js);
40
-		return $js->semantic()->rating("#".$this->identifier,$this->_params);
40
+		return $js->semantic()->rating("#".$this->identifier, $this->_params);
41 41
 	}
42 42
 
43
-	public function asStar(){
43
+	public function asStar() {
44 44
 		return $this->setIcon();
45 45
 	}
46 46
 
47
-	public function asHeart(){
47
+	public function asHeart() {
48 48
 		return $this->setIcon("heart");
49 49
 	}
50 50
 
51
-	public function setIcon($icon="star"){
52
-		return $this->addToPropertyCtrl("class", $icon, ["star","heart",""]);
51
+	public function setIcon($icon="star") {
52
+		return $this->addToPropertyCtrl("class", $icon, ["star", "heart", ""]);
53 53
 	}
54 54
 }
55 55
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/modules/checkbox/AbstractCheckbox.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 use Ajax\semantic\html\base\constants\CheckboxType;
7 7
 
8 8
 abstract class AbstractCheckbox extends HtmlSemDoubleElement {
9
-	protected $_params=array ();
9
+	protected $_params=array();
10 10
 
11 11
 	public function __construct($identifier, $name=NULL, $label=NULL, $value=NULL, $inputType="checkbox", $type="checkbox") {
12 12
 		parent::__construct("ck-".$identifier, "div", "ui ".$type);
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 	 * @return \Ajax\semantic\html\collections\form\AbstractHtmlFormRadioCheckbox
74 74
 	 */
75 75
 	public function attachEvent($selector, $action=NULL) {
76
-		if (isset($action)!==false||\is_numeric($action)===true) {
76
+		if (isset($action)!==false || \is_numeric($action)===true) {
77 77
 			$js='$("#%identifier%").checkbox("attach events", "'.$selector.'", "'.$action.'");';
78 78
 		} else {
79 79
 			$js='$("#%identifier%").checkbox("attach events", "'.$selector.'");';
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 	 */
90 90
 	public function attachEvents($events=array()) {
91 91
 		if (\is_array($events)) {
92
-			foreach ( $events as $action => $selector ) {
92
+			foreach ($events as $action => $selector) {
93 93
 				$this->attachEvent($selector, $action);
94 94
 			}
95 95
 		}
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,8 +13,9 @@  discard block
 block discarded – undo
13 13
 		$field=new \Ajax\common\html\html5\HtmlInput($identifier, $inputType, $value);
14 14
 		$field->setProperty("name", $name);
15 15
 		$this->setField($field);
16
-		if (isset($label))
17
-			$this->setLabel($label);
16
+		if (isset($label)) {
17
+					$this->setLabel($label);
18
+		}
18 19
 	}
19 20
 
20 21
 	public function setType($checkboxType) {
@@ -40,8 +41,9 @@  discard block
 block discarded – undo
40 41
 	 * @return mixed
41 42
 	 */
42 43
 	public function getLabel() {
43
-		if (\array_key_exists("label", $this->content))
44
-			return $this->content["label"];
44
+		if (\array_key_exists("label", $this->content)) {
45
+					return $this->content["label"];
46
+		}
45 47
 	}
46 48
 
47 49
 	/**
Please login to merge, or discard this patch.