@@ -10,10 +10,10 @@ discard block |
||
| 10 | 10 | set_time_limit(0); |
| 11 | 11 | |
| 12 | 12 | if (isset($argv)) { |
| 13 | - if (in_array('--debug', $argv)) { |
|
| 14 | - $filename = pathinfo(__FILE__, PATHINFO_FILENAME); |
|
| 13 | + if (in_array('--debug', $argv)) { |
|
| 14 | + $filename = pathinfo(__FILE__, PATHINFO_FILENAME); |
|
| 15 | 15 | openlog($filename, LOG_PID | LOG_PERROR, LOG_LOCAL0); |
| 16 | - } |
|
| 16 | + } |
|
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | require __DIR__ . '/vendor/autoload.php'; |
@@ -26,16 +26,16 @@ discard block |
||
| 26 | 26 | // Shutdown function |
| 27 | 27 | function shutdown(): void |
| 28 | 28 | { |
| 29 | - \writeLog('Stoping E-mail Service...'); |
|
| 29 | + \writeLog('Stoping E-mail Service...'); |
|
| 30 | 30 | |
| 31 | - // Closing connection with syslog |
|
| 32 | - if (isset($argv)) { |
|
| 31 | + // Closing connection with syslog |
|
| 32 | + if (isset($argv)) { |
|
| 33 | 33 | if (in_array('--debug', $argv)) { |
| 34 | 34 | closelog(); |
| 35 | 35 | } |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | - exit(); |
|
| 38 | + exit(); |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | register_shutdown_function('shutdown'); |