Move declare(ticks = 1) to top

This commit is contained in:
Ruud Kamphuis 2016-08-03 20:40:30 +02:00 committed by GitHub
parent 16f88a6a38
commit 91caca7921

View File

@ -1,4 +1,6 @@
<?php <?php
declare(ticks = 1);
/** /**
* Resque worker that handles checking queues for jobs, fetching them * Resque worker that handles checking queues for jobs, fetching them
* off the queues, running them and handling the result. * off the queues, running them and handling the result.
@ -311,8 +313,6 @@ class Resque_Worker
*/ */
private function startup() private function startup()
{ {
declare(ticks = 1);
$this->registerSigHandlers(); $this->registerSigHandlers();
$this->pruneDeadWorkers(); $this->pruneDeadWorkers();
Resque_Event::trigger('beforeFirstFork', $this); Resque_Event::trigger('beforeFirstFork', $this);