Skip to content

Commit 84ef141

Browse files
committed
Convert indents to tabs.
1 parent 0d1705a commit 84ef141

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

lib/ResqueScheduler/Worker.php

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ class ResqueScheduler_Worker
2525
*/
2626
protected $interval = 5;
2727

28-
/**
29-
* @var boolean True if on the next iteration, the worker should shutdown.
30-
*/
31-
private $shutdown = false;
28+
/**
29+
* @var boolean True if on the next iteration, the worker should shutdown.
30+
*/
31+
private $shutdown = false;
3232

3333
/**
3434
* The primary loop for a worker.
@@ -47,10 +47,10 @@ public function work($interval = null)
4747
$this->updateProcLine('Starting');
4848
$this->registerSigHandlers();
4949

50-
while (true) {
51-
if($this->shutdown) {
52-
break;
53-
}
50+
while (true) {
51+
if($this->shutdown) {
52+
break;
53+
}
5454
$this->handleDelayedItems();
5555
$this->sleep();
5656
}
@@ -136,26 +136,26 @@ public function log($message)
136136
}
137137
}
138138

139-
/**
140-
* Register signal handlers that a worker should respond to.
141-
*
142-
* TERM: Shutdown immediately and stop processing jobs.
143-
* INT: Shutdown immediately and stop processing jobs.
144-
* QUIT: Shutdown after the current job finishes processing.
145-
*/
146-
private function registerSigHandlers()
147-
{
148-
if(!function_exists('pcntl_signal')) {
149-
return;
150-
}
139+
/**
140+
* Register signal handlers that a worker should respond to.
141+
*
142+
* TERM: Shutdown immediately and stop processing jobs.
143+
* INT: Shutdown immediately and stop processing jobs.
144+
* QUIT: Shutdown after the current job finishes processing.
145+
*/
146+
private function registerSigHandlers()
147+
{
148+
if(!function_exists('pcntl_signal')) {
149+
return;
150+
}
151151

152-
pcntl_signal(SIGTERM, array($this, 'shutdown'));
153-
pcntl_signal(SIGINT, array($this, 'shutdown'));
154-
pcntl_signal(SIGQUIT, array($this, 'shutdown'));
155-
}
152+
pcntl_signal(SIGTERM, array($this, 'shutdown'));
153+
pcntl_signal(SIGINT, array($this, 'shutdown'));
154+
pcntl_signal(SIGQUIT, array($this, 'shutdown'));
155+
}
156156

157-
public function shutdown()
158-
{
159-
$this->shutdown = true;
160-
}
157+
public function shutdown()
158+
{
159+
$this->shutdown = true;
160+
}
161161
}

0 commit comments

Comments
 (0)