mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-06-06 06:46:25 +02:00
fix php cs fixer concat operator to use space
This commit is contained in:
parent
9de6697752
commit
08bf5a878a
26 changed files with 113 additions and 109 deletions
|
@ -29,7 +29,7 @@ class Sender extends AbstractDaemon
|
|||
{
|
||||
$name = 'RaspiSMS Daemon Sender';
|
||||
$logger = new Logger($name);
|
||||
$logger->pushHandler(new StreamHandler(PWD_LOGS.'/raspisms.log', Logger::DEBUG));
|
||||
$logger->pushHandler(new StreamHandler(PWD_LOGS . '/raspisms.log', Logger::DEBUG));
|
||||
$pid_dir = PWD_PID;
|
||||
$no_parent = false; //Webhook should be rattach to manager, so manager can stop him easily
|
||||
$additional_signals = [];
|
||||
|
@ -86,24 +86,24 @@ class Sender extends AbstractDaemon
|
|||
|
||||
public function on_start()
|
||||
{
|
||||
$this->logger->info('Starting Sender with pid '.getmypid());
|
||||
$this->logger->info('Starting Sender with pid ' . getmypid());
|
||||
$this->bdd = \descartes\Model::_connect(DATABASE_HOST, DATABASE_NAME, DATABASE_USER, DATABASE_PASSWORD, 'UTF8');
|
||||
}
|
||||
|
||||
public function on_stop()
|
||||
{
|
||||
$this->logger->info('Stopping Sender with pid '.getmypid());
|
||||
$this->logger->info('Stopping Sender with pid ' . getmypid());
|
||||
|
||||
//Delete queues on daemon close
|
||||
foreach ($this->queues as $queue_id => $queue)
|
||||
{
|
||||
$this->logger->info('Closing queue : '.$queue_id);
|
||||
$this->logger->info('Closing queue : ' . $queue_id);
|
||||
msg_remove_queue($queue);
|
||||
}
|
||||
}
|
||||
|
||||
public function handle_other_signals($signal)
|
||||
{
|
||||
$this->logger->info('Signal not handled by '.$this->name.' Daemon : '.$signal);
|
||||
$this->logger->info('Signal not handled by ' . $this->name . ' Daemon : ' . $signal);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue