Skip to content

Commit 91caca7

Browse files
authored
Move declare(ticks = 1) to top
1 parent 16f88a6 commit 91caca7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Resque/Worker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?php
2+
declare(ticks = 1);
3+
24
/**
35
* Resque worker that handles checking queues for jobs, fetching them
46
* off the queues, running them and handling the result.
@@ -311,8 +313,6 @@ public function queues($fetch = true)
311313
*/
312314
private function startup()
313315
{
314-
declare(ticks = 1);
315-
316316
$this->registerSigHandlers();
317317
$this->pruneDeadWorkers();
318318
Resque_Event::trigger('beforeFirstFork', $this);

0 commit comments

Comments
 (0)