Skip to content

Commit 8d1a9a5

Browse files
committed
Updated to match coding style.
Signed-off-by: Daniel Hunsaker <[email protected]>
1 parent 3798fa3 commit 8d1a9a5

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

lib/Resque.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ public static function fork()
9898
public static function push($queue, $item)
9999
{
100100
self::redis()->sadd('queues', $queue);
101-
if (self::redis()->rpush('queue:' . $queue, json_encode($item)) < 1)
102-
{
103-
return FALSE;
101+
$length = self::redis()->rpush('queue:' . $queue, json_encode($item));
102+
if ($length < 1) {
103+
return false;
104104
}
105-
return TRUE;
105+
return true;
106106
}
107107

108108
/**

lib/Resque/Job.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,12 @@ public static function create($queue, $class, $args = null, $monitor = false)
5858
);
5959
}
6060
$id = md5(uniqid('', true));
61-
if ( ! Resque::push($queue, array(
61+
if (!Resque::push($queue, array(
6262
'class' => $class,
6363
'args' => array($args),
6464
'id' => $id,
65-
)))
66-
{
67-
return FALSE;
65+
))) {
66+
return false;
6867
}
6968

7069
if($monitor) {

0 commit comments

Comments
 (0)