Jgleeson has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/391009 )

Change subject: Updated coding style to resolve parenthesis spacing problems
......................................................................

Updated coding style to resolve parenthesis spacing problems

Change-Id: Ib5d0fbfdd205703416957a2532470612a63e956f
---
M Maintenance/PopulateQueueFromDump.php
1 file changed, 11 insertions(+), 13 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/SmashPig 
refs/changes/09/391009/1

diff --git a/Maintenance/PopulateQueueFromDump.php 
b/Maintenance/PopulateQueueFromDump.php
index 6df4502..533d881 100644
--- a/Maintenance/PopulateQueueFromDump.php
+++ b/Maintenance/PopulateQueueFromDump.php
@@ -27,8 +27,6 @@
         * Do the actual work of the script.
         */
        public function execute() {
-
-
                $startTime = time();
                $messageCount = 0;
 
@@ -51,17 +49,17 @@
                                continue;
                        }
 
-      // if $message SourceFields headers are not set then we send it through 
QueueWrapper::push()
-      if (!array_key_exists('source_enqueued_time', $message)) {
-        // QueueWrapper::push() injects additional useful properties
-        // useful properties declared here 
\SmashPig\CrmLink\Messages\SourceFields::addToMessage()
-        QueueWrapper::push($this->getOption('queue'), $message);
-      } else {
-        $datastore = QueueWrapper::getQueue(
-          $this->getOption('queue')
-        );
-        $datastore->push($message);
-      }
+                       // if $message SourceFields headers are not set then we 
send it through QueueWrapper::push()
+                       if ( !array_key_exists( 'source_enqueued_time', 
$message ) ) {
+                               // QueueWrapper::push() injects additional 
useful properties
+                               // useful properties declared here 
\SmashPig\CrmLink\Messages\SourceFields::addToMessage()
+                               QueueWrapper::push( $this->getOption( 'queue' 
), $message );
+                       } else {
+                               $datastore = QueueWrapper::getQueue(
+                                       $this->getOption( 'queue' )
+                               );
+                               $datastore->push( $message );
+                       }
 
                        $messageCount++;
                        if ( $messageCount % 1000 == 0 ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/391009
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib5d0fbfdd205703416957a2532470612a63e956f
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/SmashPig
Gerrit-Branch: master
Gerrit-Owner: Jgleeson <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to