Completed
Push — php-cs-fixer ( b6f93e...b9836a )
by Fabio
07:15
created
framework/Web/UI/ActiveControls/TInPlaceTextBox.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -233,8 +233,7 @@
 block discarded – undo
233 233
 		{
234 234
 			$options['Rows'] = $this->getRows();
235 235
 			$options['Wrap'] = $this->getWrap() == false ? '' : true;
236
-		}
237
-		else
236
+		} else
238 237
 		{
239 238
 			$length = $this->getMaxLength();
240 239
 			$options['MaxLength'] = $length > 0 ? $length : '';
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveDropDownListColumn.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@  discard block
 block discarded – undo
50 50
 				$control->setData($text);
51 51
 			}
52 52
 			$cell->getControls()->add($control);
53
-		}
54
-		elseif($this->getAllowSorting())
53
+		} elseif($this->getAllowSorting())
55 54
 		{
56 55
 			$sortExpression = $this->getSortExpression();
57 56
 			if(($url = $this->getHeaderImageUrl()) !== '')
@@ -64,8 +63,7 @@  discard block
 block discarded – undo
64 63
 					$button->setAlternateText($text);
65 64
 				$button->setCausesValidation(false);
66 65
 				$cell->getControls()->add($button);
67
-			}
68
-			elseif($text !== '')
66
+			} elseif($text !== '')
69 67
 			{
70 68
 				$button = new TActiveLinkButton;
71 69
 				$button->setText($text);
@@ -73,11 +71,9 @@  discard block
 block discarded – undo
73 71
 				$button->setCommandParameter($sortExpression);
74 72
 				$button->setCausesValidation(false);
75 73
 				$cell->getControls()->add($button);
76
-			}
77
-			else
74
+			} else
78 75
 				$cell->setText(' ');
79
-		}
80
-		else
76
+		} else
81 77
 		{
82 78
 			if(($url = $this->getHeaderImageUrl()) !== '')
83 79
 			{
@@ -86,8 +82,7 @@  discard block
 block discarded – undo
86 82
 				if($text !== '')
87 83
 					$image->setAlternateText($text);
88 84
 				$cell->getControls()->add($image);
89
-			}
90
-			elseif($text !== '')
85
+			} elseif($text !== '')
91 86
 				$cell->setText($text);
92 87
 			else
93 88
 				$cell->setText(' ');
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveDataGrid.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -141,8 +141,7 @@  discard block
 block discarded – undo
141 141
 				$button->setText($text);
142 142
 				return $button;
143 143
 			}
144
-		}
145
-		else {
144
+		} else {
146 145
 			$button = new TActiveButton;
147 146
 			if(!$enabled)
148 147
 				$button->setEnabled(false);
@@ -176,8 +175,7 @@  discard block
 block discarded – undo
176 175
 		if($this->getHasPreRendered()) {
177 176
 			$this->renderDataGrid($writer);
178 177
 			if($this->getActiveControl()->canUpdateClientSide()) $this->getPage()->getCallbackClient()->replaceContent($this->getSurroundingTagId(), $writer);
179
-		}
180
-		else {
178
+		} else {
181 179
 			$this->getPage()->getAdapter()->registerControlToRender($this, $writer);
182 180
 		}
183 181
 	}
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TStyleDiff.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,8 +66,7 @@
 block discarded – undo
66 66
 		{
67 67
 			return ($this->_new !== null) && $this->_new->hasCssClass()
68 68
 						? $this->_new->getCssClass() : null;
69
-		}
70
-		else
69
+		} else
71 70
 		{
72 71
 			return $this->_old->getCssClass() !== $this->_new->getCssClass() ?
73 72
 				$this->_new->getCssClass() : null;
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveTemplateColumn.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -49,8 +49,7 @@  discard block
 block discarded – undo
49 49
 				$control->setData($text);
50 50
 			}
51 51
 			$cell->getControls()->add($control);
52
-		}
53
-		elseif($this->getAllowSorting()) {
52
+		} elseif($this->getAllowSorting()) {
54 53
 				$sortExpression = $this->getSortExpression();
55 54
 				if(($url = $this->getHeaderImageUrl()) !== '') {
56 55
 					$button = new TActiveImageButton;
@@ -61,27 +60,23 @@  discard block
 block discarded – undo
61 60
 						$button->setAlternateText($text);
62 61
 					$button->setCausesValidation(false);
63 62
 					$cell->getControls()->add($button);
64
-				}
65
-				elseif($text !== '') {
63
+				} elseif($text !== '') {
66 64
 						$button = new TActiveLinkButton;
67 65
 						$button->setText($text);
68 66
 						$button->setCommandName(TDataGrid::CMD_SORT);
69 67
 						$button->setCommandParameter($sortExpression);
70 68
 						$button->setCausesValidation(false);
71 69
 						$cell->getControls()->add($button);
72
-					}
73
-					else
70
+					} else
74 71
 						$cell->setText(' ');
75
-			}
76
-			else {
72
+			} else {
77 73
 				if(($url = $this->getHeaderImageUrl()) !== '') {
78 74
 					$image = new TActiveImage;
79 75
 					$image->setImageUrl($url);
80 76
 					if($text !== '')
81 77
 						$image->setAlternateText($text);
82 78
 					$cell->getControls()->add($image);
83
-				}
84
-				elseif($text !== '')
79
+				} elseif($text !== '')
85 80
 						$cell->setText($text);
86 81
 					else
87 82
 						$cell->setText(' ');
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveCheckBoxColumn.php 1 patch
Braces   +6 added lines, -12 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@  discard block
 block discarded – undo
55 55
 			$cell->registerObject('CheckBox', $checkBox);
56 56
 			if($this->getDataField() !== '')
57 57
 				$checkBox->attachEventHandler('OnDataBinding', [$this,'dataBindColumn']);
58
-		}
59
-		else
58
+		} else
60 59
 			parent::initializeCell($cell, $columnIndex, $itemType);
61 60
 	}
62 61
 
@@ -78,8 +77,7 @@  discard block
 block discarded – undo
78 77
 				$control->setData($text);
79 78
 			}
80 79
 			$cell->getControls()->add($control);
81
-		}
82
-		elseif($this->getAllowSorting())
80
+		} elseif($this->getAllowSorting())
83 81
 		{
84 82
 			$sortExpression = $this->getSortExpression();
85 83
 			if(($url = $this->getHeaderImageUrl()) !== '')
@@ -92,8 +90,7 @@  discard block
 block discarded – undo
92 90
 					$button->setAlternateText($text);
93 91
 				$button->setCausesValidation(false);
94 92
 				$cell->getControls()->add($button);
95
-			}
96
-			elseif($text !== '')
93
+			} elseif($text !== '')
97 94
 			{
98 95
 				$button = new TActiveLinkButton;
99 96
 				$button->setText($text);
@@ -101,11 +98,9 @@  discard block
 block discarded – undo
101 98
 				$button->setCommandParameter($sortExpression);
102 99
 				$button->setCausesValidation(false);
103 100
 				$cell->getControls()->add($button);
104
-			}
105
-			else
101
+			} else
106 102
 				$cell->setText(' ');
107
-		}
108
-		else
103
+		} else
109 104
 		{
110 105
 			if(($url = $this->getHeaderImageUrl()) !== '')
111 106
 			{
@@ -114,8 +109,7 @@  discard block
 block discarded – undo
114 109
 				if($text !== '')
115 110
 					$image->setAlternateText($text);
116 111
 				$cell->getControls()->add($image);
117
-			}
118
-			elseif($text !== '')
112
+			} elseif($text !== '')
119 113
 				$cell->setText($text);
120 114
 			else
121 115
 				$cell->setText(' ');
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveBoundColumn.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -48,8 +48,7 @@  discard block
 block discarded – undo
48 48
 				$control->setData($text);
49 49
 			}
50 50
 			$cell->getControls()->add($control);
51
-		}
52
-		elseif($this->getAllowSorting()) {
51
+		} elseif($this->getAllowSorting()) {
53 52
 				$sortExpression = $this->getSortExpression();
54 53
 				if(($url = $this->getHeaderImageUrl()) !== '') {
55 54
 					$button = new TActiveImageButton;
@@ -62,19 +61,16 @@  discard block
 block discarded – undo
62 61
 					}
63 62
 					$button->setCausesValidation(false);
64 63
 					$cell->getControls()->add($button);
65
-				}
66
-				elseif($text !== '') {
64
+				} elseif($text !== '') {
67 65
 						$button = new TActiveLinkButton;
68 66
 						$button->setText($text);
69 67
 						$button->setCommandName(TDataGrid::CMD_SORT);
70 68
 						$button->setCommandParameter($sortExpression);
71 69
 						$button->setCausesValidation(false);
72 70
 						$cell->getControls()->add($button);
73
-					}
74
-					else
71
+					} else
75 72
 						$cell->setText(' ');
76
-			}
77
-			else {
73
+			} else {
78 74
 				if(($url = $this->getHeaderImageUrl()) !== '') {
79 75
 					$image = new TActiveImage;
80 76
 					$image->setImageUrl($url);
@@ -83,8 +79,7 @@  discard block
 block discarded – undo
83 79
 						$image->setToolTip($text);
84 80
 					}
85 81
 					$cell->getControls()->add($image);
86
-				}
87
-				elseif($text !== '')
82
+				} elseif($text !== '')
88 83
 						$cell->setText($text);
89 84
 					else
90 85
 						$cell->setText(' ');
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveLiteralColumn.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@  discard block
 block discarded – undo
53 53
 				$control->setData($text);
54 54
 			}
55 55
 			$cell->getControls()->add($control);
56
-		}
57
-		elseif($this->getAllowSorting()) {
56
+		} elseif($this->getAllowSorting()) {
58 57
 				$sortExpression = $this->getSortExpression();
59 58
 				if(($url = $this->getHeaderImageUrl()) !== '') {
60 59
 					$button = new TActiveImageButton;
@@ -67,19 +66,16 @@  discard block
 block discarded – undo
67 66
 					}
68 67
 					$button->setCausesValidation(false);
69 68
 					$cell->getControls()->add($button);
70
-				}
71
-				elseif($text !== '') {
69
+				} elseif($text !== '') {
72 70
 						$button = new TActiveLinkButton;
73 71
 						$button->setText($text);
74 72
 						$button->setCommandName(TDataGrid::CMD_SORT);
75 73
 						$button->setCommandParameter($sortExpression);
76 74
 						$button->setCausesValidation(false);
77 75
 						$cell->getControls()->add($button);
78
-					}
79
-					else
76
+					} else
80 77
 						$cell->setText(' ');
81
-			}
82
-			else {
78
+			} else {
83 79
 				if(($url = $this->getHeaderImageUrl()) !== '') {
84 80
 					$image = new TActiveImage;
85 81
 					$image->setImageUrl($url);
@@ -88,8 +84,7 @@  discard block
 block discarded – undo
88 84
 						$image->setToolTip($text);
89 85
 					}
90 86
 					$cell->getControls()->add($image);
91
-				}
92
-				elseif($text !== '')
87
+				} elseif($text !== '')
93 88
 						$cell->setText($text);
94 89
 					else
95 90
 						$cell->setText(' ');
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveHtmlArea4.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,8 +71,7 @@
 block discarded – undo
71 71
 		$value = str_ireplace(["\r\n", "\n"], "", $value);
72 72
 		$command = "tinymce.get('{$this->getClientID()}').setContent('{$value}')";
73 73
 		$this->getPage()->getCallbackClient()->evaluateScript($command);
74
-	  }
75
-	  else
74
+	  } else
76 75
 		$this->getPage()->getCallbackClient()->setValue($this, $value);
77 76
 	}
78 77
   }
Please login to merge, or discard this patch.