Merge "Consistently follow conventions for documenting parameters"
[lhc/web/wiklou.git] / includes / DataUpdate.php
index 04029db..7b9ac28 100644 (file)
@@ -34,7 +34,7 @@ abstract class DataUpdate implements DeferrableUpdate {
        /**
         * Constructor
         */
-       public function __construct( ) {
+       public function __construct() {
                # noop
        }
 
@@ -67,18 +67,20 @@ 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
         * secondary data.
         *
-        * @param $updates array a list of DataUpdate instances
+        * @param array $updates a list of DataUpdate instances
         * @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;