Passed
Push — php-cs-fixer ( b9836a...b7e6c1 )
by Fabio
30:46 queued 14:47
created
framework/Web/UI/TTheme.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -117,8 +117,7 @@  discard block
 block discarded – undo
117 117
 					closedir($dir);
118 118
 					if($cacheValid)
119 119
 						$this->_skins = $skins;
120
-				}
121
-				else
120
+				} else
122 121
 				{
123 122
 					$cacheValid = true;
124 123
 					$this->_cssFiles = $cssFiles;
@@ -295,20 +294,16 @@  discard block
 block discarded – undo
295 294
 							{
296 295
 								$setter = 'set' . $name;
297 296
 								$control->$setter($value);
298
-							}
299
-							else
297
+							} else
300 298
 								throw new TConfigurationException('theme_property_readonly', $type, $name);
301
-						}
302
-						else
299
+						} else
303 300
 							throw new TConfigurationException('theme_property_undefined', $type, $name);
304
-					}
305
-					else	// complex property
301
+					} else	// complex property
306 302
 						$control->setSubProperty($name, $value);
307 303
 				}
308 304
 			}
309 305
 			return true;
310
-		}
311
-		else
306
+		} else
312 307
 			return false;
313 308
 	}
314 309
 
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveHyperLinkColumn.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@  discard block
 block discarded – undo
51 51
 				$control->setData($text);
52 52
 			}
53 53
 			$cell->getControls()->add($control);
54
-		}
55
-		elseif($this->getAllowSorting())
54
+		} elseif($this->getAllowSorting())
56 55
 		{
57 56
 			$sortExpression = $this->getSortExpression();
58 57
 			if(($url = $this->getHeaderImageUrl()) !== '')
@@ -65,8 +64,7 @@  discard block
 block discarded – undo
65 64
 					$button->setAlternateText($text);
66 65
 				$button->setCausesValidation(false);
67 66
 				$cell->getControls()->add($button);
68
-			}
69
-			elseif($text !== '')
67
+			} elseif($text !== '')
70 68
 			{
71 69
 				$button = new TActiveLinkButton;
72 70
 				$button->setText($text);
@@ -74,11 +72,9 @@  discard block
 block discarded – undo
74 72
 				$button->setCommandParameter($sortExpression);
75 73
 				$button->setCausesValidation(false);
76 74
 				$cell->getControls()->add($button);
77
-			}
78
-			else
75
+			} else
79 76
 				$cell->setText(' ');
80
-		}
81
-		else
77
+		} else
82 78
 		{
83 79
 			if(($url = $this->getHeaderImageUrl()) !== '')
84 80
 			{
@@ -87,8 +83,7 @@  discard block
 block discarded – undo
87 83
 				if($text !== '')
88 84
 					$image->setAlternateText($text);
89 85
 				$cell->getControls()->add($image);
90
-			}
91
-			elseif($text !== '')
86
+			} elseif($text !== '')
92 87
 				$cell->setText($text);
93 88
 			else
94 89
 				$cell->setText(' ');
Please login to merge, or discard this patch.
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/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/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.