Passed
Push — php-cs-fixer ( b9836a...b7e6c1 )
by Fabio
30:46 queued 14:47
created
framework/Web/UI/ActiveControls/TActivePager.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -136,8 +136,7 @@  discard block
 block discarded – undo
136 136
 				$button->setCssClass($this->getButtonCssClass());
137 137
 				return $button;
138 138
 			}
139
-		}
140
-		elseif($buttonType === TPagerButtonType::ImageButton)
139
+		} elseif($buttonType === TPagerButtonType::ImageButton)
141 140
 		{
142 141
 			$button = new TActiveImageButton;
143 142
 			$button->setImageUrl($this->getPageImageUrl($text, $commandName));
@@ -145,8 +144,7 @@  discard block
 block discarded – undo
145 144
 				$button->Visible = true;
146 145
 			else
147 146
 				$button->Visible = false;
148
-		}
149
-		else
147
+		} else
150 148
 		{
151 149
 			$button = new TActiveButton;
152 150
 			if(!$enabled)
@@ -206,8 +204,7 @@  discard block
 block discarded – undo
206 204
 			TWebControl::render($writer);
207 205
 			if($this->getActiveControl()->canUpdateClientSide())
208 206
 				$this->getPage()->getCallbackClient()->replaceContent($this, $writer);
209
-		}
210
-		else
207
+		} else
211 208
 		{
212 209
 			$this->getPage()->getAdapter()->registerControlToRender($this, $writer);
213 210
 		}
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TBaseActiveCallbackControl.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -116,8 +116,7 @@  discard block
 block discarded – undo
116 116
 				$newid = substr($id, $pos + 1);
117 117
 				if ($control !== null)
118 118
 					$control = $control->$newid;
119
-			}
120
-			else
119
+			} else
121 120
 			{
122 121
 				// TCheckBoxList overrides findControl() with a fake implementation
123 122
 				// but accepts a second parameter to use the standard one
@@ -179,8 +178,7 @@  discard block
 block discarded – undo
179 178
 		{
180 179
 			$group = $this->getValidationGroup();
181 180
 			return $this->getPage()->getValidators($group)->getCount() > 0;
182
-		}
183
-		else
181
+		} else
184 182
 			return false;
185 183
 	}
186 184
 
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveHtmlArea.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.getInstanceById('{$this->getClientID()}').execCommand('mceSetContent',false,'{$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.
framework/Web/UI/TPageStateFormatter.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,8 +70,7 @@
 block discarded – undo
70 70
 			{
71 71
 				if(($str = $sm->validateData($str)) !== false)
72 72
 					return unserialize($str);
73
-			}
74
-			else
73
+			} else
75 74
 				return unserialize($str);
76 75
 		}
77 76
 		return null;
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TCompareValidator.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -160,8 +160,7 @@  discard block
 block discarded – undo
160 160
 				throw new TInvalidDataValueException('comparevalidator_controltocompare_invalid');
161 161
 			if(($value2 = $this->getValidationValue($control2)) === '')
162 162
 				return false;
163
-		}
164
-		else
163
+		} else
165 164
 			$value2 = $this->getValueToCompare();
166 165
 
167 166
 		$values = $this->getComparisonValues($value, $value2);
@@ -204,8 +203,7 @@  discard block
 block discarded – undo
204 203
 				{
205 204
 					$formatter = new TSimpleDateFormatter($dateFormat);
206 205
 					return [$formatter->parse($value1), $formatter->parse($value2)];
207
-				}
208
-				else
206
+				} else
209 207
 					return [strtotime($value1), strtotime($value2)];
210 208
 		}
211 209
 		return [$value1, $value2];
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TTemplateColumn.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -198,8 +198,7 @@  discard block
 block discarded – undo
198 198
 					$classPath = $this->getItemRenderer();
199 199
 					$template = $this->_itemTemplate;
200 200
 				}
201
-			}
202
-			else
201
+			} else
203 202
 			{
204 203
 				$template = $this->_itemTemplate;
205 204
 				$classPath = $this->getItemRenderer();
@@ -215,13 +214,11 @@  discard block
 block discarded – undo
215 214
 				}
216 215
 				if($control instanceof \Prado\IDataRenderer)
217 216
 					$control->attachEventHandler('OnDataBinding', [$this,'dataBindColumn']);
218
-			}
219
-			elseif($template !== null)
217
+			} elseif($template !== null)
220 218
 				$template->instantiateIn($cell);
221 219
 			elseif($itemType !== TListItemType::EditItem)
222 220
 				$cell->setText(' ');
223
-		}
224
-		elseif($itemType === TListItemType::Header)
221
+		} elseif($itemType === TListItemType::Header)
225 222
 		{
226 223
 			if(($classPath = $this->getHeaderRenderer()) !== '')
227 224
 				$this->initializeHeaderCell($cell, $columnIndex);
@@ -229,8 +226,7 @@  discard block
 block discarded – undo
229 226
 				$this->_headerTemplate->instantiateIn($cell);
230 227
 			else
231 228
 				$this->initializeHeaderCell($cell, $columnIndex);
232
-		}
233
-		elseif($itemType === TListItemType::Footer)
229
+		} elseif($itemType === TListItemType::Footer)
234 230
 		{
235 231
 			if(($classPath = $this->getFooterRenderer()) !== '')
236 232
 				$this->initializeFooterCell($cell, $columnIndex);
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TRangeValidator.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -260,8 +260,7 @@
 block discarded – undo
260 260
 			if($maxValue !== '')
261 261
 				$valid = $valid && $this->isLessThan($value, $formatter->parse($maxValue));
262 262
 			return $valid;
263
-		}
264
-		else
263
+		} else
265 264
 		{
266 265
 			$value = strtotime($value);
267 266
 			if($minValue !== '')
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TTabPanel.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -143,15 +143,13 @@  discard block
 block discarded – undo
143 143
 				$activeView = $views->itemAt($index);
144 144
 			else
145 145
 				throw new TInvalidDataValueException('tabpanel_activeviewid_invalid', $id);
146
-		}
147
-		elseif(($index = $this->getActiveViewIndex()) >= 0)
146
+		} elseif(($index = $this->getActiveViewIndex()) >= 0)
148 147
 		{
149 148
 			if($index < $views->getCount())
150 149
 				$activeView = $views->itemAt($index);
151 150
 			else
152 151
 				throw new TInvalidDataValueException('tabpanel_activeviewindex_invalid', $index);
153
-		}
154
-		else
152
+		} else
155 153
 		{
156 154
 			foreach($views as $index => $view)
157 155
 			{
@@ -327,8 +325,7 @@  discard block
 block discarded – undo
327 325
 				$this->setActiveViewIndex($index);
328 326
 				$this->setActiveViewID($view->getID(false));
329 327
 				$view->setActive(true);
330
-			}
331
-			else
328
+			} else
332 329
 				$v->setActive(false);
333 330
 		}
334 331
 	}
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TEditCommandColumn.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -211,8 +211,7 @@  discard block
 block discarded – undo
211 211
 			$button = $this->createButton('Edit', $this->getEditText(), false, '');
212 212
 			$cell->getControls()->add($button);
213 213
 			$cell->registerObject('EditButton', $button);
214
-		}
215
-		elseif($itemType === TListItemType::EditItem)
214
+		} elseif($itemType === TListItemType::EditItem)
216 215
 		{
217 216
 			$controls = $cell->getControls();
218 217
 			$button = $this->createButton('Update', $this->getUpdateText(), $this->getCausesValidation(), $this->getValidationGroup());
@@ -222,8 +221,7 @@  discard block
 block discarded – undo
222 221
 			$button = $this->createButton('Cancel', $this->getCancelText(), false, '');
223 222
 			$controls->add($button);
224 223
 			$cell->registerObject('CancelButton', $button);
225
-		}
226
-		else
224
+		} else
227 225
 			parent::initializeCell($cell, $columnIndex, $itemType);
228 226
 	}
229 227
 
Please login to merge, or discard this patch.