X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FDataUpdate.php;h=7b9ac2811da2a326fbaef0bb231ff12b18a14db5;hb=3bf0dd2e66d48cfd9d813a29817d86108a684fcd;hp=419d7e5f023d1ae6d44d228a9698ba5088b42c59;hpb=6bc4c21ed1914abe31507fa132909e7f947e6075;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DataUpdate.php b/includes/DataUpdate.php index 419d7e5f02..7b9ac2811d 100644 --- a/includes/DataUpdate.php +++ b/includes/DataUpdate.php @@ -34,7 +34,7 @@ abstract class DataUpdate implements DeferrableUpdate { /** * Constructor */ - public function __construct( ) { + public function __construct() { # noop } @@ -67,8 +67,8 @@ abstract class DataUpdate implements DeferrableUpdate { * * This methods supports transactions logic by first calling beginTransaction() * on all updates in the array, then calling doUpdate() on each, and, if all goes well, - * then calling commitTransaction() on each update. If an error occurrs, - * rollbackTransaction() will be called on any update object that had beginTranscation() + * then calling commitTransaction() on each update. If an error occurs, + * rollbackTransaction() will be called on any update object that had beginTransaction() * called but not yet commitTransaction(). * * This allows for limited transactional logic across multiple backends for storing @@ -78,7 +78,9 @@ abstract class DataUpdate implements DeferrableUpdate { * @throws Exception|null */ public static function runUpdates( $updates ) { - if ( empty( $updates ) ) return; # nothing to do + if ( empty( $updates ) ) { + return; # nothing to do + } $open_transactions = array(); $exception = null;