Completed
Push — php-cs-fixer ( b6f93e )
by Fabio
07:29
created
framework/Collections/TPagedList.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -181,22 +181,18 @@  discard block
 block discarded – undo
181 181
 					$this->_currentPageIndex=$pageIndex;
182 182
 					$this->onPageIndexChanged(new TPagedListPageChangedEventParameter($oldPage));
183 183
 					return $pageIndex;
184
-				}
185
-				else
184
+				} else
186 185
 					return false;
187
-			}
188
-			else
186
+			} else
189 187
 				return false;
190
-		}
191
-		else
188
+		} else
192 189
 		{
193 190
 			if($pageIndex>=0 && $pageIndex<$this->getPageCount())
194 191
 			{
195 192
 				$this->_currentPageIndex=$pageIndex;
196 193
 				$this->onPageIndexChanged(null);
197 194
 				return $pageIndex;
198
-			}
199
-			else
195
+			} else
200 196
 				return false;
201 197
 		}
202 198
 	}
@@ -248,8 +244,7 @@  discard block
 block discarded – undo
248 244
 				return (int)(($this->_virtualCount+$this->_pageSize-1)/$this->_pageSize);
249 245
 			else
250 246
 				return -1;
251
-		}
252
-		else
247
+		} else
253 248
 			return (int)((parent::getCount()+$this->_pageSize-1)/$this->_pageSize);
254 249
 	}
255 250
 
Please login to merge, or discard this patch.
framework/I18N/core/MessageSource_gettext.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -260,8 +260,7 @@  discard block
 block discarded – undo
260 260
 				if(!empty($this->cache))
261 261
 					$this->cache->clean($variant, $this->culture);
262 262
 				return true;
263
-			}
264
-			else
263
+			} else
265 264
 				return false;
266 265
 		}
267 266
 		return false;
@@ -304,8 +303,7 @@  discard block
 block discarded – undo
304 303
 					if(!empty($this->cache))
305 304
 						$this->cache->clean($variant, $this->culture);
306 305
 					return true;
307
-				}
308
-				else
306
+				} else
309 307
 					return false;
310 308
 			}
311 309
 		}
@@ -354,8 +352,7 @@  discard block
 block discarded – undo
354 352
 					if(!empty($this->cache))
355 353
 						$this->cache->clean($variant, $this->culture);
356 354
 					return true;
357
-				}
358
-				else
355
+				} else
359 356
 					return false;
360 357
 			}
361 358
 		}
Please login to merge, or discard this patch.
framework/Web/Services/TXmlRpcProtocol.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -72,16 +72,13 @@
 block discarded – undo
72 72
 		try
73 73
 		{
74 74
 			return xmlrpc_server_call_method($this->_xmlrpcServer, $requestPayload, null);
75
-		}
76
-		catch(TRpcException $e)
75
+		} catch(TRpcException $e)
77 76
 		{
78 77
 			return $this->createErrorResponse($e);
79
-		}
80
-		catch(THttpException $e)
78
+		} catch(THttpException $e)
81 79
 		{
82 80
 			throw $e;
83
-		}
84
-		catch(\Exception $e)
81
+		} catch(\Exception $e)
85 82
 		{
86 83
 			return $this->createErrorResponse(new TRpcException('An internal error occured'));
87 84
 		}
Please login to merge, or discard this patch.
framework/Web/Services/TRpcServer.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,8 +69,7 @@
 block discarded – undo
69 69
 		try
70 70
 		{
71 71
 			return $this->handler->callMethod($this->getPayload());
72
-		}
73
-		catch(TRpcException $e)
72
+		} catch(TRpcException $e)
74 73
 		{
75 74
 			return $this->handler->createErrorResponse($e);
76 75
 		}
Please login to merge, or discard this patch.
framework/Xml/TXmlElementList.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,8 +62,7 @@
 block discarded – undo
62 62
 			if($item->getParent()!==null)
63 63
 				$item->getParent()->getElements()->remove($item);
64 64
 			$item->setParent($this->_o);
65
-		}
66
-		else
65
+		} else
67 66
 			throw new TInvalidDataTypeException('xmlelementlist_xmlelement_required');
68 67
 	}
69 68
 
Please login to merge, or discard this patch.
framework/Security/TAuthorizationRuleCollection.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@
 block discarded – undo
40 40
 					return ($decision>0);
41 41
 			}
42 42
 			return true;
43
-		}
44
-		else
43
+		} else
45 44
 			return false;
46 45
 	}
47 46
 
Please login to merge, or discard this patch.
framework/Security/TAuthManager.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -430,8 +430,7 @@
 block discarded – undo
430 430
 				$this->getResponse()->getCookies()->add($cookie);
431 431
 			}
432 432
 			return true;
433
-		}
434
-		else
433
+		} else
435 434
 			return false;
436 435
 	}
437 436
 
Please login to merge, or discard this patch.
framework/Util/TFirePhpLogRoute.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,8 +67,7 @@
 block discarded – undo
67 67
 			{
68 68
 				$delta = $logs[$i+1][3] - $logs[$i][3];
69 69
 				$total = $logs[$i+1][3] - $first;
70
-			}
71
-			else
70
+			} else
72 71
 			{
73 72
 				$delta = '?';
74 73
 				$total = $logs[$i][3] - $first;
Please login to merge, or discard this patch.
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.