Merge "Http::getProxy() method to get proxy configuration"
[lhc/web/wiklou.git] / includes / utils / BatchRowUpdate.php
index a4257a5..549ad41 100644 (file)
@@ -71,7 +71,9 @@ class BatchRowUpdate {
         * @param RowUpdateGenerator $generator Generates single row updates
         *  based on the rows content
         */
-       public function __construct( BatchRowIterator $reader, BatchRowWriter $writer, RowUpdateGenerator $generator ) {
+       public function __construct(
+               BatchRowIterator $reader, BatchRowWriter $writer, RowUpdateGenerator $generator
+       ) {
                $this->reader = $reader;
                $this->writer = $writer;
                $this->generator = $generator;
@@ -84,14 +86,14 @@ class BatchRowUpdate {
         */
        public function execute() {
                foreach ( $this->reader as $rows ) {
-                       $updates = array();
+                       $updates = [];
                        foreach ( $rows as $row ) {
                                $update = $this->generator->update( $row );
                                if ( $update ) {
-                                       $updates[] = array(
+                                       $updates[] = [
                                                'primaryKey' => $this->reader->extractPrimaryKeys( $row ),
                                                'changes' => $update,
-                                       );
+                                       ];
                                }
                        }