Completed
Push — remove_deprecates ( 1de955...c03db3 )
by Fabio
16:32 queued 07:25
created
framework/Data/Common/Sqlite/TSqliteMetaData.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -146,8 +146,7 @@
 block discarded – undo
146 146
 			{
147 147
 				$info['NumericPrecision'] = intval($ps[0]);
148 148
 				$info['NumericScale'] = intval($ps[1]);
149
-			}
150
-			else
149
+			} else
151 150
 				$info['ColumnSize']=intval($match[1]);
152 151
 			$info['DbType'] = substr($type,0,$pos);
153 152
 		}
Please login to merge, or discard this patch.
framework/Util/TSimpleDateFormatter.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -225,8 +225,7 @@  discard block
 block discarded – undo
225 225
 			$year = "{$date['year']}";
226 226
 			$month = $date['mon'];
227 227
 			$day = $date['mday'];
228
-		}
229
-		else
228
+		} else
230 229
 		{
231 230
 			$year = null;
232 231
 			$month = null;
@@ -262,8 +261,7 @@  discard block
 block discarded – undo
262 261
 						$year = $iYear + 2000;
263 262
 				}
264 263
 				$year = (int)$year;
265
-			}
266
-			elseif($token=='MM' || $token=='M')
264
+			} elseif($token=='MM' || $token=='M')
267 265
 			{
268 266
 				$month=$this->getInteger($value,$i_val,
269 267
 									$this->length($token),2);
@@ -273,8 +271,7 @@  discard block
 block discarded – undo
273 271
 					//throw new TInvalidDataValueException('Invalid month', $value);
274 272
 				$i_val += strlen($month);
275 273
 				$month = $iMonth;
276
-			}
277
-			elseif ($token=='dd' || $token=='d')
274
+			} elseif ($token=='dd' || $token=='d')
278 275
 			{
279 276
 				$day = $this->getInteger($value,$i_val,
280 277
 									$this->length($token), 2);
@@ -284,8 +281,7 @@  discard block
 block discarded – undo
284 281
 					//throw new TInvalidDataValueException('Invalid day', $value);
285 282
 				$i_val += strlen($day);
286 283
 				$day = $iDay;
287
-			}
288
-			else
284
+			} else
289 285
 			{
290 286
 				if($this->substring($value, $i_val, $this->length($token)) != $token)
291 287
 					return null;
Please login to merge, or discard this patch.
framework/Security/TUserManager.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -113,8 +113,7 @@  discard block
 block discarded – undo
113 113
 			{
114 114
 				$userFile = include $this->_userFile;
115 115
 				$this->loadUserDataFromPhp($userFile);
116
-			}
117
-			else
116
+			} else
118 117
 			{
119 118
 				$dom=new TXmlDocument;
120 119
 				$dom->loadFromFile($this->_userFile);
@@ -310,8 +309,7 @@  discard block
 block discarded – undo
310 309
 			$user=new TUser($this);
311 310
 			$user->setIsGuest(true);
312 311
 			return $user;
313
-		}
314
-		else
312
+		} else
315 313
 		{
316 314
 			$username=strtolower($username);
317 315
 			if(isset($this->_users[$username]))
@@ -322,8 +320,7 @@  discard block
 block discarded – undo
322 320
 				if(isset($this->_roles[$username]))
323 321
 					$user->setRoles($this->_roles[$username]);
324 322
 				return $user;
325
-			}
326
-			else
323
+			} else
327 324
 				return null;
328 325
 		}
329 326
 	}
Please login to merge, or discard this patch.
framework/Security/TDbUserManager.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -123,8 +123,7 @@  discard block
 block discarded – undo
123 123
 			$user=Prado::createComponent($this->_userClass,$this);
124 124
 			$user->setIsGuest(true);
125 125
 			return $user;
126
-		}
127
-		else
126
+		} else
128 127
 			return $this->_userFactory->createUser($username);
129 128
 	}
130 129
 
@@ -175,8 +174,7 @@  discard block
 block discarded – undo
175 174
 				return $conn->getDbConnection();
176 175
 			else
177 176
 				throw new TConfigurationException('dbusermanager_connectionid_invalid',$connectionID);
178
-		}
179
-		else
177
+		} else
180 178
 			throw new TConfigurationException('dbusermanager_connectionid_required');
181 179
 	}
182 180
 
Please login to merge, or discard this patch.
framework/I18N/core/DateFormat.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -134,12 +134,10 @@  discard block
 block discarded – undo
134 134
 			{
135 135
 				$sub = preg_replace('/(^\')|(\'$)/','',$pattern);
136 136
 				$tokens[$i] =  str_replace('``````','\'',$sub);
137
-			}
138
-			else if($pattern == '``````')
137
+			} else if($pattern == '``````')
139 138
 			{
140 139
 				$tokens[$i] = '\'';
141
-			}
142
-			else
140
+			} else
143 141
 			{
144 142
 				$function = $this->getFunctionName($pattern);
145 143
 				if($function != null)
@@ -149,8 +147,7 @@  discard block
 block discarded – undo
149 147
 					{
150 148
 						$rs = $this->$fName($date, $pattern);
151 149
 						$tokens[$i] = $rs;
152
-					}
153
-					else
150
+					} else
154 151
 						throw new
155 152
 						Exception('function '.$function.' not found.');
156 153
 				}
@@ -285,8 +282,7 @@  discard block
 block discarded – undo
285 282
 			if($char==null || $pattern{$i} == $char || $text)
286 283
 			{
287 284
 				$token .= $pattern{$i};
288
-			}
289
-			else
285
+			} else
290 286
 			{
291 287
 				$tokens[] = str_replace("","'",$token);
292 288
 				$token = $pattern{$i};
Please login to merge, or discard this patch.
framework/I18N/core/DateTimeFormatInfo.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -175,8 +175,7 @@
 block discarded – undo
175 175
        	{
176 176
        		$cultureInfo = CultureInfo::getInstance($culture);
177 177
        		return $cultureInfo->getDateTimeFormat();
178
-       	}
179
-       	else
178
+       	} else
180 179
        	{
181 180
 			$cultureInfo = CultureInfo::getInvariantCulture();
182 181
             return $cultureInfo->getDateTimeFormat();
Please login to merge, or discard this patch.
framework/I18N/core/NumberFormatInfo.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -184,15 +184,13 @@  discard block
 block discarded – undo
184 184
             $formatInfo = $culture->NumberFormat;
185 185
             $formatInfo->setPattern($type);
186 186
             return $formatInfo;
187
-   		}
188
-       	else if(is_string($culture))
187
+   		} else if(is_string($culture))
189 188
        	{
190 189
        		$cultureInfo = new CultureInfo($culture);
191 190
        		$formatInfo = $cultureInfo->NumberFormat;
192 191
        		$formatInfo->setPattern($type);
193 192
        		return $formatInfo;
194
-       	}
195
-       	else
193
+       	} else
196 194
        	{
197 195
             $cultureInfo = new CultureInfo();
198 196
        		$formatInfo = $cultureInfo->NumberFormat;
@@ -292,8 +290,7 @@  discard block
 block discarded – undo
292 290
 			{
293 291
 				$groupSize1 = $decimalPos - $groupPos1-1;
294 292
 
295
-			}
296
-			else
293
+			} else
297 294
 			{
298 295
 				//no decimal point, so traverse from the back
299 296
 				//to find the groupsize 1.
Please login to merge, or discard this patch.
framework/I18N/core/NumberFormat.php 1 patch
Braces   +7 added lines, -14 removed lines patch added patch discarded remove patch
@@ -203,16 +203,14 @@  discard block
 block discarded – undo
203 203
 						$integer = $groupSeparator . $integer;
204 204
 						$count++;
205 205
 					}
206
-				}
207
-				else if($multiGroup && $count >= 1)
206
+				} else if($multiGroup && $count >= 1)
208 207
 				{
209 208
 					if($i != 0 && ($i-$groupSize[0])%$groupSize[1] == 0)
210 209
 					{
211 210
 						$integer = $groupSeparator . $integer;
212 211
 						$count++;
213 212
 					}
214
-				}
215
-				else
213
+				} else
216 214
 				{
217 215
 					if($i != 0 && $i%$groupSize[0] == 0)
218 216
 					{
@@ -223,8 +221,7 @@  discard block
 block discarded – undo
223 221
 
224 222
 				$integer = $char . $integer;
225 223
 			}
226
-		}
227
-		else
224
+		} else
228 225
 			$integer = $string;
229 226
 
230 227
 		return $integer;
@@ -250,27 +247,23 @@  discard block
 block discarded – undo
250 247
 			if($decimalDigits == -1)
251 248
 			{
252 249
 				$decimal = substr($string, $dp+1);
253
-			}
254
-			else if(is_int($decimalDigits))
250
+			} else if(is_int($decimalDigits))
255 251
 			{
256 252
 				$float = round((float)$string, $decimalDigits);
257 253
 				if(strpos((string)$float, '.') === false)
258 254
 				{
259 255
 					$decimal = str_pad($decimal,$decimalDigits,'0');
260
-				}
261
-				else
256
+				} else
262 257
 				{
263 258
 					$decimal = substr($float, strpos($float,'.')+1);
264 259
 					if(strlen($decimal)<$decimalDigits)
265 260
 						$decimal = str_pad($decimal,$decimalDigits,'0');
266 261
 				}
267
-			}
268
-			else
262
+			} else
269 263
 				return $decimal;
270 264
 
271 265
 			return $decimalSeparator.$decimal;
272
-		}
273
-		else if ($decimalDigits > 0)
266
+		} else if ($decimalDigits > 0)
274 267
 			return $decimalSeparator.str_pad($decimal,$decimalDigits,'0');
275 268
 
276 269
 		return $decimal;
Please login to merge, or discard this patch.
framework/I18N/core/HTTPNegotiator.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,8 +80,7 @@
 block discarded – undo
80 80
                     // i-prefix, such as i-cherokee
81 81
 					if(count($codes)>1)
82 82
 						$lang = $codes[1];
83
-				}
84
-				else
83
+				} else
85 84
 				{
86 85
 					for($i = 0, $k = count($codes); $i<$k; ++$i)
87 86
 					{
Please login to merge, or discard this patch.