Completed
Push — php-cs-fixer ( b6f93e...b9836a )
by Fabio
07:15
created
framework/Data/Common/Mssql/TMssqlCommandBuilder.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,8 +138,7 @@
 block discarded – undo
138 138
 						$ordering[$subs[1][0]] = $subs[2][0];
139 139
 					}
140 140
 					//else what?
141
-				}
142
-				else
141
+				} else
143 142
 					$ordering[trim($part)] = 'ASC';
144 143
 			}
145 144
 		}
Please login to merge, or discard this patch.
framework/Data/Common/Pgsql/TPgsqlMetaData.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -244,11 +244,9 @@
 block discarded – undo
244 244
 				$info['NumericPrecision'] = intval($matches[1]);
245 245
 				if(count($matches) > 2)
246 246
 					$info['NumericScale'] = intval($matches[2]);
247
-			}
248
-			else
247
+			} else
249 248
 				$info['ColumnSize'] = intval($matches[1]);
250
-		}
251
-		else
249
+		} else
252 250
 			$info['DbType'] = $col['type'];
253 251
 
254 252
 		$tableInfo->Columns[$columnId] = new TPgsqlTableColumn($info);
Please login to merge, or discard this patch.
framework/I18N/TGlobalization.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -212,8 +212,7 @@  discard block
 block discarded – undo
212 212
 						$config['source']);
213 213
 					chmod($config['source'], PRADO_CHMOD); //make it deletable
214 214
 				}
215
-			}
216
-			else
215
+			} else
217 216
 			{
218 217
 				throw new TConfigurationException("invalid source dir '{$config['source']}'");
219 218
 			}
@@ -228,8 +227,7 @@  discard block
 block discarded – undo
228 227
 						$config['cache']);
229 228
 				chmod($config['cache'], PRADO_CHMOD); //make it deletable
230 229
 			}
231
-		}
232
-		else
230
+		} else
233 231
 		{
234 232
 			unset($config['cache']);
235 233
 		}
Please login to merge, or discard this patch.
framework/I18N/core/ChoiceFormat.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -172,8 +172,7 @@
 block discarded – undo
172 172
 		{
173 173
 			eval($str);
174 174
 			return $result;
175
-		}
176
-		catch(Exception $e)
175
+		} catch(Exception $e)
177 176
 		{
178 177
 			return false;
179 178
 		}
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TDatePicker.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -425,8 +425,7 @@  discard block
 block discarded – undo
425 425
 		{
426 426
 			parent::render($writer);
427 427
 			$this->renderDatePickerButtons($writer);
428
-		}
429
-		else
428
+		} else
430 429
 		{
431 430
 			$this->renderDropDownListCalendar($writer);
432 431
 			if($this->hasDayPattern())
@@ -473,8 +472,7 @@  discard block
 block discarded – undo
473 472
 		{
474 473
 			$this->setText($value);
475 474
 			return true;
476
-		}
477
-		else
475
+		} else
478 476
 			return false;
479 477
 	}
480 478
 
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TLiteral.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,8 +106,7 @@
 block discarded – undo
106 106
 				$writer->write(THttpUtility::htmlEncode($text));
107 107
 			else
108 108
 				$writer->write($text);
109
-		}
110
-		else
109
+		} else
111 110
 			parent::render($writer);
112 111
 	}
113 112
 }
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TDataTypeValidator.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,8 +101,7 @@
 block discarded – undo
101 101
 				{
102 102
 					$formatter = new TSimpleDateFormatter($dateFormat);
103 103
 					return $formatter->isValidDate($value);
104
-				}
105
-				else
104
+				} else
106 105
 					return strtotime($value) > 0;
107 106
 		}
108 107
 		return true;
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/THyperLink.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,8 +72,7 @@
 block discarded – undo
72 72
 				parent::renderContents($writer);
73 73
 			else
74 74
 				$writer->write(THttpUtility::htmlEncode($this->getNavigateUrl()));
75
-		}
76
-		else
75
+		} else
77 76
 		{
78 77
 			$this->createImage($imageUrl)->renderControl($writer);
79 78
 		}
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveTableCell.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -147,8 +147,7 @@
 block discarded – undo
147 147
 			parent::render($writer);
148 148
 			if ($this->getActiveControl()->canUpdateClientSide())
149 149
 				$this->getPage()->getCallbackClient()->replaceContent($this, $writer);
150
-		}
151
-		else {
150
+		} else {
152 151
 			$this->getPage()->getAdapter()->registerControlToRender($this, $writer);
153 152
 			// If we update a TActiveTableCell on callback, we shouldn't update all childs,
154 153
 			// because the whole content will be replaced by the parent.
Please login to merge, or discard this patch.