Skip to content

Commit

Permalink
Restored whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
drahmel committed Mar 13, 2015
1 parent f29e09d commit 44940e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Resque.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public static function dequeue($queue, $items = Array())
* Remove specified queue
*
* @param string $queue The name of the queue to remove.
* @return integer number of deleted items
* @return integer Number of deleted items
*/
public static function removeQueue($queue)
{
Expand Down Expand Up @@ -277,12 +277,12 @@ private static function removeItems($queue, $items = Array())
$originalQueue = 'queue:'. $queue;
$tempQueue = $originalQueue. ':temp:'. time();
$requeueQueue = $tempQueue. ':requeue';

// move each item from original queue to temp queue and process it
$finished = false;
while (!$finished) {
$string = self::redis()->rpoplpush($originalQueue, self::redis()->getPrefix() . $tempQueue);

if (!empty($string)) {
if(self::matchItem($string, $items)) {
self::redis()->rpop($tempQueue);
Expand All @@ -307,7 +307,7 @@ private static function removeItems($queue, $items = Array())
// remove temp queue and requeue queue
self::redis()->del($requeueQueue);
self::redis()->del($tempQueue);

return $counter;
}

Expand Down

0 comments on commit 44940e8

Please sign in to comment.