mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 00:11:53 +00:00
Updated to match coding style.
Signed-off-by: Daniel Hunsaker <danhunsaker@gmail.com>
This commit is contained in:
parent
3798fa3ba6
commit
8d1a9a5564
@ -98,11 +98,11 @@ class Resque
|
||||
public static function push($queue, $item)
|
||||
{
|
||||
self::redis()->sadd('queues', $queue);
|
||||
if (self::redis()->rpush('queue:' . $queue, json_encode($item)) < 1)
|
||||
{
|
||||
return FALSE;
|
||||
$length = self::redis()->rpush('queue:' . $queue, json_encode($item));
|
||||
if ($length < 1) {
|
||||
return false;
|
||||
}
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -62,9 +62,8 @@ class Resque_Job
|
||||
'class' => $class,
|
||||
'args' => array($args),
|
||||
'id' => $id,
|
||||
)))
|
||||
{
|
||||
return FALSE;
|
||||
))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if($monitor) {
|
||||
|
Loading…
Reference in New Issue
Block a user